Commit graph

92 commits

Author SHA1 Message Date
8a32f1e2e5 Fix stuck in walker control
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-15 15:48:51 +09:00
623308cd67 Minor refactorings
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-15 15:44:11 +09:00
761c5c462c Minor fixes
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-15 14:56:58 +09:00
e1c82e0354 Fix movement range, height of body over surface
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
Fixes related to controlling a walker.
2023-08-15 12:17:54 +09:00
5008dd2067 Impl. controlling a walker
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s
2023-08-15 11:53:26 +09:00
64c5bcd1bc Refactorings, cleanup
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-11 19:31:03 +09:00
d2d0f8373c Minor fix
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s
2023-08-11 15:48:16 +09:00
fcd6deb435 Minor refactoring
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-11 14:24:34 +09:00
b0d50c6589 Minor refactorings
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-11 14:20:35 +09:00
46e7bcd595 Refactor y-pos calc. on Walker move (again)
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 18s
2023-08-11 13:42:20 +09:00
25b7dacb08 Refactor y-pos caluclation when Walker moves
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-11 13:37:47 +09:00
12bbfe9484 Impl. roaming walkers
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 20s
2023-08-11 12:38:55 +09:00
270de09894 Impl. walker bobbing head on idle 2023-08-11 12:14:48 +09:00
532654dee0 Impl. rotation for Walker
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-10 15:54:45 +09:00
e64f69695c Minor fixes/tweaks
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-10 13:43:22 +09:00
0c23c593c0 Impl. walker thing
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
Probably requires some more tweaking to get it working properly. Also
need to create a model/texture for the walker.
2023-08-10 13:28:45 +09:00
f9c83ec4e9 Minor fix 2023-08-10 11:00:03 +09:00
3619d5863a Minor fixes/tweaks
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-09 14:23:55 +09:00
7484e710e7 Fix missing "break" in collision success
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-09 14:08:59 +09:00
ba241417a2 Use Raylib's Ray/Triangle collision fn
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-09 14:00:54 +09:00
7f73388943 Refactorings
Use bounding boxes for collision checks, and only check collision
against triangles when bounding box collides.

Use const where applicable.
2023-08-09 13:54:56 +09:00
cab92d140b Clamp dt: mitigate weird regain focus behavior 2023-08-09 13:39:43 +09:00
cbcf0da5ce Refactor duplicate code into lambda fn
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-09 13:26:15 +09:00
2dc30ce252 Change camera behavior to follow click/touch
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-09 12:38:09 +09:00
0467c945b5 Refactor duplicate code into function 2023-08-09 12:22:33 +09:00
6580049978 Impl. click/touch collision with environment
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 15s
2023-08-08 12:20:26 +09:00
4a5b3073c3 Impl. randomized environment
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 15s
2023-08-08 11:33:07 +09:00
0d36747031 Add helper fn to calc. ray/plane intersection
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 14s
2023-08-07 21:39:59 +09:00
4fd9ce3b33 Implement click/touch ray-tracing onto surface
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 15s
2023-08-07 14:11:58 +09:00
fe59f09af5 Begin work on environment
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
2023-08-07 12:54:23 +09:00
8bc8bdf0c5 Test using a textured cube 2023-08-04 14:32:05 +09:00
f0ce6520f4 Fixes
Rotation Matrices should now match the "right-handled rule".

Fixes related to weirdness using the column-major ordered Matrix struct.
2023-08-04 11:42:11 +09:00
c99407a474 Impl 3d_helpers, unit tests, basic 3D demo
3d_helpers facilitate usage of transformation matrices.

Unit tests ensure the 3d_helpers are correct.

Currently, the program rotates a Cube mesh in x, y, and z axes.
2023-08-02 19:59:06 +09:00
1feefc5d9b Add ScreenStack::clear_screens() 2023-08-01 17:55:30 +09:00
a0dbf2b172 Emit warning: ScreenStack tries to pop when empty 2023-07-31 20:45:16 +09:00
7a4c8ea0f5 Defer ScreenStack actions to start of update 2023-07-31 20:39:46 +09:00
a617ef3fb6 Create "Screen" abstraction, "test" in TestScreen 2023-07-31 16:27:01 +09:00
ae52220020 Impl. getting delta-time per frame
Using temporary variable to cache dt to display, will be removed later.
2023-07-31 15:41:09 +09:00
06d882609b Keep all "draw commands" in Game 2023-07-31 15:28:01 +09:00
7e954ed34b Use game object for updates/draws/state
Also fix Makefile(s)
2023-07-31 15:01:51 +09:00
c146d86af7 Some minor fixes to build process 2023-07-30 21:43:18 +09:00
9c6f805697 Init skeleton project using emscripten/raylib 2023-07-30 21:34:38 +09:00