Jump to content

  • Log In with Google      Sign In   
  • Create Account

New Old Things

A C64 Game - Step 84

Posted by , in C64 26 January 2013 - - - - - - · 1,111 views

And here's the next portal.

Attached Image

I hope you don't mind the slower pace, I'm working on a bigger step in the background.

Have fun!



Previous Step Next Step

Attached Files




A C64 Game - Step 83

Posted by , in C64 19 January 2013 - - - - - - · 1,087 views

And here's a new extra for Sam. It works similar to the super bullet. For every demon blood picked Sam can destroy an enemy with one touch.


Attached Image


The code is quite similar to the super bullet. Add a new counter variable (DEMON_BLOOD), a new item image, make it possible for the item to spawn as well.

At the item pickup we add this. If the player is Sam (means x = 1) increase the counter.
.EffectDemonBlood
		  cpx #1
		  bne .DeanDoesNotUseForce
		  inc DEMON_BLOOD
		  jmp .RemoveItem
		 




At the hurt enemy part we add this little snippet. If we have a DEMON_BLOOD, decrease the count and kill the enemy right away.




lda DEMON_BLOOD
		  beq +
		  dec DEMON_BLOOD
		  jmp .EnemyKilled+
		  dec SPRITE_HP,x
		  bne .EnemyWasHurt
		 
.EnemyKilled


Have fun!


Previous Step Next Step

Attached Files




A C64 Game - Step 82

Posted by , in C64 12 January 2013 - - - - - - · 978 views

A few very small updates coming up, here's the next portal stage. Have fun!

Attached Image


Previous Step Next Step

Attached Files




A C64 Game - Step 81

Posted by , in C64 05 January 2013 - - - - - - · 1,025 views

A new pickup! And it shines Posted Image

Sometimes one of those wondrous bullets of Samuel Colt will be dropped. Those can kill any enemy with one shot, so use them well!

Attached Image

The changes are quite simple. In the PickupItem routine we add a handler for those new items:
                  cmp #ITEM_SUPER_BULLET
		  beq .EffectSuperBullet
We make sure only Dean can use it and increase the super bullet counter:



.EffectSuperBullet		 
		  cpx #1
		  beq .SamDoesNotUseBullets
		 
		  inc SUPER_BULLET
The super bullet shot will flash red instead of white, so we add:





		  ;red flash for super bullet
		  lda SUPER_BULLET
		  beq +
		 
		  lda #2
		  jmp ++
		 
+		 
		  lda #1
++		 		  sta VIC_BACKGROUND_COLOR
and finally, at the enemy shot routine we add





                  lda SUPER_BULLET
		  beq +
		 
		  ;directly kill enemy
		  dec SUPER_BULLET
		  jmp .EnemyKilled
		 
+		 
		  lda SPRITE_HP,x
		  dec SPRITE_HP,x
		  lda SPRITE_HP,x
		  beq .EnemyKilled
Done!

BTW, the super bullet also works on bosses!


Previous Step Next Step

Attached Files







January 2013 »

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031