Skip to content

Instantly share code, notes, and snippets.

@anissen
Forked from po8rewq/Main.hx
Created August 19, 2016 13:10

Revisions

  1. @po8rewq po8rewq revised this gist Apr 23, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Main.hx
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ class Main

    static function main()
    {
    onInit - init;
    onInit = init;
    onUpdate = update;
    onDraw = draw;
    }
  2. @po8rewq po8rewq created this gist Apr 23, 2016.
    30 changes: 30 additions & 0 deletions Main.hx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    package ;

    import Pico.*;

    class Main
    {

    static function main()
    {
    onInit - init;
    onUpdate = update;
    onDraw = draw;
    }

    static function init()
    {

    }

    static function draw()
    {
    cls();
    }

    static function update()
    {

    }

    }
    5 changes: 5 additions & 0 deletions build.hxml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    -js game.p8hx
    -main Main
    -lib hxpico8
    --macro p8gen.PgMain.use()
    -dce full
    4 changes: 4 additions & 0 deletions game.p8
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    pico-8 cartridge // http://www.pico-8.com
    version 5
    __lua__
    __gfx__