This project implements part of the std15.h API (from c4ij) with OpenTK, and Kawakudari Game on top of it.
It will allow programming for IchigoJam-like targets that display IchigoJam FONT on screen using a C# programming language.
private void OnLoad (object sender, EventArgs e)
{
frame = 0;
x = 15;
running = true;
}
private void OnUpdateFrame (object sender, FrameEventArgs e)
{
if (!running) return;
if (frame % 5 == 0) {
std15.Locate(x,5);
std15.Putc('0');
std15.Locate(rand.Next(0,32),23);
std15.Putc('*');
std15.Scroll(Std15.Direction.Up);
if (std15.Scr(x,5) != '\0') {
std15.Locate(0,23);
std15.Putstr("Game Over..");
std15.Putnum((int)frame);
running = false;
}
}
frame ++;
}
private void OnKeyDown (object sender, KeyboardKeyEventArgs e)
{
if(e.Key == Key.Left) x--;
if(e.Key == Key.Right) x++;
}
- Download and install .Net Framework. (In most cases, it is pre-installed.)
- Download and install mono suitable for your environment.
- Download and install packages related OpenGL, OpenGL ES and OpenAL suitable for your environment.
To build it
> csc /r:OpenTK.dll Kawakudari.cs IchigoJam.cs
Or with full path to compiler,
> \Windows\Microsoft.NET\Framework64\v3.5\csc.exe /r:OpenTK.dll Kawakudari.cs IchigoJam.cs
To run it
> Kawakudari.exe
To build it
$ mcs -r:OpenTK.dll Kawakudari.cs IchigoJam.cs
To run it
$ mono Kawakudari.exe
This work is licensed under a Creative Commons Attribution 4.0 International License.