#vm #2d #gamedev #game

maikor-vm-core

VM for playing Maikor games

16 releases

0.1.15 May 31, 2022
0.1.14 May 30, 2022

#903 in Game dev


Used in maikor-vm-interface

MIT license

195KB
4.5K SLoC

Maikor

⚠️ Work in progress

Links may be broken, features missing, etc

Cross-platform 16-bit game system

See more at maikor.app and the project homepage

Play

Android

iOS

Windows, macOS and Linux

Make

iOS IDE

Desktop IDE

Build tools

REPL

Docs

vm-core

This is a library that executes Maikor game files in a VM. It won't run by itself though, instead it requires an external program to manage timing and frame rate to keep the code execution speed similar between platforms.

Usage

Ideally use one of the vm-interface libraries

However, this is all that's need to run a game:

//read file
let maikor_game = read_file();
//create an instance
let mut vm = VM::new();
//load the game
vm.load_game(maikor_game);
vm.init(); 
//then
loop {
    vm.step();
}

(but most games need user input to work)

Dependencies

~1–2MB
~43K SLoC