Skip to content
This repository

This is a port of flixel to the Monkey language

branch: master
Octocat-spinner-32 bananas @ 5e7e4c2 Update bananas August 05, 2013
Octocat-spinner-32 data Update fontmachine font files April 18, 2013
Octocat-spinner-32 native Fixed config. Improved audio support and unknown targets support August 24, 2013
Octocat-spinner-32 plugin Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 system Moved primitive sprite renderers August 24, 2013
Octocat-spinner-32 tests Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 tools Igonre preloader builder July 31, 2012
Octocat-spinner-32 vendor Yet another fix for TEXT FILES. Ugly but should work August 05, 2013
Octocat-spinner-32 .gitattributes .gitattributes added February 10, 2013
Octocat-spinner-32 .gitignore Added debug.log to ignore June 13, 2013
Octocat-spinner-32 .gitmodules Mojo HTML5 GL submodule added December 25, 2012
Octocat-spinner-32 CHANGELOG.md Update headers August 24, 2013
Octocat-spinner-32 LICENSE.md Update headers August 24, 2013
Octocat-spinner-32 README.md Update headers August 24, 2013
Octocat-spinner-32 THANKS.md Update headers August 24, 2013
Octocat-spinner-32 flixel.lmbs Merge with master branch March 20, 2013
Octocat-spinner-32 flixel.monkey Moved primitive sprite renderers August 24, 2013
Octocat-spinner-32 flxbasic.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxbutton.monkey Fixed multitouch support for buttons August 24, 2013
Octocat-spinner-32 flxcamera.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxconfig.monkey Removed debug print August 24, 2013
Octocat-spinner-32 flxemitter.monkey Fixed FlxEmitter. Again? :) August 05, 2013
Octocat-spinner-32 flxextern.monkey Fixed config. Improved audio support and unknown targets support August 24, 2013
Octocat-spinner-32 flxg.monkey Added config settings for input August 23, 2013
Octocat-spinner-32 flxgame.monkey Fixed config. Improved audio support and unknown targets support August 24, 2013
Octocat-spinner-32 flxgroup.monkey Fixed Recycle by object August 05, 2013
Octocat-spinner-32 flxmusic.monkey Fixed config. Improved audio support and unknown targets support August 24, 2013
Octocat-spinner-32 flxobject.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxparticle.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxpath.monkey Removed ClassInfo type casting August 05, 2013
Octocat-spinner-32 flxpoint.monkey Fixed toString methods January 18, 2012
Octocat-spinner-32 flxrect.monkey Fixed toString methods January 18, 2012
Octocat-spinner-32 flxsignals.monkey Connect and Disconnect now returns observers April 14, 2013
Octocat-spinner-32 flxsound.monkey Fixed config. Improved audio support and unknown targets support August 24, 2013
Octocat-spinner-32 flxsprite.monkey Moved primitive sprite renderers August 24, 2013
Octocat-spinner-32 flxstate.monkey Added switch state listener August 17, 2013
Octocat-spinner-32 flxtext.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxtileblock.monkey Rename magic global ClassObject to __CLASS__ August 05, 2013
Octocat-spinner-32 flxtilemap.monkey Fixed result for tilemap Ray method #55 August 24, 2013
Octocat-spinner-32 flxtimer.monkey Removed unnecessary type casting in FlxTimer.Progress property August 05, 2013
Octocat-spinner-32 flxu.monkey FlxGroup.Sort refactoring March 21, 2013
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.