Monkey (programming language)
Encyclopedia
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
Blitz BASIC
Blitz BASIC refers to the programming language dialect that was interpreted by the first Blitz compilers, devised by New Zealand-based developer Mark Sibly. Being derived from BASIC, Blitz syntax was designed to be easy to pick-up for beginners first learning to program...

.

Mojo

Mojo is a graphics module for Monkey. Mojo is designed primarily for writing simple 2D games.

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


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
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK