Jump to content
  • entries
    104
  • comments
    102
  • views
    259786

A C64 Game - Step 95

Sign in to follow this  
Endurion

1741 views

Now a little update that adds a change that was long overdue: Zombies do not wake up all of a sudden, but peek out of the ground before. Now players should be able to escape if they're keeping an eye out.

step95.png


We change the .WakeUp part of BehaviourZombie to show up, look left/right a few times and only then rise, like good zombies do:

          ;only animate head to warn player 
          inc SPRITE_MOVE_POS,x 
          lda SPRITE_MOVE_POS,x 
          cmp #20 
          beq .ReallyWakeUp 
          
          and #$07 
          bne ++ 
          
          ;show head 
          lda SPRITE_DIRECTION,x 
          eor #1 
          sta SPRITE_DIRECTION,x 
          lda #SPRITE_ZOMBIE_COLLAPSE_R_2 
          clc 
          adc SPRITE_DIRECTION,x 
          sta SPRITE_POINTER_BASE,x
          
++ 
          rts 
.ReallyWakeUp


Also, having the spawn animation playing but then "appearing" underground is awkward the start state of zombies is now fully alive. Which is simply a change in the TYPE_START_STATE table.

That was simple now :)

step95.zip

Previous Step Next Step

 
Sign in to follow this  


5 Comments


Recommended Comments

The main point is that back then I wanted but couldn't. Some sort of living the old dream :)

Share this comment


Link to comment

polyfrag is too young to understand the love we have for our old machines

Share this comment


Link to comment

Making it harder for enemies to kill the player? What kind of old game is this? ;)

Share this comment


Link to comment

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!