Monkey (programming language)
Monkey is a cross-platform computer language which translate Monkey code into several target platforms. Currently the target platforms include Windows, Mac OS X, Android, iOS, HTML5 and Flash. Monkey is created by Blitz Research Ltd, the makers of BlitzBasic, Blitz3D and BlitzMax.
History
Monkey was released on the 1st March 2011 designed by Mark Sibly of Blitz Research Ltd.
Mojo
Mojo is a graphics module for Monkey. Mojo is designed primarily for writing simple 2D games.
Targets
- Windows
- Mac OS X
- Android
- iOS
- HTML5
- Flash
- XNA
Sample Code
Strict
Import mojo
Function Main()
New GameApp
End
Class GameApp Extends App
Field player:Player
Method OnCreate:Int()
local img:Image = LoadImage("player.png")
player = New Player(img, 100, 100)
SetUpdateRate 60
End
Method OnUpdate:Int()
player.x+=1
If player.x > 100
player.x = 0
End
End
Method OnRender:Int()
Cls 32, 64, 128
player.Draw()
End
End
Class Player
Field x:Float, y:Float
Field image:Image
Method New(img, X, Y)
self.image = img
self.x = x
self.y = y
End
Method Draw()
DrawImage image, x, y
End
End
Software written using Monkey
- Zombie Trailer Park - Flash and iOS
External links
Blitz Research, Monkey author, distributor
- German forum: http://www.monkeycoder.de
- Jungle IDE, an advanced IDE for the Monkey programming language: http://www.jungleide.com