Jump to content
  • entries
    370
  • comments
    183
  • views
    9,666

Another Return of Uncle Hairy


Gamegearguy

259 views

I was having trouble with this game getting the cutting just right every single time. An idea came to me as I was laying in bed trying to go to sleep. Make the Cutting variable the same as the PlayerY variable. This meant when PlayerY moved, so did the Cutting variable. And THIS meant setting a permanent variable for all of PlayerY's positions. Thankfully it wasn't as complicated as it sounds. It just meant to put in this code before exiting the Joystick code:

[code]

        sec
        lda #255
        sbc PlayerY
        lsr
        adc #41
        sta NoseHairCutMark   

[/code]

I of course had to ask for help with this, and I had to figure out that shifting the bits right and adding 41 would get the best value. I played a round of the game as it is now and it looks fine.

nosehair46.png.ca74eb71af42c62a19256eb7a87a66d5.png

I have 4 bytes left to remove possible bugs if anyone finds any or change things. And looking at my code, it is exactly 2,000 lines long. For a 2k game. Oh well.

0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...