Burgers again
So I got back to working on my Hamburger game for the Commodore 64. I figured "I have nothing else better to do, so why not work on it some more?" So that's what I did. I got to the point where everything is almost okay. The fry went in front of the lettuce only once instead of shooting it out of the screen.
I hope I got rid of a nasty bug I introduced in the game somehow where simply pressing fire kills the lettuce without the burger firing a shot. I put in a bit of code that I think made the flicker disappear.
wait: lda $D012 ; load 255 into A cmp #$FF ; look if current rasterline equals 255 bne wait ; if no, goto wait rts ; if yes, return from subroutine
If I call this, it acts like a "drawscreen" where it will draw the screen and stop everything until it's done. I think this is the reason why there was burger flickering and stuff. I got this code from a Commodore 64 tutorial and I thought I might as well try it. I had to speed everything back up since it slowed down the game, but I think it's not very noticeable now.
The power went out for a few seconds last night. Enough to shut the computer and TV down and made it so I had to reset all the clocks. My TV was a blurry psychedelic colored crap, so I had to turn it off and turn it back on, and fortunately that fixed it. I can't turn the TV off because it does that if I do. So when I go to sleep, I mute it.
Someone's car alarm is going off. It makes me wonder why they put them on cars if nobody cares that it's going off. I'm not jumping into action and seeing if someone is trying to break into someone's car. Because just like that it quit.
I had a hard time trying to go to sleep last night. I finally fell asleep at around 8:30pm or so. Woke up at 7 or so, and, after taking my pills, I felt really sleepy so I went back to sleep. Woke up at 12:30p.m. or so.
3 Comments
Recommended Comments