Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Welcome to the akesi lili documentation!

akesi lili is a fantasy console for developing retro 2d game boy-styled games using the koto scripting language.

How to use these docs

This section provides guidance on how to navigate and utilize the akesi lili documentation effectively. Whether you're new to akesi lili or an experienced user.

Prerequisites

To develop games with akesi lili, you should have a basic understanding of the koto scripting language. koto is easy to learn, and you can find comprehensive documentation and resources on the koto documentation website.

The latest version of akesi lili (alpha 3 - 0.3.0) uses Koto in version 0.16.

Example

Here's a simple "Hello World" example to get you started with akesi lili:

s={text:''}

# Initialize the game data
export init = ||
 s.text = "Hello, World!"

# Draw the game on the screen
export draw = ||
 # Clear the screen with color 0
 clear(0);

 # Draw the text at position (10, 10) with color 3
 txt(s.text, 10, 10, 3);

In this example:

  • The init function sets up the initial game state by storing the text "Hello, World!" in the state object s.
  • The draw function clears the screen and draws the text at the specified position.

This example demonstrates the basic structure of an akesi lili game, including initializing game data and drawing to the screen.