This is a port of flixel to the Monkey language
Monkey ActionScript BlitzMax JavaScript C# C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bananas @ 5e7e4c2 Update bananas Aug 5, 2013
data
native Fixed config. Improved audio support and unknown targets support Aug 23, 2013
plugin Update photonstorm submodules Oct 14, 2013
system Fixes and improvements Aug 4, 2016
tests Rename magic global ClassObject to __CLASS__ Aug 4, 2013
tools/src Igonre preloader builder Jul 31, 2012
vendor Fixed compatibility with new Monkey version Oct 11, 2013
.gitattributes .gitattributes added Feb 10, 2013
.gitignore Added debug.log to ignore Jun 13, 2013
.gitmodules Changed submodule URLs Oct 20, 2013
CHANGELOG.md Update headers Aug 24, 2013
LICENSE.md Update headers Aug 24, 2013
README.md Update QuickStart sample #75 Feb 8, 2016
THANKS.md Update headers Aug 24, 2013
flixel.lmbs Merge with master branch Mar 20, 2013
flixel.monkey Moved primitive sprite renderers Aug 23, 2013
flxbasic.monkey Update flxbasic.monkey Nov 22, 2014
flxbutton.monkey Fixes and improvements Aug 4, 2016
flxcamera.monkey Fixes and improvements Aug 4, 2016
flxconfig.monkey
flxemitter.monkey Fixed FlxEmitter. Again? :) Aug 4, 2013
flxextern.monkey Fixed compatibility with new Monkey version Oct 11, 2013
flxg.monkey
flxgame.monkey Fixed Null pointer exception for HTML5 first render hack May 5, 2014
flxgroup.monkey
flxmusic.monkey Fixed config. Improved audio support and unknown targets support Aug 23, 2013
flxobject.monkey Fixes and improvements Aug 4, 2016
flxparticle.monkey Rename magic global ClassObject to __CLASS__ Aug 4, 2013
flxpath.monkey Fixed compatibility with new Monkey version Oct 11, 2013
flxpoint.monkey Fixes and improvements Aug 4, 2016
flxrect.monkey Fixes and improvements Aug 4, 2016
flxsignals.monkey Connect and Disconnect now returns observers Apr 14, 2013
flxsound.monkey Fixed compatibility with new Monkey version Oct 11, 2013
flxsprite.monkey Fixed compatibility with new Monkey version Oct 11, 2013
flxstate.monkey Added Draw And Update order Jan 27, 2016
flxtext.monkey Fixes and improvements Aug 4, 2016
flxtileblock.monkey Rename magic global ClassObject to __CLASS__ Aug 4, 2013
flxtilemap.monkey Fixes and improvements Aug 4, 2016
flxtimer.monkey Removed unnecessary type casting in FlxTimer.Progress property Aug 5, 2013
flxu.monkey

README.md

Flixel for Monkey

This is a port of flixel to the Monkey language. The port is translated from flixel v2.55 written by Adam 'Atomic' Saltsman.

Requirements

Monkey v60 or higher

Supported targets

HTML5, Flash, Android, iOS, XNA, GLFW, PSM, Win8, WP8

Install

  • For users with git installed:

    • Go to the Monkey modules directory
    • Do git clone git@github.com:devolonter/flixel-monkey.git flixel
    • Optionally. Do git submodule update --init to get bananas
  • For users without git:

Upgrade to new version

  • For users with git installed:

    • git pull
    • Optionally. Do git submodule update to update bananas
  • For users without git:

    • Download the latest version of the library from downloads directory
    • Replace flixel module content by archive data

Naming conventions

  • All-caps case (eg: 'ALLCAPS' ): Constants
  • Pascal case (eg: 'PascalCase' ): Globals, functions, class, methods, properties
  • Camel case (eg: 'camelCase' ): Fields, locals and function parameters

Notes

  • FlxSave currently is not ported
  • Debugger is absent
  • To build Windows Phone applications you must add a reference to Microsoft.Phone to the project

Demo

QuickStart

Import flixel

#REFLECTION_FILTER+="${MODPATH}*"

Function Main()
    New HelloWorld()
    Return 0
End Function

'Main class of the game
Class HelloWorld Extends FlxGame

    Method New()
        Super.New(640, 480, GetClass("HelloWorldState"))    
    End Method

    'Optional
    Method OnContentInit:Void()
        #Rem
        Register here all your assets, to use within application
        Example:
        FlxAssetsManager.AddImage("ball", "graphics/ball.png")

        Now you can load an image in the game this way:
        Local sprite:FlxSprite = New FlxSprite(0, 0, "ball")
        #End
    End Method

End Class

'Main game state 
Class HelloWorldState Extends FlxState

    Method Create:Void()        
        Local helloWorld:FlxText = New FlxText(10, 10, 620, "Hello World!") 
        helloWorld.SetFormat(FlxText.SYSTEM_FONT, 16, FlxG.WHITE, FlxText.ALIGN_CENTER) 
        Add(helloWorld)     
    End Method

    Method Update:Void()
        'put your game logic here
        Super.Update()
        '... or here
    End Method

End Class

See more examples in the bananas folder.