Scraps is a vehicle combat game where you can build your vehicle from functional parts, with design as your ally and physics as your accomplice. Compete against human or AI opponents in a combat arena, and scavenge from their wreckage to repair and upgrade your own creation.
Vehicle modification and repair in-game in Scraps.
Posted by Nition on Aug 16th, 2014
It's going to be interesting when everything comes together and I can start seeing how full games of Scraps actually play out. The current intended structure of the melee mode is like this:
The remains of your previous vehicle will have dropped on the map as wreckage, but I think I need to ban your new vehicle from picking those up. Otherwise you could build up a stockpile by blowing up on purpose and quickly reclaiming your previous wreckage with your new vehicle! Suggestions for game behaviour here are welcome, because maybe there's a good way to handle things that I haven't thought of yet.
This fortnight I've mainly been working on the Game -> Evac -> Build screen and Build -> Game progression, and the stuff you can do on the Build screen while you're there.
Getting it all working required a bit of a shake up of the current code because the in-game build screen has to run alongside the game map with everything still going on in the background. The other option would be that when you returned to the game, you'd reload the map and re-synchronise with the server, picking up the changes to everyone's vehicles, wreckage on the map etc etc since you were last there, all at once. I decided that the better option was to just keep running the game map in the background. Looking at other multiplayer games I own, that seems to be the usual solution. Team Fortress 2 is clearly just loading the character select screens etc on top of the game itself, as is Battlefield: Bad Company 2.
That took a bit of refactoring but things are just about working nicely now, with a few bugs remaining. I also got vehicle modification on the build screen working in multiplayer, so parts can be added and removed and it'll sync over the network, and there's a new Repair Mode.
Damaged vehicle at the top, Repair Mode at the bottom. Repair mode makes it easier to see how damaged each part is with colour-coding,, and also changes interaction so clicking on parts repairs them (if you can afford it) instead of picking them up. There's now also a Repair All button (not shown).
I've still got some things to fix up in this area, then I'll be getting respawning working. You should probably be able to select a different vehicle to spawn with as well, as long as it fits within the game's starting scrap amount.