
Engine Programmer @AssembleTechLtd
London, England
Joined October 2014
- Tweets323
- Following328
- 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 wonder how many extra million lines of code exist in the world just because JSON doesn’t allow trailing commas.
Replying to @TylerGlaiel
You could try 10x editor by @stewartlynch8 It opens VS solutions and any type of searching works instantly across a codebase the size of UE4.
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
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
Pedro Custodio retweeted
Curious about “Programming Incrementally”? @niklasfrykholm has you covered in today’s blog! #gamedev #programming ourmachinery.com/post/step-b…
Replying to @ahmadierfan999
I was in a similar situation a year ago. I pitched my final year project as a comparison of rendering techniques (rasterisation and ray tracing) Means you have to write a ray tracer as well lol but it’s more “sciencey”. Feel free to DM :)



