Combining the spriteSheets with the frames as an array of images seems to provide better performance. No example is really complete without the use of particles so I had to add some fun there. The ship uses atan2 to generate the angle between the sprite and the mouse location. Then the ship adjusts its Y […]
I have been trying out a few new styles for making sprite sheets when using processing. The technique I decided to try was putting each frame of a sprite animation as an image in an array. Then during the render of the animation it is a simple image(frame[currentSprite],x,y) call. Previously, I called either copy or […]
Using Processing is awesome. That is unless you try to work your project so that it publishes to Java AND Javascript. My sketch functioned fine using Java. Once I switched to Javascript, the images failed to load. Loading an image directly was okay, but since I was trying to use a new technique for making […]
As much as I like using Sublime Text 2, it was getting to be a pain to write my HTML files and then switch to the browser and have to manually open them. I knew there were build systems but my feeble attempts were not working yet. I found a nice build on github at […]
Sublime Text 2 is my new favorite code editor. It is snappy, rocks the code hinting, and the color theme is the best I have seen. The coolest part is the thumbnail view of the code used for scrolling. Now that I finally found a code editor that I liked, it was necessary to get […]
Good luck, Gina. http://www.hydropackulicity-challenge.com/
Matching games are a great way to learn about using arrays. I have worked with a number of ways to build the game logic for creating matching games over the years. I found an example of how to construct one in an article by Emaneule Feronato. The challenge that I wanted to explore was how […]
You can download the files buildingDuckHunt here. File 0 contains the artwork. File 1 starts adds the duck to the stage with ActionScript. [as3] //imports import flash.display.MovieClip; //variables var duck:MovieClip=new Duck(); addChild(duck); duck.x=stage.stageWidth*0.5; duck.y=stage.stageHeight*0.5; //functions [/as3] File 2 adds the remainder of the artwork to the stage. [as3] //imports import flash.display.MovieClip; //variables var duck:MovieClip; var […]
This started as a basic platform style game mechanic. I then worked to make the background scroll as the character reached near the edges. It became apparent that something needed to happen when the character hit the ground. In the interest of simplicity, I didn’t make a separate particles class, which would make cleaner code. […]
Reveal demo using the jQuery Modal Reveal plugin. I am working on how to get it to not load the SWF until the hidden div is revealed. It works in a stand alone PHP file but either wordpress or reveal is breaking it. As is apparent, the SWF loads tiny and the height and width […]