Piston Framework

A few months back, I started working on developing my own little game framework built around NME. This was actually before the upgrade to NME 3.0. I actually had to scrap a lot of my work that had become redundant once the install tool was incorporated in…

Viewing 1 to 7 (7 Total)
Piston Framework

RichardKain

RichardKain
Total Posts: 24
Joined: September 06, 2011

A few months back, I started working on developing my own little game framework built around NME. This was actually before the upgrade to NME 3.0. I actually had to scrap a lot of my work that had become redundant once the install tool was incorporated into NME. After some time, I finally have a demo that displays some of what I've accomplished...

Piston Framework Trial

I'm designing this framework with very general functionality in mind. It is loosely based off of Flixel in its general approach to scene management. However, it is designed around the standard Flash display list, rather than the scene blitting that Flixel employs. In this initial trial you can see an animated spritesheet in action, hear the audio playback, and use the interactive buttons. Here are some screenshots of the different compilation targets that I've gotten it working on...


Ubuntu 64-bit
Windows XP
Mac OSX Lion

Tags:
Posted on September 30, 2011 at 11:46 AM

mumuja

mumuja
Total Posts: 57
Joined: September 08, 2011

Re: Piston Framework

I would love to hear more about this

What kind of animated sprite sheet? singmajesty already has one that supports spriteloq
I would love to see tutorials grin
Right now I am working on a game, the scene management is quite rudimentary, perhaps I can use this instead smiling especially if it has fluid layout

Posted on September 30, 2011 at 2:19 PM

jorul

jorul
Total Posts: 31
Joined: September 02, 2011

Re: Piston Framework

Promises to be good! Good luck! Are you going to share source code?

So now doeas it work for Mac, Win, Linux and iOS target? Doesn't work with Android and WebOS or is not tested?

Punch animation looks like inspired by Klitschko's jab;)

Posted on September 30, 2011 at 3:17 PM

RichardKain

RichardKain
Total Posts: 24
Joined: September 06, 2011

Re: Piston Framework

The sprite sheet is my own custom creation. It is flexible enough to allow for sprites composed of rectangles of any potential width and height, not just strict squares. It also allows for full multi-row sheets, as opposed to just strips. I thought about adding the ability to have frames of different sizes, but ultimately decided that feature probably wasn't worth the trouble. Animations are handled in a fashion very similar to how they are in Flixel. (defined as an array of integers with a provided framerate)

At the moment, it is running correctly and identically on Flash, Mac OSX, iOS, Windows, and Linux. I haven't begun testing on Android yet, it just wasn't a priority for me. One of my friends is pushing me to help him develop a mahjong calculator for Droid, though, so I might install a dev environment over the weekend.

Posted on September 30, 2011 at 5:36 PM

mumuja

mumuja
Total Posts: 57
Joined: September 08, 2011

Re: Piston Framework

would love to see it work in android :3
where should I sign up to receive updates?

Posted on October 01, 2011 at 2:14 AM

RichardKain

RichardKain
Total Posts: 24
Joined: September 06, 2011

Re: Piston Framework

Unfortunately, I was not able to get a functioning Android test environment set up on my computer over the weekend. I tried, and installed all the suggested software and development kits. But at the end of the day I was not able to get Android apps building. Since I know nothing of Android development at this point it is hardly surprising.

On the plus side, I learned a lot about full screen settings, and am well on my way toward integrating full-screen toggling into the framework. I'm also working on scene transitions, and will probably incorporate some minor fade-in/fade-out transitions by default.

I've updated the trial above with my latest changes to the fullscreen and scene-switching features.

Posted on October 03, 2011 at 5:51 PM

q00u

q00u
Total Posts: 4
Joined: April 04, 2012

Re: Piston Framework

Is this project still alive? I would very much like to see a framework that is as cross-platform as NME itself. It seems the vast majority of ports are from flash engines, and restrict NME to the flash platform. That really takes away a lot of the benefits!

I've been looking for NME-native engines/frameworks for a while now; I hope this is still being worked on.

Posted on April 29, 2012 at 1:36 AM