Scripted vs Random Level Generation
For this simple game I want open ended levels, where each level had a different layout. The coin op arcade game this effort is inspired by has a rigidly defined set of level layouts it uses (because 80's coin op hardware had 24kb of ROM and 2kb of RAM). The Play.Date platform is much more generous.
First Attempt - JSON Files
Initially I built a set of JSON files that broke the 2880 x 2880 pixel world map into smaller 'level parts' that defined the layout of asteroids and enemy bases in an area. The idea was very vaguely based on Spelunky's procedural level generation and was total overkill. It did allow me to do interesting things like hide words and patterns in the world map but that was about it.
Second Attempt - Random Generation with Collision
Lone Fury now generates the levels by scattering a number of enemy bases and obstacles in a circular area of the world, around the player start position. A solution that is simpler to code, and produces more playable maps with interesting results. The level definition also becomes as simple as this:
Each level also increases the enemy base aggression - they fire more bullets more frequently, the spawn rate of harassing single enemy ships, and the speed at which you're required to destroy enemy bases before an 'Alert' summons an enemy formation to chase you.
What Did I Learn?
Things I already knew from my commercial day job to be honest:
- Don't Over-engineer: Build the simplest solution first to get some result, then you can iterate on it.
- Kill Your Darlings: This is a term from writing but I think it also applies to coding: If something isn't working, just chuck it away and try something else. Don't cling to a poor solution just because you've already built it.
Oh Oops Bugs
The current version of Lone Fury you can download has a bug. I've forgotten to erase the level collision map! About to fix that, but it means after a few levels of play the 180x180 level collision map looks like this. Oops!
Get Lone Fury Arcade Shooter for PlayDate
Lone Fury Arcade Shooter for PlayDate
Bosconian Arcade PlayDate
More posts
- Lone Fury v004 Uploaded3 days ago
- Lone Fury v003 Uploaded9 days ago
- Lone Fury v002 Uploaded12 days ago
- Getting the Itch13 days ago
Comments
Log in with itch.io to leave a comment.
This is awesome to read some of the process you've used to develop this Bosconian-type game for the Playdate. One of the games I have in mind to develop for the Playdate had some inspiration from Bosconian (and my game title also includes the word "Fury" in it, coincidentally). Downloading the demo to my Playdate now! The Playdate truly is happiness.