https://github.com/gly-engine/core-native-tic
create your own game-engine with just lua for tic80.
https://github.com/gly-engine/core-native-tic
gameengine tic-80 tic80
Last synced: 4 months ago
JSON representation
create your own game-engine with just lua for tic80.
- Host: GitHub
- URL: https://github.com/gly-engine/core-native-tic
- Owner: gly-engine
- Created: 2025-02-27T19:38:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-21T16:36:38.000Z (6 months ago)
- Last Synced: 2025-05-30T00:40:32.623Z (4 months ago)
- Topics: gameengine, tic-80, tic80
- Language: Lua
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# core-native-tic
create your own game-engine with just lua for tic80.## How to Use
### Download CLI tool
```
wget -O tic_cli.lua https://cdn.jsdelivr.net/gh/gamelly/core-native-tic/tools/build.lua
```### Create/Download Engine
You can also create one following the specification.
* **love**
reimplementation by gamely `~10KB` (WIP)
* **gly engine**
fullset of gly engine `~60KB`
* **gly engine lite**
speed version gly engine `~40KB`
* **gly engine micro**
smallest version gly engine `~20KB````
wget -O engine.lua https://cdn.jsdelivr.net/npm/@gamely/gly-engine@0.0.20
```### Write a simple game
```lua
local function init(std, game)
game.player = {
x = 60,
y = 60,
size = 30
}
endlocal function loop(std, game)
game.player.x = game.player.x + std.key.axis.x
game.player.y = game.player.y + std.key.axis.y
endlocal function draw(std, game)
std.draw.clear(std.color.lightgray)
std.draw.color(std.color.skyblue)
std.draw.rect(0, game.player.x, game.player.y, game.player.size, game.player.size)
endreturn {
meta = {
title = 'TIC80 example',
author = 'RodrigoDornelles',
version = '1.0.0',
description = 'an game written in gly engine for tic80'
},
callbacks = {
init = init,
loop = loop,
draw = draw
}
}
```### Build the cartbridge
```
lua tic_cli.lua engine.lua game.lua pong.tic
```