My Godot learning journey with Space Invaders


I'm happy to have developed this very classic space invader as a second program of my Godot learning journey.

It seems easy when it's done, but I learned a lot, and will not do the same choices next times.

For instance, I am now convinced that choosing a CharacterBody2D Node for the invaders is not the right way to do.

Next time, I will design the game architecture in advance and try to get entities more isolated, more autonomous that they have been developed in this very game. 

Program is not that "bad written" though, but I know I could do better !

I think I'm more comfortable now with :

  • Nodes : what type of nodes to choose for what purpose (definitely not a CharacterBody2D for invaders)
  • Shaders : beautiful scrolling background developed in seconds
  • UI : become easier every time, but I should have defined a Theme rather than overriding the default one
  • Sound : a game is far better with sound, and sound implementation is trivial
  • Signals : how to make entities autonomous and let signal managed by a GameManager class
  • Collisions : how to manage Layers & Masks
  • Tree Management  : again, admit that code is faster than changes in Nodes within the tree. Think about how, when you change a Node property in the code, that it could not be taken into account in the next line of the code. This is a crucial point to have in mind. Always !


Code available here : https://github.com/WhitePuppyGD/SpaceInvader.git

Files

Space_Invaders.exe 80 MB
1 day ago
Space_Invaders.app.zip 58 MB
1 day ago

Get Space Invaders

Leave a comment

Log in with itch.io to leave a comment.