A simple engine for building creative JavaScript Demos
#Live demonstration
http://trillworks.com/creative/
Inside your JavaScript file, do the following:
- Push some entity objects to the render queue. They must implement a draw function that takes a canvas as a parameter. Set their remove property to true when they should be destroyed. The draw function will get called by the engine ~60 times per second.
- Set de.clear_canvas to true if you want the canvas cleared on each iteration of the engine loop.
- Set de.logic to a function that you want executed on each iteration.
- Put the file in js/
- Add the file name (before the ".js") to the scripts array in beginning of loader.js.
- Select your script from the dropdown and hit run.
This is not a real demo engine that will help you create super efficient minified code for your competitive european demoparty. It's strictly for fun. The artnight folder has become a dumping ground for my experiments. Check em out.