Hey everybody,
after finishing the Block Breaker section and watching the first few videos of Laser Defender I aborted for the moment and I began creating my “Zap 2! - Reloaded” from scratch without watching any tutorials or courses.
The original game “Zap!” I created like 10 years ago with a beautiful language called Blitzbasic, although the game was very, very basic and most of it was probably kinda copied from tutorials. The last part is the main reason I don’t wanna use courses/tutorials to create this game. I want it to be made by myself completely.
I didn’t know anything about coding the last time, but fortunately I know at least a little bit more about that now and those udemy-courses are really helping to get into the engine.
Talked a lot without saying much - so this is what I have so far in about 600 lines of code (actually… it’s not very much if I look at it this way as I barely started and there’s sooo much more to do, but still, here are the currently functional features…):
- Parallax scrolling background (speed/sprite easy to customize for each level)
- Working and fully customizable HUD with -for the moment- very basic shield- and lifebars
- Working shield-system including regeneration and shield being offline with variable time it needs to rebuild and come online again. Also the shields opactiy reduces according to the shield-energy.
- Fully working damage-system respecting the collisions of projectiles with shield OR hull, depending on shield-energy being left or not.
- Collisions between shields/ships // shields/shields // ships/ships
- Ship movement with physics forces and variable-drag (friction - yes I know, this is a SPACE game, but I think it’s more fun this way ) rather than moving with a fixed value without any actual acceleration
- Every script is built upon reusable base-classes like SpaceShip, which is built upon SpaceShip etc. etc… A lot of inheritance already for this kind of game, but I hope it will be worth it in the end
- Duplicating or even creating prefabs from scratch for ships (both enemy and player), shield-types and projectile-types is a matter of very few seconds within the unity editor.
Meaning I can create for example 10 different types of projectile-prefabs with different looks, speeds and damage-values within a few seconds. After than I could create a new shield-prefab and then add all of that the a fully customizable ship, which can have an individual number of different weapons with different firing-offsets, different rates of firing etc. etc.
All of the last mentioned work is actually pure designing, which can be done completely in the inspector, so this has to be good for something.
The last two images show some of the customization-possibilities for a ship.
Unwanted functionalities like shields for example can also be turned off completely for each ship separetely.
Hope you like it up to this point although I know I don’t have a lot to show yet, but I’d like to use this discussion-thread as a kind of process-blog if you people don’t mind. That way I can really SEE the process I am making.
Thanks for any feedback up front!
See you on discord,
Caesium