TTF is not my friend. Post #7

Writing this one slightly late, as the following is what I did yesterday. Got home way too late to blog anything.

Anyhow. As I wrote in my last post I was playing with the reset-function of the game, but that’s still not working. It’s really a low priority thing so I only work on it if I have some extra time. I’m getting closer, but yeah, that is put on ice for now.

We got the score up and running yesterday, although our calculation for the score is a bit funky. In initialize we set the score to 27000 and then in run we simply put in Score–;, in a way working as a timer. The actual calculation for the score goes Score = Score * (Life + 1). What happens is that the score always goes down, so to get a higher score you have to be fast, and then it multiplies itself with how many life you have left, so you’re more likely to get a higher score if you win. Only downside is that if you win slowly you’ll probably get less score than if you lose fast, but hey, it’s still a score system!

Other things we did yesterday includes the sound for the defeat condition, as well as sound effects for when the ball collides with anything. One thing we began working on but didn’t finish was TTF, or True Type Font. After reading up tutorials and looking at examples we kind of understood how to implement it but.. it just doesn’t work. As far as we know the code SHOULD work, but it just doesn’t write out anything, which just sucks. We have score, we have life, and we’re going to get highscore (so it remembers earlier score), but it would be neat if we could write it out in the game with something else than pictures.. as that probably wouldn’t even work with the score.

It’s just bonus score to have ttf, but bonus score is nice. I want bonus score.

Leave a comment