https://github.com/burdockcascade/cosmos
Game Framework using Raylib and Lua
https://github.com/burdockcascade/cosmos
game-engine lua raylib
Last synced: about 1 year ago
JSON representation
Game Framework using Raylib and Lua
- Host: GitHub
- URL: https://github.com/burdockcascade/cosmos
- Owner: burdockcascade
- License: mit
- Created: 2024-10-05T16:23:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-16T10:44:02.000Z (about 1 year ago)
- Last Synced: 2025-02-16T11:27:11.120Z (about 1 year ago)
- Topics: game-engine, lua, raylib
- Language: Lua
- Homepage:
- Size: 11.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cosmos
## Feature Table
| Status | Feature | Description |
| --- | --- | --- |
| :heavy_check_mark: | Window | Create a window |
| :heavy_check_mark: | Graphics2D | Draw 2D graphics |
| :heavy_check_mark: | Input | Handle input events |
## Example
```lua
Window.Init(800, 450, "Basic Window")
Window.SetTargetFPS(60)
while not Window.ShouldClose() do
Window.ClearBackground(COLOR_RAYWHITE)
Window.BeginDrawing()
Graphics2D.DrawText("Congrats! You created your first window!", 190, 200, 20, COLOR_DARKGRAY)
Window.EndDrawing()
end
Window.Close()
```
## Dependencies
- [raylib](https://github.com/raysan5/raylib)
- [sol2](https://github.com/ThePhD/sol2)