Build Space Invaders Game using Java

von
Coursera Project Network
In diesem angeleitetes Projekt werden Sie:

Learn how to use the Swing toolkit to create your own customized Graphical User Interface.

Learn how to control object's actions using the keyboard.

Learn how to apply your own set of game rules.

Clock1 hour
BeginnerAnfänger
CloudKein Download erforderlich
VideoVideo auf geteiltem Bildschirm
Comment DotsEnglisch
LaptopNur Desktop

In this 1-hour long project-based course, you will learn how to create a basic and functional version of the popular game, Space Invaders using Java and Swing toolkit. Java is one of the most in demand programming languages, and using the Swing toolkit with it will give you a chance to easily implement many game applications. You will be able to identify and use most of the components inside the Swing toolkit that will aid you in building your own games, customized to fit your needs. In this guided project, you will be able to create a graphical user interface, populate it with your game pieces and control their movement using the keyboard. Furthermore, you will be able to make the enemy shoot automatically as the user shoots using the keyboard. Finally, you will be able to detect any hits and calculate the score. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Kompetenzen, die Sie erwerben werden

  • Video Game Development
  • Java
  • Swing toolkit
  • coding
  • Computer Programming

Schritt für Schritt lernen

In einem Video, das auf einer Hälfte Ihres Arbeitsbereichs abgespielt wird, führt Sie Ihr Dozent durch diese Schritte:

  1. Setting up java environment.

  2. Populating window by creating space invaders and the user.

  3. Enable automated invaders' movement and manually move user using keyboard.

  4. Enable user shooting using the keyboard and automate invader's shooting.

  5. Check if any of the bullets hit the opponent and keep track of the score.

Ablauf angeleiteter Projekte

Ihr Arbeitsbereich ist ein Cloud-Desktop direkt in Ihrem Browser, kein Download erforderlich

Ihr Dozent leitet Sie in einem Video mit geteiltem Bildschirm Schritt für Schritt an.

Häufig gestellte Fragen

Häufig gestellte Fragen

Haben Sie weitere Fragen? Besuchen Sie das Learner Help Center.