Monkey (programming language)

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.

Contents

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

References


External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Lua (programming language) — Infobox programming language name = Lua paradigm = Multi paradigm: scripting, imperative, functional year = 1993 designer = Roberto Ierusalimschy Waldemar Celes Luiz Henrique de Figueiredo developer = latest release version = 5.1.4 latest release …   Wikipedia

  • Ruby (programming language) — ] . IronRuby [cite web url = http://rubyforge.org/pipermail/ironruby core/2008 May/001909.html title = IronRuby / Rails Question author = John Lam date=2008 05 25 accessdate = 2008 05 25] [cite web url = http://www.iunknown.com/2008/05/ironruby… …   Wikipedia

  • Monkey (disambiguation) — A monkey is a tailed primate. Monkey(s) or The Monkey may also refer to: Monkey (zodiac), a Chinese zodiacal sign HMS Monkey, the name of several Royal Navy vessels Contents 1 Music 2 Other med …   Wikipedia

  • Monkey (web server) — Monkey HTTP Daemon is a very fast and lightweight Web server just for Linux written in the C programming language,and is licensed as free software under the GNU General Public License. This is an open source project based on the HTTP/1.1 protocol …   Wikipedia

  • Monkey patch — A monkey patch is a way to extend or modify the run time code of dynamic languages without altering the original source code. This process has also been described as duck punching .[1] Contents 1 Etymology 2 Applications 3 Pitfal …   Wikipedia

  • Monkey-ed Movies — Genre Comedy, Parody Directed by Tom Stern Produced by Palomar Pictures …   Wikipedia

  • Escape from Monkey Island — Cover art displaying several main and supporting characters Developer(s) LucasArts …   Wikipedia

  • World of Monkey Island — The Monkey Island series takes place in a fictional world supposedly located deep within the Caribbean Sea and set roughly during the Golden Age of Piracy, some time in the late 17th century. The current article describes in game elements present …   Wikipedia

  • The Secret of Monkey Island — Steve Purcell s cover art depicts the pr …   Wikipedia

  • My Gym Partner's a Monkey — Title card Genre Animated Sitcom Created by Julie McNally Cahill Timothy Cahill Written by Tom Sheppard …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”