Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipeizolan/pico-env
đšī¸ pico-env | environment to make pico8 games.
https://github.com/felipeizolan/pico-env
gamedev lua pico-8 pico8
Last synced: about 2 months ago
JSON representation
đšī¸ pico-env | environment to make pico8 games.
- Host: GitHub
- URL: https://github.com/felipeizolan/pico-env
- Owner: FelipeIzolan
- License: mit
- Created: 2023-03-01T10:50:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T07:05:41.000Z (almost 1 year ago)
- Last Synced: 2024-04-16T17:27:27.908Z (9 months ago)
- Topics: gamedev, lua, pico-8, pico8
- Language: Lua
- Homepage:
- Size: 55.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pico8-setup
pico8-setup is a environment to develop games to [pico8](https://www.lexaloffle.com/pico-8.php).
## Getting Started đ
```
git clone https://github.com/FelipeIzolan/pico8-setup.git
```- Edit PICO8 in Makefile
- Write your game in /src
- ```make debug```## Makefile đ
- debug - compile and run the cartridge.
- compile - compile the cartridge.
- load - load the cartridge.
## Modules đĻ
before compiler:
```lua
-- math.lua
function area2d(x, y)
return x * y
end
``````lua
-- main.luarequire ("lib.math")
function _draw()
print("area(10,2): " .. tostr(area2d(10,2)))
end
```after compiler:
```lua
function area2d(x, y)
return x * y
endfunction _draw()
print("area(10,2): " .. tostr(area2d(10,2)))
end
```## Pico8 Pattern đą
before compiler:
```lua
function _draw()
fillp("C")
circfill(32,32,8,9)
end
```after compiler:
```lua
function _draw()
fillp("đą")
circfill(32,32,8,9)
end
```