Commit graph

91 commits

Author SHA1 Message Date
da6038dc92 Reduce screen object size by wrapping arrays
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 26s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
Arrays are wrapped in `unique_ptr`s.
2023-10-20 23:24:05 +09:00
a7f25e851e Refactor fetching uniform handles for shaders
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 25s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
Fetch uniform handles only once instead of every draw for
ElectricityEffect and SparkEffect.
2023-09-04 12:07:15 +09:00
8164c6633f Remove remnant of debugging (unnecessary comment)
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 24s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-09-01 23:39:22 +09:00
e943c8672c Minor fix
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 24s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-09-01 11:58:18 +09:00
90e009956f Attempt to properly define pointer variable
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 25s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-08-31 22:22:27 +09:00
b96f3e9f03 Attempt to fix wasm compile error
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Has been skipped
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Successful in 26s
extern game pointer needs initializer?
2023-08-31 22:19:21 +09:00
fb7b651303 Impl. clearing and pushing trunnerscreen from js
Some checks failed
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Has been skipped
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Failing after 16s
2023-08-31 22:17:19 +09:00
6cbc044251 Add test fn to clear screens from js
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Has been skipped
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Successful in 26s
2023-08-31 22:11:04 +09:00
5c9cd56884 Impl. shader for SparkEffect
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
The shader gives the "sparks" a white center.
Drawing sparks now generates a flat "circle" (facing the camera) instead
of drawing a 3D sphere.
2023-08-31 17:02:36 +09:00
c14123b3d0 Minor refactoring
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 26s
2023-08-31 15:34:58 +09:00
3c944d6f8e Impl. randomized effect colors on walker hack
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 26s
Also, minor fixes/refactorings.
2023-08-31 15:26:24 +09:00
247fc8c74b Minor refactorings
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
2023-08-31 13:26:43 +09:00
32f5440a24 Minor fixes
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 26s
2023-08-31 11:24:40 +09:00
1ddd42cac9 Reduce log verbosity on Release build
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
2023-08-30 18:00:05 +09:00
e57cceeaf5 Fix error on Release build using Debug macros
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 14s
2023-08-30 17:44:19 +09:00
2e97bb6a83 Impl. shader to improve ElectricityEffect
Some checks failed
Build and Publish WASM version of demo / Build-And-Deploy (push) Failing after 15s
2023-08-30 17:38:11 +09:00
4755b53deb Rework electricity effect (again)
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
Should be more efficient as a quad is generated instead of a cylinder
per draw.
2023-08-25 18:29:18 +09:00
0bd7e4bbf8 Minor tweaks to spark effect
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
2023-08-25 13:12:14 +09:00
12cddad260 Impl. SparkEffect
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 25s
SparkEffect is an additional effect that occurs when successfully
"hacking" a Walker.
2023-08-25 13:07:54 +09:00
dd678f12ba Split off code into 3d_helpers function
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 22s
2023-08-24 17:04:51 +09:00
310fa33b01 Rework electricity effect (again)
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 22s
2023-08-24 16:55:43 +09:00
8e8a8b0684 Tweaks to electricity "line" generation
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 22s
2023-08-24 16:10:22 +09:00
ff45edbece Cleanup ElectricityEffect class
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
2023-08-24 16:01:43 +09:00
8b44a59317 Refactor WalkerHackScreen, close on success
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 22s
2023-08-24 15:55:27 +09:00
bfa1e31305 Rework electricity effect "line" generation
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
2023-08-24 15:49:22 +09:00
d7351f9e3b Fix tweak for electricity effect
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
2023-08-24 15:09:59 +09:00
fb7514139f Tweaks to WalkerHackScreen
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 22s
2023-08-24 15:02:46 +09:00
b18728c684 Minor tweak to electricity effect 2023-08-24 14:58:00 +09:00
6a0c4d6f37 Add "electricity" effect when "hacking" a walker
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
2023-08-24 13:53:57 +09:00
b113f2ae23 Organize imports on screen.cc
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-23 17:35:24 +09:00
9e40d9214d Remove unnecessary include
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-23 16:41:42 +09:00
d7d1d4d7a0 Impl. "hacking" a "Walker"
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
The "hack" is to press a button in a time limit after clicking on a
Walker's head. If successful, the player can control the Walker. On
failure, nothing happens.
2023-08-23 16:37:26 +09:00
17aa7f6860 Fix StackScreen's draw
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-23 15:16:41 +09:00
f091bbf0fd Reverse order of draw in ScreenStack
Some checks failed
Build and Publish WASM version of demo / Build-And-Deploy (push) Failing after 6s
Draws should be in order from bottom to top.
2023-08-23 15:06:14 +09:00
9a99e8f264 Draw lines around buttons
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-22 11:57:09 +09:00
03a2ba7256 Refactor drawing 2023-08-22 11:53:06 +09:00
71ab2f7b35 Minor fix when generating surface_triangles
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-21 15:53:10 +09:00
24c3ade5ee Cleanup surface_triangles when done resetting
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-21 15:17:41 +09:00
ca5afe14c3 Fix warning
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-21 15:11:23 +09:00
1b4e30be11 Allocate SurfaceTriangles on the heap (fix wasm)
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-21 15:07:03 +09:00
d8b81f29cc Impl. resetting surface with neat visual effect
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
2023-08-21 14:37:50 +09:00
530920c811 Allow resizable window in native build 2023-08-21 12:58:52 +09:00
e24b600723 Separate surface generation code into function
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 20s
2023-08-21 11:41:04 +09:00
596912617f Minor fixes
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 19s
2023-08-18 15:50:37 +09:00
96bf4c30e5 Inhibit some clang-tidy warnings
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-18 14:46:33 +09:00
d4850f99bb Minor fixes to 3d_helpers.cc
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-18 13:27:49 +09:00
ff03f30809 Minor refactoring
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
Prevent creating a screen-less PendingAction with invalid type.
2023-08-17 16:07:09 +09:00
89e19cf084 Impl. "construct screen" fn for Screen/ScreenStack
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 19s
Minor fix to push_screen() fn in ScreenStack.
2023-08-17 13:00:42 +09:00
11c7dec3ed Walkers' bounding box now visible unselected
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 17s
2023-08-15 19:21:43 +09:00
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