Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is a port of flixel to the Monkey language
Monkey ActionScript BlitzMax JavaScript C# C++

Merge pull request #74 from wasiher/develop

Compatibility with new Monkey version
latest commit a198c22a78
@devolonter authored
Failed to load latest commit information.
bananas @ 5e7e4c2 Update bananas
data Update fontmachine font files
native Fixed config. Improved audio support and unknown targets support
plugin Update photonstorm submodules
system Update flxresourcesmanager.monkey
tests Rename magic global ClassObject to __CLASS__
tools/src Igonre preloader builder
vendor Fixed compatibility with new Monkey version
.gitattributes .gitattributes added
.gitignore Added debug.log to ignore
.gitmodules Changed submodule URLs
CHANGELOG.md Update headers
LICENSE.md Update headers
README.md Update headers
THANKS.md Update headers
flixel.lmbs Merge with master branch
flixel.monkey Moved primitive sprite renderers
flxbasic.monkey Update flxbasic.monkey
flxbutton.monkey Fixed hover bug in FlxButton
flxcamera.monkey Rename magic global ClassObject to __CLASS__
flxconfig.monkey Update photonstorm submodules
flxemitter.monkey Fixed FlxEmitter. Again? :)
flxextern.monkey Fixed compatibility with new Monkey version
flxg.monkey Fixed alias
flxgame.monkey Fixed Null pointer exception for HTML5 first render hack
flxgroup.monkey Fixed Null pointer error
flxmusic.monkey Fixed config. Improved audio support and unknown targets support
flxobject.monkey Fixed compatibility with new Monkey version
flxparticle.monkey Rename magic global ClassObject to __CLASS__
flxpath.monkey Fixed compatibility with new Monkey version
flxpoint.monkey Fixed toString methods
flxrect.monkey Fixed toString methods
flxsignals.monkey Connect and Disconnect now returns observers
flxsound.monkey Fixed compatibility with new Monkey version
flxsprite.monkey Fixed compatibility with new Monkey version
flxstate.monkey Added switch state listener
flxtext.monkey Fixed text parsing
flxtileblock.monkey Rename magic global ClassObject to __CLASS__
flxtilemap.monkey Fixed compatibility with new Monkey version
flxtimer.monkey Removed unnecessary type casting in FlxTimer.Progress property
flxu.monkey More fixes for FlxU.FormatMoney

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="your_app*"

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.

Something went wrong with that request. Please try again.