Remember That Movie From The 80s
Coming up with the title or this post made me remember that movie Enemy, Mine from the 80s. I think it was starring Dennis Quaid and Lewis Gossit Jr. They were enemies crash landed on a hostile deserted world and had to work together to survive. Then of course they become friends and have a bunch of adventures.
Interesting that they were both starship pilots and I’m working on a space shooter game… cause you know I liked them when I was a kid… in the 80s…
A Hit, A Hit, A Very Palpable Hit
We’ve got lasers firing and astroids asteroiding, or whatever it is they do, so now we need to be able to actually hit objects with our lasers. And the reverse, to know when an object has been hit by a laser, or another object for that matter.
Since starting this foray into game development I’ve continually been impressed about how supportive and helpful the Pico-8 community is. The forums have loads of great posts with comments that are usually helpful and questions ask to help someones understanding. Very fun to be a part of it in whatever small way I can.
Adding asteroids to the mix seems like a good idea. They don’t have bullets (hopefully) so they should be relatively easy to have float down the screen. Then again maybe they’ll come into the the scene from any angle… haven’t really decided on that part yet.
I think using the same type of object with an update method and an “array” of objects as we used with the bullets/lasers should work for asteroids too.
After reading more of the Pico-8 Zine 2 it’s crazy obvious that I should use a “Finite State Machine” to control the hero ship, enemies, etc. I’ve been looking through the code of the iconic P.A.T. Shooter and it seems a state machine is used to keep track of everything.
It makes sense and it seems to allow for more “portable” functions. As in hey this function is great I can totally use it pretty much as is in a whole other project. Yay, me! Yay, us guys! (at least that’s what I want to say)
When I hear the word FIRE (all caps necessary) I always think of Captain Kirk at the end of Undiscovered Country:
And it’s now time to make our hero ship fire it’s own weapons. In this case we’ll start with lasers and go from there. Thinking to have some type of bomb/missile to add a little extra kick to our plucky hero.
Plucky, ya definitely plucky!