Commit graph

115 commits

Author SHA1 Message Date
7797779618 Fix to third_party_build/wasm_make_raylib.sh
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 30s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-12-12 16:39:20 +09:00
f7730a4d61 Minor fix to third_party_build/wasm_make_raylib.sh
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 1s
2023-12-12 16:36:19 +09:00
fc3dd1d4a4 Modify wasm Makefile to support alt emsdk sh path
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 1s
2023-12-12 16:24:09 +09:00
fe1ccff585 Clone and build Raylib instead of storing lib
Instead of storing pre-built Raylib lib and headers, use a script to
build Raylib on-demand for WASM builds.
2023-12-12 16:18:25 +09:00
877d351915 Update README.md with newer used emsdk
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 30s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-12-12 15:34:00 +09:00
695002bfe5 Use Raylib 5.0
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 30s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-12-12 12:44:35 +09:00
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
2da57c616c Update publish_wasm gitea workflow (gitea actions)
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-09-04 12:27:53 +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
7ca57870eb Update gitea workflow
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:02:38 +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