Skip to content

j341nono/2Dshooting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript 2D Shooting Game

HTML5 CSS3 JavaScript PHP

Demo

Game Demo GIF

Play the game online: link

About

This is a 2D shooting game developed entirely from scratch using JavaScript as part of PBL Exercise I at Ehime University, Faculty of Engineering. The game features classic arcade-style gameplay with modern improvements and clean, maintainable code structure.

Key Features

  • Pure JavaScript Implementation: Built without external game frameworks
  • Responsive Controls: Smooth player movement and shooting mechanics
  • Enemy AI: Various enemy types with different movement patterns
  • Item System: Power-ups and items dropped by defeated enemies
  • Score System: Track your performance and compete for high scores

Recent Improvements

This project has been enhanced from the original PBL deliverable with the following improvements:

  • Code Refactoring: Improved code organization and maintainability
  • Item Drop System: Enemies now drop items when defeated
  • File Structure Reorganization: Better project organization
  • Performance Optimizations: Smoother gameplay experience

Technologies Used

  • HTML5: Game structure and canvas element
  • CSS3: Styling and responsive design
  • JavaScript: Core game logic and mechanics
  • PHP: Server-side functionality (if applicable)

Getting Started

Prerequisites

  • A modern web browser with HTML5 Canvas support
  • Local web server (for development)

Installation

  1. Clone the repository
git clone git@github.com:j341nono/2Dshooting.git
cd 2Dshooting
  1. Open game.html in your web browser or serve it through a local web server

How to Play

  • Movement: Use arrow keys or WASD to move your character
  • Shooting: Press spacebar to shoot
  • Objective: Defeat enemies and collect items to achieve the highest score possible

Project Structure

├── game.html          # Main game file
├── css/              # Stylesheets
├── js/               # JavaScript game logic
├── asset/           # Game asset (images, sounds)
└── README.md         # This file

Acknowledgments

This project was developed with reference to the source code published by akichon. The original tutorial and source code can be found at: https://aki28.com/f/stg2/

Team

Developed by Group G (G班) - PBL Exercise I, Faculty of Engineering, Ehime University

License

This project is created for educational purposes as part of university coursework.


(back to top)

About

PBL project from Ehime Univ. - A 2D shooting game built with vanilla JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors