bread man forgot to push

This commit is contained in:
Anumania 2022-08-18 18:03:51 -07:00
parent 386680a66a
commit 4c0c7b5833
15 changed files with 248 additions and 4 deletions

View file

@ -21,7 +21,6 @@ function getProj(){
function getView(){
var _x = global.camerax;
var _y = global.cameray;
var half = (7.5*32)+40;
return matrix_build_lookat(_x,_y+100,100,_x,_y,0,0,0,-1);
}
@ -30,4 +29,19 @@ function setCam(){
camera_set_proj_mat(cam,getProj());
camera_set_view_mat(cam,getView())
camera_apply(cam);
}
}
function drawModels(){
gpu_set_cullmode(cull_counterclockwise);
gpu_set_ztestenable(true);
for(var i = 0; i < array_length(models);i++){
models[i].draw();
}
gpu_set_cullmode(cull_noculling);
gpu_set_ztestenable(false);
}
models = [];
var spr = sprite_add("./shrine thing tex.png",0,false,false,0,0);
nu Model("./shrine thing.dat",spr);

View file

@ -42,4 +42,6 @@ for (i=0; i<array_length(global.map); i++) {
//matrix_get(matrix_
var a = c_2dto3d(mouse_x,mouse_y);
draw_circle(a.x,a.y,2,false);
draw_circle(a.x,a.y,2,false);
drawModels();