Welcome to the Top Down JS Game Engine, a project fully developed in JavaScript!
Our goal is to create a top-down game engine that enables easy game development for multiple platforms using a single codebase. Since browsers can run on almost any hardware—from full-featured desktops to simple webviews—JavaScript allows you to build games that are easily accessible and deployable across a wide range of devices.
- Node.js (version 18 or higher recommended)
- npm (comes with Node.js)
- Modern web browser (Chrome, Firefox, Edge, etc.)
-
Clone the repository:
git clone <repository-url> cd top-down-js-game-engine
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
This will start the Vite development server. Open your browser and navigate to the provided local address (usually
http://localhost:5173). -
Build for production:
npm run build
The production-ready files will be generated in the
distfolder. -
Preview the production build:
npm run preview
src/— Source code for the engine and game logicindex.html— Main HTML entry pointpackage.json— Project configuration and scripts
- Modular, extensible engine architecture
- Canvas-based rendering
- Keyboard controls for movement and sprinting
- Easily add new characters and objects
This project is for educational