1.2 KiB
1.2 KiB
Getting Started
This guide explains how to set up a minimal Prosperon project and run it.
Installation
-
Download/Install Prosperon: (Describe your installation steps or where to get Prosperon.)
-
Folder Structure: A typical project might have:
my-game/ game.js <-- main entry script config.js <-- runs at engine startup, sets up environment scripts/ <-- .js, .jso, or actor-based script files assets/ <-- images, sounds, etc. -
Run the Engine: From your project folder, run:
prosperon
By default, it will look for config.js (if present), then main.js (or editor scripts) to start.
Hello World Example
-
Create a file named
config.jsin your project folder:console.log("Hello from Prosperon!") this.kill() // quits immediately after printing -
Run
prosperonin that folder:prosperonYou’ll see
"Hello from Prosperon!"in the console, and then the engine exits.
That’s it! Next, we’ll explore writing more complex logic with actors, spawning objects, and drawing a game screen.