JavaFX Game: Space Invaders (for Beginners)

Subscribers:
9,540
Published on ● Video Link: https://www.youtube.com/watch?v=FVo1fm52hz0



Category:
Tutorial
Duration: 14:18
59,016 views
658


We build a simple foundation for a clone of Space Invaders using JavaFX.

Difficulty: Beginner-Intermediate

Improvements:

1. Smoother movement. In setOnKeyPressed() have moveLeft = true; In update() have if (moveLeft) moveLeft(). Same for other input actions.

2. Enhance Sprite capabilities by introducing Image and ImageView, so you can use images instead of Rectangle.

3. More levels. Create a data structure Level where you can store each level's enemy layout.

4. Add movement feature to enemies, so that they move left / right and drop down like in Space Invaders.

5. Make the game more fun and enjoy!

Source code: https://github.com/AlmasB/FXTutorials

Twitter: https://twitter.com/AlmasBaim
GitHub: https://github.com/AlmasB/
LinkedIn: https://www.linkedin.com/in/almasb/

This channel can be sponsored at: https://github.com/sponsors/AlmasB/







Tags:
java
java programming tutorial
java game tutorial
game tutorial for beginners
java for beginners
very simple game tutorial
javafx game tutorial
javafx
javafx tutorial
javafx game development
java game development
javafx game engine
javafx game framework
javafx game library
javafx space invaders
javafx game
java space invaders
javafx beginner game
simple javafx game
simple java game
java game