Build Space Invaders Game using Java

提供方
Coursera Project Network
在此指導項目中,您將:

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
Beginner初級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

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.

您要培養的技能

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

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心