Phil Hassey - game dev blog
Phil Hassey as Syndrome
"Look, stores don't sell
costumes like this to just anyone."

Dynamite: Day 11 – Lots of stuff

So that horrible code that I posted yesterday, yielded a pretty negative response from the #ludumdare community. They were right, it was an abomination. I’ve since replaced it with rather mundane for-loops that actually work. The thing about the code I showed the other day is that it would not work nicely during a screen rotation, and I do want the user to be able to change the perspective they are looking from.

Since I’m using sprites for all my characters, I also had to add some logic to get them to rotate proper when the user changes perspectives. This worked out pretty well. You can see the jerk between different angles because I only have 8 angles for each sprite, but it seems good enough. No screenshot because it’s hard to show without making video.

In other news, I’m trying (again) to embrace XCode as my editor. It gets to be rather silly to switch over to Linux/Kate to edit files then back to XCode to make my builds. I’m trying to just get used to the default XCode keybindings as well.

One feature I just added to the editor was “arrow prediction” which shows you the path that is along where an arrow is pointing. This is a huge help when designing complex paths because it’s pretty easy to lose track of exactly what row/column you are supposed to be tracking.

DynamiteScreenSnapz032

Heh, these steps aren’t real, I’m just messing with isometric perspective. From other angles they don’t look like steps at all 🙂 All the same, I’m pretty pleased with how the lighting is working out in this game!

DynamiteScreenSnapz033

The little touches take some time to get ’em all just right. Here I’ve made it so that while in the editor, the characters are facing the direction they will start walking.

DynamiteScreenSnapz034

Our hero, next to a freshly created crater! One could argue for considerably fancier graphics at this point, but one could also argue that this gets the job done.

DynamiteScreenSnapz035

Anyway, I never did get to writing the guard logic or getting it running on the iPad. I guess those are next week! The IGF deadline looms, I might just submit whatever I have at that point and update every few days as the game actually comes together. I do hope by the end of next week to have the game fully working with a few levels.

-Phil

5 Responses to “Dynamite: Day 11 – Lots of stuff”

  1. Alec Thomas Says:

    Hi Phil,

    I love tagging along through coder diaries, and this is no exception. Keep it up 🙂

    Alec

    PS. The game is looking great!

  2. philhassey Says:

    Hey, thanks!

    -Phil

  3. Rene Dudfield Says:

    One tiny note, you can run the xcode build stuff from a script if you like.

    man xcodebuild

    mmm, apple brandy.

  4. Mark Says:

    I’m glad you replaced that code you posted last time. I was going to say something about it, but I wasn’t sure how much of the snippet’s ugliness was C-related.

    Some suggestions/questions: (feel free to ignore 🙂 )

    Do all of the lights do the same thing? Could the four be merged into one light icon whose color can be changed by a slider or something? Also, how can you tell which bomb is which? The four icons look identical to me.

    Is the arrow predictor smart enough to change path when it runs into another arrow along its path? I would think it is but it isn’t shown in the screenshot.

    I wonder if there’s anything that could be used instead of the black abyss. Maybe grass instead? Inside the original borders, a hole with dirt along its sides could be created and outside the borders, grass could be used.

    __________________________________________________________

    I may go back and play the original dynamite again; I got stuck the last couple times I tried it.

    Anyway, it’s looking pretty cool.

  5. philhassey Says:

    @Mark –

    thanks for all the ideas .. Still got a few weeks here, so I’ll probably be changing a number of things between now and the launch. I guess we’ll see what happens!

    -Phil