The first thing I implemented for Patent Blaster was creature generation. At first, the program would just print out some stats, then I made a system that would display two creatures next to each other and have them "fight" by subtracting damage from HP until one of them lost. Another stat I put in right at the start was the move mode - sliding, hopping, flying or hovering.
When it came to implementing these, most of them were easy: sliding just meant that as long as you stayed in contact with the ground, you could move. Hopping is just sliding with a constant compulsion to jump. Flying is easiest of all: turn off gravity and move on both axes. But hovering was hard.
It's easy to adjust the amount by which an something is affected by gravity in Patent Blaster, so the thing I tried first was to vary that: a hovering creature would experience slightly negative gravity until it got too far off the ground, and then experience positive gravity again for a while. In practice, this didn't work at all: creatures stayed resolutely on the floor, or drifted away, or moved in ugly jerking up-and-down motions. They also tended to get stuck on the side of obstacles a lot.
I had to think about what I actually wanted: that classic sci-fi hover with the wubwubwub sound and the moving sheets of repulsor energy.
And hovering works exactly like that now: creatures send out little energy sheets downwards. When a sheet hits the ground, the creature that sent it gets an upwards push. Sheets expire after travelling a little distance, and that distance varies a little. This means it's all self-regulating: if a creature gets too high up, most of the sheets fail to connect, and it falls down a little. If you move onto higher or lower ground, you slowly rise or sink to the new level.
I was originally not going to put in hovering as an option for players, but it turns out to be too much fun not to include.
- October 1stOpen Sourced.
- June 18th80% off this week!
- June 14thHouse Hazards
- May 29thHouse Update!
- April 11thHouse Update Progress
- March 27thHovering: A History
- March 21stThe Bugfix Update
- March 18thThe Many Moods of the Target Reticle
- March 15thNice business, would be a shame if something happened to it...
- March 11thWeapons Guide
- March 10thRelease Date Announcement
- March 8thHallway Testing in the Cafeteria
- March 6thVideo: Adding Grenades
- March 6thPreview by Indie Game Hunt
- March 4thThe Menagerie Expands
- March 1stVideo: Gameplay Trailer
- February 27thGearing up for Launch