A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Gigoteur/PX8/wiki/API-Documentation below:

Home · Gigoteur/UnicornConsole Wiki · GitHub

Welcome to the Unicorn wiki!

It is fairly easy to create a simple game with Unicorn Console.

You could create directly a UNI empty file with at least the section code ("__python__" or "__lua__" or "__javascript__"), with the 3 functions that will be called by the engine.

With Python:

unicorn / python cartridge
version 1
__python__

def _init():
  pass

def _update():
  pass

def _draw():
  cls()
  unicorn_print("Hello World", 40, 64, 1)

With Lua:

function _init()
end

function _update()
end

function _draw()
  cls()
  print("Hello World", 40, 64, 1)
end

With javascript:

function _init() {
}

function _update() {
}

function _draw() {
}

You can test it with with the devkit:

./target/release/uc-devkit -s helloworld.uni

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4