https://github.com/sabedoesthings/sapphireengine
2D and 3D game engine that uses the highly portable Haxe programming language
https://github.com/sabedoesthings/sapphireengine
Last synced: 5 months ago
JSON representation
2D and 3D game engine that uses the highly portable Haxe programming language
- Host: GitHub
- URL: https://github.com/sabedoesthings/sapphireengine
- Owner: SabeDoesThings
- License: mit
- Created: 2025-01-11T05:10:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-18T23:33:53.000Z (over 1 year ago)
- Last Synced: 2025-01-19T00:23:36.580Z (over 1 year ago)
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SapphireEngine (WIP)
powered by [sdlada](https://github.com/ada-game-framework/sdlada)

A simple 2D game engine for the [Ada](https://ada-lang.io/) programming language
(Primarily for my own use but is open for anyone)
## Install
To install just make a new alire project and do
```bash
alr with sapphire_engine --use=https://github.com/SabeDoesThings/SapphireEngine.git
```
## Barebones Example (rest of the example in the [examples](https://github.com/SabeDoesThings/SapphireEngine/tree/main/examples/barebones_example) folder)
```ada
package body Main is
overriding
procedure Init (G : in out Game) is
begin
null;
end Init;
overriding
procedure Update (G : in out Game; Dt : Float) is
begin
-- update loop
Ada.Text_IO.Put_Line ("FPS: " & Get_FPS'Image); -- print FPS
end Update;
overriding
procedure Render (G : in out Game) is
begin
CLS (99, 149, 238); -- clear the screen (cornflower blue color)
end Render;
overriding
procedure Destroy (G : in out Game) is
begin
null; -- destroy any objects like textures or sounds
end Destroy;
end Main;
```
More example can be found in the [examples](https://github.com/SabeDoesThings/SapphireEngine/tree/main/examples) folder.
## Documentation
TODO:
## Contributions
Contributions are welcome! :D
## Showcase
TODO:
## Features To Add
- [x] 2d rendering
- [x] sprite sheet animation
- [x] camera
- [ ] scene system
- [ ] particles
- [ ] 2d physics
- [ ] optional 2d level editor
- [ ] 3d?