|
|
@@ -55,7 +55,6 @@ begin |
|
|
|
gameplay: loop |
|
|
|
exit when window_should_close; |
|
|
|
|
|
|
|
--~update_camera (view'access, camera_first_person); |
|
|
|
if is_key_pressed (key_w) then movement.x := movement.x + 1.0; |
|
|
|
elsif is_key_pressed (key_s) then movement.x := movement.x - 1.0; |
|
|
|
elsif is_key_pressed (key_a) then movement.y := movement.y - 1.0; |
|
|
@@ -67,8 +66,6 @@ begin |
|
|
|
rotation.x := dd.x; |
|
|
|
|
|
|
|
update_camera_pro (view'access, movement, rotation, 1.0); |
|
|
|
--~update_camera_pro (view'access, (0.0, 0.0, 0.0), rotation, 1.0); |
|
|
|
--~update_camera_pro (view'access, movement, (0.0, 0.0, 0.0), 1.0); |
|
|
|
|
|
|
|
begin_drawing; |
|
|
|
|
|
|
@@ -80,8 +77,8 @@ begin |
|
|
|
loop |
|
|
|
for j in 0 .. 40 |
|
|
|
loop |
|
|
|
draw_model (model_array (0), (float (i) * (-4.0), -10.0, float (j) * (-4.0)), 2.0, white); |
|
|
|
draw_model (model_array (1), (float (i) * (-4.0), -10.0, float (j) * (-4.0)), 2.0, white); |
|
|
|
draw_model (model_array (0), (float (i) * (-4.0), -1.0, float (j) * (-4.0)), 2.0, white); |
|
|
|
draw_model (model_array (1), (float (i) * (-4.0), -1.0, float (j) * (-4.0)), 2.0, white); |
|
|
|
end loop; |
|
|
|
end loop; |
|
|
|
|
|
|
|