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.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心