Commit f61d7fa
authored
Backend rework (#34)
* start redoing examples in sdl3
* bit further. planing to create a 4 player pong example
* good for now.
* ex game
* Sliders ex game
* Consistency with gekko_create
* redo disconnection logic. only fully drop when the remote is genuinely quiet.
* progress. have to make a new func to fetch received remote inputs to the frontend tho. cuz now its stalling.
* cleanup old-back to front bridge.
* dont forget to jump by input size.
* back to front api
* CULPRIT FOUND
* this should take care of the mem leak.
* allow input bufffers to store multiple incorrectly marked frames and also clear them when solved
* ok the main cause seem to be a missed case in the input prediction logic. added this case now.
the case was that when i had already predicted the input before i was trying to predict beyond my limit rather then using the input that was already generated.
* cleanup
* fixed incorrect received input parsing
* should be spectators covered.
* spectators send inputs in parralel nor series
* ball respawn and bounce based on paddle section
* update game
* remove asserts in critical code otherwise they will get optimized out and cause desyncs
* cleanup
* preety much finish the example. there no win conditions or scores tho.
* Limited saving is not needed when lockstep mode is active
* remove hud from emaple game
* cleanup
* Spectator example added.
* Create init.txt
* Add files via upload
* Add files via upload
* Update project descriptions and logo attribution1 parent 70eafbc commit f61d7fa
40 files changed
Lines changed: 1760 additions & 1757 deletions
File tree
- Examples
- FakeOnlineSessionSpectating
- FakeOnlineSession
- GekkoGame
- include
- src
- LocalSession
- OnlineSession
- Sliders
- SpectatorSession
- GekkoLib
- include
- src
- docs/images
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
This file was deleted.
0 commit comments