Skip to content

Commit

Permalink
Starts building out example
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Dec 22, 2023
1 parent 8784d05 commit 981f817
Show file tree
Hide file tree
Showing 79 changed files with 998 additions and 1,014 deletions.
353 changes: 51 additions & 302 deletions matrices.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions objects/oCamera/Create_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//Mouse lock variables (press F3 to lock the mouse and use mouselook)
mouseLock = false;
mouseLockTimer = 0;

//Some variables to track the camera
camX = 450;
camY = 230;
camZ = 200;
camYaw = 120;
camPitch = -45;
camDX = dcos(camYaw)*dcos(camPitch);
camDY = -dsin(camYaw)*dcos(camPitch);
camDZ = dsin(camPitch);

//F1 toggles the info panel
showInfo = true;
4 changes: 4 additions & 0 deletions objects/oCamera/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//UggRay(0, 0, 0, 100, 0, 0, c_red, 5);
//UggRay(0, 0, 0, 0, 100, 0, c_lime, 5);
//UggRay(0, 0, 0, 0, 0, 100, c_blue, 5);
//UggSphere(0, 0, 0, 5, c_white);
Loading

0 comments on commit 981f817

Please sign in to comment.