Commit graph

123 commits

Author SHA1 Message Date
Stephen Seo d49941096a Attempt to fix wrong canvas size
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 51s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
After bumping emsdk version, the canvas loads with an invalid size. This
commit attempts to fix this.
2024-03-21 16:56:49 +09:00
Stephen Seo 228abe779a Bump emsdk_version to 3.1.56
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 1m1s
2024-03-21 16:44:58 +09:00
Stephen Seo 2e734f4025 Fix 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 50s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
First clone of raylib was not checking out the git tag.
2024-03-21 16:36:35 +09:00
Stephen Seo 48f4e3b3d0 Update deploy wasm workflow
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 49s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2024-03-21 16:08:47 +09:00
Stephen Seo 05b45f1296 Update deploy wasm workflow
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 49s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
Change "builder" to non-local act runner.
2024-03-21 15:44:01 +09:00
Stephen Seo c38243f2ba Rename dir holding workflows for this project
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 47s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-12-18 21:24:23 +09:00
Stephen Seo a795171ae4 Update README.md
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 50s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
2023-12-18 15:31:25 +09:00
Stephen Seo be069d8ab1 Fix typo in third_party_build/wasm_make_raylib.sh
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 1m37s
2023-12-12 17:02:24 +09:00
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo b18728c684 Minor tweak to electricity effect 2023-08-24 14:58:00 +09:00
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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
Stephen Seo 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