Home > hamsterdrop

hamsterdrop

Hamsterdrop is a project mainly written in Lua, based on the MIT license.

Get your hamsters to the bottom of the screen!

The Render Engine v1.5.3 [November 20, 2010] (c)2008-2010 Brett Fattori (bfattori AT gmail DOT com)


The Render Engine is an open source game engine written entirely in Javascript. The intent of this engine is to provide you, the developer, with the tools necessary to create your own game without needing to first design and write an engine. The engine has all of the capabilities to load and execute scripts which contain game objects, render contexts, and so forth. The Render Engine is a starting point, written using a clean OO framework, from which you can extend and expand into whatever you desire.

The engine includes a demonstration using vector-based graphics. A simple Asteroids clone with player, asteroid, and bullet objects which demonstrates the component system. It also uses the spatial grid collision system, and shows how to work with that.

Visit our project page for the latest release, examples, and tutorials @ http://www.renderengine.com

The engine source is accessible through Google Code @ http://code.google.com/p/renderengine

There are many useful pages in The Render Engine wiki @ http://code.google.com/p/renderengine/w/list

Full API documentation is available online @ http://renderengine.googlecode.com/svn/api/index.html

A Google Discussion Group is available @ http://groups.google.com/group/the-render-engine

Source Code Access

The source code is hosted on Google Code in a Subversion (SVN) repository. Use the following command to anonymously access to the latest source code:

svn checkout http://renderengine.googlecode.com/svn/trunk/ renderengine-read-only

An integrated tool, such as TortoiseSVN, will make access to the source much simpler. You can get TortoiseSVN @ http://tortoisesvn.tigris.org/

Testing your Installation with the Jibble Web Server

The distribution comes with the Jibble Web Server which is a very small Java web server. It doesn't support request parameters, so it is a bit limited. It will, however, give you a quick and easy way to test your game development. See the file "run.bat" in the root folder. You will need the JRE to use the web server.

In the "run.bat" file, you will notice two arguments to run the server. The first is the path, which you can leave at "." (the root folder) and the second is the port to run the server on (default: 8010). After starting the server, you can go to your web browser and try: "http://localhost:8010/demos/vector/index.html"

The web server is running properly if you see the Asteroids demo start up.

Setting up a Tomcat server for testing & development

Go to the Apache Tomcat website and download the latest version of the server. Install Tomcat and then copy the "[INSTALL_DIR]/setup/tomcat/renderengine.xml" file to the "${CATALINA_HOME}/conf/Catalina/localhost" directory. You will need to edit the file and change the "docBase" property to point to the location where the engine was installed.

Start up, or restart, the Tomcat server and navigate to "http://localhost:8080/renderengine/demos/spaceroids" to test the installation. If all went well, you should be presented with the Asteroids demo game.

Get Tomcat @ http://tomcat.apache.org

Supported Browsers

Please see the wiki page @ http://code.google.com/p/renderengine/wiki/SupportedBrowsers

Notes:

* Just as a note, the best performance of any browser is Google's Chrome.  Their V8 Javascript engine is just fantastic.  I'm not stating this as an endorsement, but more as a challenge for the other browser makers to step up and compete! However, there are some features not yet supported in Chromium which need to be addressed before I will endorse it fully.

* Additional tests for different browsers on multiple platforms would be nice. I only have a Windows PC and occasional access to a Mac and/or iPhone.

* Requests for additional browsers should be sent to bfattori AT gmail DOT com, or posted to the discussion group.

* There is a project to bring the Cairo (Firefox's renderer) canvas to Internet Explorer. When this works, I will test and add IE to my list of browsers. The ExCanvas object doesn't perform fast enough for this engine.

* In Firefox 1.5 and 2.0 the garbage collection, in tandem with the older Javascript engine, is passable. 

This engine is open source, and is protected under the terms of the MIT License which guarantees that all source is, and will remain, open for your creative consumption.

Previous:first_app