Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1c920a8
We can load the parkor game script
tylerthecoder Jul 17, 2024
dcd3a17
Compiles and jump script works
tylerthecoder Aug 3, 2024
a963caa
Added chunk insert, thx to Addie for chunk id math
tylerthecoder Aug 4, 2024
7a0bef3
Game scripts and chunk stuff
tylerthecoder Aug 10, 2024
6f9505b
Add getting player script and actions from js
tylerthecoder Aug 11, 2024
4ca43ff
App is loading now
tylerthecoder Aug 17, 2024
09bbf0b
refactor entities to a list of components
tylerthecoder Aug 18, 2024
b84b60e
Better Action System
tylerthecoder Aug 19, 2024
6b7d9e4
Almost all vectors build
tylerthecoder Sep 1, 2024
97d097f
All the tests pass!
tylerthecoder Sep 1, 2024
9bc687a
Everything is fucked and idk why, I fixed some of the wrappers
tylerthecoder May 18, 2025
4eb50e9
Can view things in the UI. The chunk rendering is messed up though
tylerthecoder May 18, 2025
0741de7
Rendering the blocks works again
tylerthecoder May 18, 2025
29cd276
Can move around the infinite world again
tylerthecoder May 18, 2025
a13c6f5
Can make gamescripts from js
tylerthecoder May 18, 2025
da7d68e
Request chunks
tylerthecoder May 19, 2025
df6234a
Can seralize entities
tylerthecoder May 19, 2025
f318941
Half way through game serialization
tylerthecoder May 19, 2025
2ff5efc
Sererializing works
tylerthecoder May 19, 2025
b69e209
Serializing the whole game works
tylerthecoder May 20, 2025
031b3cb
Rewrote the server, not tested, much simpler
tylerthecoder May 20, 2025
899f67a
WIP for mp games. added server runner script that handles the logic
tylerthecoder May 21, 2025
5cc1c80
Server is sending chunks and accepting player actions
tylerthecoder May 24, 2025
7f7fc90
Players can see eachother move
tylerthecoder May 24, 2025
9b9d213
Placing blocks works
tylerthecoder May 25, 2025
8908ba3
Making player controls better
tylerthecoder May 25, 2025
b676cea
Jumping and gravity works
tylerthecoder May 25, 2025
a5563ac
Fix rendering
tylerthecoder May 25, 2025
38de105
Collisions are basically perfect now!
tylerthecoder May 26, 2025
de817a5
Much better UI
tylerthecoder May 26, 2025
b88cc7b
belt works again
tylerthecoder May 26, 2025
7f1c03e
better entity ser and desr
tylerthecoder May 27, 2025
7f08c3b
basics of fireballs
tylerthecoder May 27, 2025
13ee641
Fireballs now show up
tylerthecoder May 27, 2025
6187117
Fireballs remove blocks and hurt players.
tylerthecoder May 28, 2025
7474b49
Some server fixes
tylerthecoder May 28, 2025
e1d2d5b
Server games work again
tylerthecoder Jun 3, 2025
7064712
faster chunk insertion
tylerthecoder Jun 4, 2025
4afc4d6
claude made basic form of game config. Needs work
tylerthecoder Jun 6, 2025
723eec6
Game scripts config. Chunk Getting is in rust now
tylerthecoder Jun 12, 2025
aefe979
Working on game script serialization
tylerthecoder Aug 31, 2025
d7c947d
The scripts serialize and deserialize well now
tylerthecoder Sep 8, 2025
1235d03
Updating ui
tylerthecoder Sep 8, 2025
1fffc27
Better menu UI
tylerthecoder Sep 13, 2025
6370aed
Game cleanup works!
tylerthecoder Sep 13, 2025
fde8855
chunk fetcher saves
tylerthecoder Sep 13, 2025
ba9f46a
Fixing chunk mesh rendering
tylerthecoder Sep 13, 2025
9162c90
cargo fix
tylerthecoder Sep 13, 2025
38d3820
Moving a lot of files
tylerthecoder Sep 14, 2025
ee32284
better inital loading
tylerthecoder Sep 14, 2025
782bfc4
Refactor game management and serialization logic; streamline game loa…
tylerthecoder Jan 11, 2026
c65acc8
Add game creation flow and logging; improve client-server interaction
tylerthecoder Jan 11, 2026
417ac81
Some updates to server chunk loading and connections
tylerthecoder Jan 24, 2026
1f7588b
Fix to loading too many chunks
tylerthecoder Jan 24, 2026
5851fdf
Entities are rendered, but the posistions aren't synced
tylerthecoder Jan 25, 2026
1c5f0a5
remove unneeded mount
tylerthecoder Jan 25, 2026
281bac3
devlog update
tylerthecoder Jan 25, 2026
1926887
Removed game updates outside of the game loop
tylerthecoder Jan 25, 2026
9b49d02
Add teleport action
tylerthecoder Feb 8, 2026
c62b573
Refactor rotation handling in player actions; update game scripts to …
tylerthecoder Feb 8, 2026
75d27f0
Server syncing works!
tylerthecoder Feb 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
"gravitable",
"mult",
"toolbelt",
"Tsify",
"tylercraft",
"upsert",
"vecs",
"wasd"
],
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"files.exclude": {
// "bin/": true
},
"rust-analyzer.linkedProjects": ["lib/world/Cargo.toml"],
"search.exclude": {
"**/node_modules": true,
Expand All @@ -26,5 +24,10 @@
},
"editor.suggestSelection": "first",
"eslint.nodePath": ".yarn/sdks",
"typescript.enablePromptUseWorkspaceTsdk": true
"editor.defaultFormatter": "dbaeumer.vscode-eslint",

"typescript.enablePromptUseWorkspaceTsdk": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
9 changes: 9 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Folder-specific settings
//
// For a full list of overridable settings, and general information on folder-specific settings,
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
{
"rust-analyzer": {
"linkedProjects": ["./lib/world/Cargo.toml"]
}
}
210 changes: 172 additions & 38 deletions DEVLOG.md

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions Events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

The game has many scripts. The scripts control entities in the game.

Scripts have a list of actions that can be taken on them. These actions can be serilaized and sent over a server.
Example
(entityId, action, data) = ("player1", "move", "left")

You can query a player for all of its actions

Script data is not serilaized

Example Scripts
JumpScript,
MoveScript,
GravityScript,



Flow of events for user pressing space:
- JS creates a jump event
- Jump event sent over the wire (either to server or worker)
- Game recieves jump events and finds script for it
- Script looks up the event and executes it



Player Places block:
- Js creates a place block event
- Sent over wire
- Game recieves place block event and finds script for it
- Script looks up the event and executes it
- Chunks have been updateds so JS game scripts are called


58 changes: 0 additions & 58 deletions apps/server/db.ts

This file was deleted.

151 changes: 0 additions & 151 deletions apps/server/game-service.ts

This file was deleted.

Loading
Loading