Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isacben/template-p8
A PICO-8 project boilerplate.
https://github.com/isacben/template-p8
game game-development gamedev pico-8 pico8
Last synced: 18 days ago
JSON representation
A PICO-8 project boilerplate.
- Host: GitHub
- URL: https://github.com/isacben/template-p8
- Owner: isacben
- Created: 2023-02-11T21:20:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T16:30:17.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T11:42:42.739Z (2 months ago)
- Topics: game, game-development, gamedev, pico-8, pico8
- Language: Lua
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# template-p8
template.p8 is a simple boilerplate project for a PICO-8 videogame.
The boilerplate contains:
* The `_init()`, `_update()` and `_draw()` functions
* A simple state machine for the general game:
- Title screen state
- Playing (in-game) state
- Game over state
- Sample code to switch between states
* Pre arrange tabs for the PICO-8 code editor:
- tab 0: the `_init()`, `_update()` and `_draw()` functions
- tab 1: the update tab with the state machine
- tab 2: the draw tab with the state machine
- tabs 3, 4 and 5: empty tabs to write your code
- tab 6: a tab for helper functions
* A helper function `cprint()` to print centered text### Instructions
1. Clone or download the repository
2. Copy the `template.p8` file to the directory where you will save your project
3. Rename the `template.p8` file to whatever you need, for example `game.p8`
4. Load your renamed file (for example `game.p8`) in PICO-8~
2023. Isaac Benitez