Skip to content

2002yy/Plane-Shot

Repository files navigation

Plane Shot — 飞机移动抢红包游戏

2D plane-collector desktop game built with Java 17 / Swing.
This is an early Java desktop practice project, kept as a record of GUI and packaging experiments.

游戏截图 局部截取_20260207_175554

Engineering Notes

  • Java 17 desktop GUI application with Swing / AWT
  • Login/register flow with local file persistence (userDatabase.txt)
  • Level selection and game loop separation
  • Packaged with jpackage for portable distribution (no JRE required)
  • Single-file zip distribution, no registry writes

How to Run

  1. Download PlaneShot_v1.0.zip from Releases
  2. Extract and double-click game.jar (requires Java 17+)

Or build from source:

javac *.java
jar cvfe game.jar Main *.class
jpackage --type app-image --name "PlaneShot" --input . --main-jar game.jar --main-class Main

Controls

Key Action
Arrow keys ↑↓←→ Move plane

Default account: admin / 2002. New accounts can be registered in-game.

Project Structure

├── Main.java                 # Entry point, launches login
├── GameWindow.java           # Game window, rendering, controls
├── LoginWindow.java          # Login / register UI
├── LevelSelectionWindow.java # Level selection
├── UserManager.java          # Account persistence (userDatabase.txt)
└── assets/                   # Game images and icon

License

MIT License. Game assets are not original — ensure you have the right to use them before redistributing.

About

Plane Shot —— 一款用 Java 编写的怀旧风飞机射击小游戏! 控制战机、收集红包,体验流畅操作与像素乐趣。 ✅ 纯 Java Swing 开发|✅ 账号登录系统|✅ 多关卡选择|✅ 打包即玩 无需复杂依赖

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages