Tuesday, July 2, 2013

[CO'D] End of Day 1... Kinda

Alright. Clearly, it is Tuesday and not Monday. So this is more of an end of day one and start of day two kind of post. First of all, I've enjoyed using codeheart.js thus far. First of all, clone number one Pong-Like is complete:

Clearly, I've stolen a bit of code from the paddle sample, but also tried to update a few things (like using the vector class where it makes sense). Things I immediately discovered that were harder than I had anticipated:

Rotating text

Loading cool fonts

No matter what you do, loading a game from Safari on a mobile device is kinda, "ugh".

Wow, my generation one iPad is SLOW.

For those of you using CFXR or something similar to generate sounds, here is a nice little command line tool to convert those WAV files to MP3:

afconvert -f mp4f -d aac -b 128000 Score.wav Score.mp3

There are two issues that I didn't finish before the end of day one. The first is that the ball can get stuck in paddles. Easy fix, but not done yet. The second is that the two tap points for controls is not good on a small device. I want to have each paddle controlled by a single touch. Will probably make a second version of the game with those controls.

But, it was the "running in mobile Safari is 'meh'" issue that sent me to start playing with Ejecta, which I was really excited about. Basically I fell down the rabbit whole with the rest of my day and didn't get it working. :(

Giving up on Ejecta for a bit. Morgan, you're just too nice. Codeheart is doing a lot to help make the programmer's life easy, which is great, but Ejecta is just setting up the basics and not providing a lot of the scaffolding that Codeheart needs to be as nice as it is.