
Engine Programmer @AssembleTechLtd
London, England
Joined October 2014
- Tweets323
- Following329
- Followers179
- Likes5K
Genuinely surprised at how smoothly this went. Ive always suspected that an undo system could be done in a simple way with arenas but I didn’t think it would be this straightforward.
Best part is I was able to totally avoid writing any sort of “action” system where actions could be done and undone. All the existing code that modifies the map state remained almost identical. The only change was an extra call to save a map snapshot in a few places.
The entire thing took under and hour and worked flawlessly after fixing some finicky address calculations that I initially got wrong.
The entire map state is kept in its own bespoke arena. Undo was implemented by just taking snapshots of the “map” arena and pushing them onto a stack in a separate “undo” arena. Snapshots are popped and restored onto their original arena when ctrl+z is pressed. That’s it!
🧵I was able to retrofit a basic undo system into my existing map editor relatively painlessly in under an hour because of how I manage memory with arenas.
I could be wrong but the combo of limiting FPS in the driver settings + specific seed + max render distance made me think of this. Maybe worth checking if TDR settings affects the repro rate? substance3d.adobe.com/docume…
I wonder how many extra million lines of code exist in the world just because JSON doesn’t allow trailing commas.
Pedro Custodio retweeted
Come and join our team at Assemble Technology!
We're an experienced tech team in the North West of England supporting a number of game studios - recently @Housemarque and @LucidGamesLtd
We're looking for great programmers whatever the stage of your career.
assembletechnology.io
This project was written in C using the excellent Sokol libraries by @FlohOfWoe
I was able to go from nothing to full 3D game very quicky having never used Sokol before. 10/10 would recommend Sokol for game jams if you like writing stuff yourself!
Decided last minute to join Ludum Dare. Made something weird with 3D audio
yyam.itch.io/deeprooms
Using Twitter with “latest tweets first” is such a serene experience. Way better than “Home” mode where it’s full of US politics and everyone’s depressing hot takes. Sometimes I just want to see cool gamedev stuff and not all the world’s problems at once..
Pedro Custodio retweeted
The XCOM 2 Collection lands on iOS on November 5th.
Save humanity from alien rule in the complete tactical experience of XCOM 2: War of the Chosen and four DLC packs – £23.99/ $24.99/ €27,99.
Welcome to the mobile resistance, Commander.
rb.gy/u8ljeu





