Archive for the 'mobile' Category

Touch-screen Mobile Timer

Thursday, August 16th, 2012

Countdown Timer screen shot
view the pageview the code

I am resurrecting Countdown Timer from, oh, about, 4 years ago! I have yet to find a simple timer app for iPhone that I like; so why not make one myself?

So, it’s not an iOS app (yet…), but to get it running on the mobile, quick-and-dirty-like, I used processing.js to throw it into and HTML5 <canvas>. I have also begun re-working the controls to be more touch-appropriate. For example, it no longer relies on keyboard input to adjust the time; now you increase and decrease the time in 5-minute increments by simply tapping (or clicking) in the top or bottom half of the page.

There are still a few kinks to work out and some maths to tweak, but I think its a pretty good proof-of-concept for ~20 minutes of work.

Pong Mobile!!!

Monday, April 21st, 2008

Kinda Pong
run the sketch—view the code

How do you use it?
The LEFT and RIGHT direction keys move the paddle. 1, 2 and 3 on the keypad adjust the speed, and the “Sound” soft key toggles the sound and vibration feedback.

You can play with it in the emulator, download the .jar file and bluetooth it to your phone, or visit with your phone’s browser and download it directly to your phone.

What is it?
Just a little game for your phone. It’s a little buggy, but it works. And, it runs on my phone! If you turn on the sound it uses Mobile Processing’s Sound and Phone libraries to generate tones and activate the phone’s vibrate motor. (I’ve noticed on my phone that it will crash if I turn on the sound when the phone is set to a mode that has application sounds and/or vibration turned off.)

Why is it cool?
I tried to program something like this in Basic on an Apple ][ in 8th grade. I couldn’t get it to work back then. Now I not only have it working, but it runs on my phone!

kindaPong // 4 mobile

Sunday, April 13th, 2008

run the sketch—view the code

How do you use it?
Move the mouse left and right to catch  the ball. Press “a” to accelerate the ball, press “d” to decelerate the ball.

What is it?
A revision of the sketch from March 24th. I am developing this as a mobile app, so there were a few revisions I had to make to prepare the code. For example, using integer math instead of floats. And I worked out a couple of bugs. See the documentation in the code for full details.

Download Mobile Apps Straight to Your Phone

Tuesday, April 8th, 2008

You’ll notice there’s a new “mobile” category! I’ve begun tinkering with Mobile Processing. If you have a Java enabled phone (or other mobile device) running J2ME, you have two options for getting any of these sketches onto your phone.

1) Download the .zip archive from the blog post, expand it, then copy the .jad and .jar files to your phone using a USB or Bluetooth connection.

2) Use your phone’s internet browser to go to and then select a sketch’s link to download it directly to your phone.

BE WARNED: this stuff is very experimental. I am running them on a Nokia 6555 but I’m not testing for compatibility on other systems. In theory it should work on a variety of devices, but if it doesn’t work for you, I probably won’t know why. And if it breaks your phone, it certainly isn’t my fault. There are instructions for testing your phone.

Thanks. And let me know what you think!

kindaPong // ver c

Monday, April 7th, 2008

run the sketch—view the code

How do you use it?
In one-player mode, move the mouse left and right. In two-player mode, mouse X controls the bottom paddle, mouse Y controls the top paddle. The “2″ key toggles between one- and two-player mode.

What is it?
The final test version of the Pong game. The next step is to port it back to Mobile Processing.

Why is it cool?
Come on… it’s Pong!

bounceGame Mobile

Tuesday, March 25th, 2008

[image coming soon]
run the sketch—view the code—download files for phone

How do you use it?
The direction keys on your phone change the speed of the ball. Vertical and horizontal motion are independent of one another. The effect is relative to the ball’s current direction of travel. Press in the opposite direction to slow it down, and in the same direction to speed it up. E.g. While the ball is moving to the left, it will speed up each time you press the left-arrow, and slow down with each press of the right-arrow. While the ball is moving to the right, the left-arrow slows it down and the right-arrow speeds it up. The up- and down-arrows have the same effects on the vertical component. (NOTE: If it’s going crazy fast and you can’t get it under control, restart the app. The speed is set randomly when the program launches.)

What is it?
A mobile app! A game of sorts. Can you get the ball to stop?

Why is it cool?
I’ve begun tinkering with Mobile Processing. This lets you use your knowledge of Processing to develop software that runs on Java enabled mobile phones (running J2ME). Very cool. I’ll be posting my Mobile Processing projects here. To install them, use your phone’s browser to go to Let me know what you think!

kindaPong // ver a

Monday, March 24th, 2008

run the sketch—view the code

How do you use it?
Move the mouse left and right.

What is it?
Actually, this was inspired by my Bounce Game. I’m prototyping it in Processing with hopes of bringing it back to Mobile Processing so you can play it on your phone, too.

Why is it cool?
You tell me…