Log
View Options
Action JavaScript
11/2/19
Now that ECMA 6 JavaScript standards are widely supported on most browsers I wanted to start a project that would help me explore the intricacies of the new capabilities. Being an old ActionScript expert and fan of game development I thought developing an AS3 like set of libraries would be a fun an interesting project. Currently, for lack of a better name I'm calling it ActionJavaScript ... at least until I find a better title. The project is currently running under GNU GPLv3 so, ya know, do as you will with it.
I currently have a good enough foundation to create web games with relative ease. My test game for the project is Mad Monkey and the Thunderdome which I plan on building up along with the AJS libraries.
Here is a list of the current libraries available.
Currently manages basic events and object hitTests.
Stage - scripts/ui/stage.js
Just as in Flash the Stage object is the main container for all other UI element and is essentially a glorified MovieClip.
MovieClip - scripts/ui/movieClip.js
An object with a set of frames and frame rate that and play or be controlled via script. The use of "ENTER_FRAME" events allows for easy control.
Frame - scripts/ui/movieClip.js
The hold the different "frames" used in movie clips and can consist of a group of text or images.
BitMap - scripts/ui/bitMap.js
A standard pixel based image similar to a JS Image object.
TextField - scripts/ui/textField.js
Used for adding and controlling text object.
Button - scripts/ui/button.js
An interactive UI component for click events. Buttons currently have four states that can be styled [up, over, focus, active].
So far creating my little test game took less than a day and one I get this project moved forward a little more I would like to start making move browser based games using it. I think the time is long overdue for a Skate-er-Guy 2.
If all of this sounds like something you'd like to play with you can download AJS along with my test game HERE.