fix camera ortho set to true; fix module loading; remove loop function to loop.js

This commit is contained in:
2025-02-03 17:08:07 -06:00
parent 68ccd63ddc
commit ede899e9a3
11 changed files with 203 additions and 152 deletions

View File

@@ -1,13 +1,15 @@
![alt text](doc/prosperon_orb_horizontal.gif)
git![alt text](doc/prosperon_orb_horizontal.gif)
The easily moddable, programming minded, 2D-first game engine. The aim is to make the fastest way to make games.
Using ...
* Sokol for rendering
* Chipmunk2D for physics
* imgui for easy editor UI
* Clay for game UI
It implements a good amount of ES6, but is NOT terribly compatible with the larger javascript ecosystem. Instead, the goal is to make it trivial to use C libraries in your programs, and to even write C code directly in your javascript.
Includes an implementation for Nota, and Kim.
Everything is text based, which makes integrating with AI trivial.
*Prosperon is useful, but is a work in progress. Breaking changes are frequent.*
## What's different from ES6?
Prosperon does not use the module system. Instead, there is a 'use' statement. Modules return a single javascript object. It can be a number, a function, or an object with a list of them. Modules are ran once, cached, and frozen before returned. It is wise to keep scripts short and generously import modules.
Programs are separated into modules and scripts. Modules end in a return statement; scripts do not.
Javascript promises do not work. await does not work. async does not work. It's all handled via callbacks, and parseq wrapper functions. This is a lot more intuitive for computer game AI.