Posts Tagged ‘Programming’

Modifying NME

So as you know, I recently released an Android game. (It now has like 10 downloads, just saying.. #prettyproudofthat)

Javi got a chance to play it, and kindly offered to make some background music. Ten short minutes later, I had an MP3.

The music began by fading in, after which it could be looped as long as playback started at 5336ms on each subsequent play. Looking at the API documentation for nme.media.Sound, and nme.media.SoundChannel, this seemed fine. Turns out, that was not the case. But Javi had made this music for me, so what choice did I have but to make it work?

In case I decide to make further changes to NME, this is how to do it:
(more…)

drag velocity

Years ago I had an iriver spinn. Which was cool except that eventually I broke it. Yesterday I found one of the SWFs I’d made for it, which got me thinking about re-implementing something like it in haXe.

The interface would have to be different. I imagine something more drag-y and less spin-y. Which got me thinking about dragging in general, and drag velocity in particular.

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

(Drag and release.)

(more…)

I made a simple haXe profiler

The other day I wanted to see at how many frame-per-second my code was running.

And so I sat down with my keyboard and a glass of water I can only assume was full at the time, and got to work.
Somehow, through a great deal more typing than was strictly necessary, what was to be an FPS display instead became a simple profiler (one that at least also displayed the FPS, I guess).

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)
(more…)

The past present and future, all at your command with HTML5

Dear Diary,

With the onset of HTML5 becoming increasingly supported among the many browsers out there, there are going to be a number of important changes coming to the way things work. Things such as… the MathML and SVG support, a large number of new elements and deprecation of some older obsolete ones, and most importantly (for the purposes of this article) an important change to the history API functionality!

Unfortunately, HTML5 isn’t supported in every browser… largely because older versions of browser either can’t support it or just aren’t being updated to support it. People should update their browser anyway… so many unnecessary headaches caused by having to go back and debug some random old version of IE or Firefox because someone is reluctant to update. I will say, props to Chrome for silently updating itself to the latest version and indicating that a core app restart is required with those little coloured arrows!
(more…)

.