An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# SapphireEngine (WIP)
powered by [sdlada](https://github.com/ada-game-framework/sdlada)

sapphireenginelogo

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?