Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.lua

require ("lib.math")

function _draw()
print("area(10,2): " .. tostr(area2d(10,2)))
end
```

after compiler:

```lua
function area2d(x, y)
return x * y
end

function _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
```