Home

Awesome

luchok_libretro

64x32 is enough for everybody.

Playing invaders.luchok Playing snake.luchok

Luchok is Fantasy Console inspired by Chip-8. It is a libretro core.

Features

Building

To build Luchok, you must have cmake and a build system of your choice.

Running

retroarch executable -L luchok library afer building game file

For example, if on a GNU/Linux system, and you are locared in the repository root, you can run retroarch -L bin/luchok_libretro.so bin/invaders.luchok.

In Retroarch, press ScrollLock to switch between retroarch key bindings and Luchok keypad.

Installing

On Windows, you copy the .dll file into the cores folder of Retroarch, and copy the .info file into the info folder.

Usage

The games for Luchok are written in Lua, with file extension .luchok .

Every frame (60 per second) the function vblank() is called.

Each sprite is an array. Consecutive bytes are drawn in verical order. Each bit in a byte represents one picel, MSB to LSB is drawn left to right.

The API for the fantasy console is:

Keys

Luchok has 16 keys. They are located like this:

1 2 3 C

4 5 6 D

7 8 9 E

A 0 B F

and mapped to:

1 2 3 4

Q W E R

A S D F

Z X C V

License

Licensed under GNU General Public License 3.

Author

Roman "shinkarom" Shynkarenko (https://shinkarom.github.io).