Jump to content
  • entries
    4,958
  • comments
    2,719
  • views
    1,810,022

Insecticide update for 7/12/14


atari2600land

483 views

So I was struggling to figure out an easy way to decrement the health bars. Then while I was laying on the couch, it hit me. Why not make the end of the health bar a variable so I can easily subtract the blocks (which are the letter Q)? So about an hour later, I had solved my problem and made it so when a special move is made, a health bar block was deleted. My ideas for punching and kicking is to double the amount of punches and kicks it takes to get a health bar block bumped off (2 punches or 2 kicks or 1 punch and 1 kick.) But I haven't programmed that in yet. I'm not sure if that's the way it works in other fighting games. So this is the magic code that does it:

Once the special move ends, do this:

endhealthbaropponent--, vbTextOut(3, endhealthbaropponent-1, 1, " ");  

Wrong side I wanted, but no worries, I'll just get used to it being this way.

16 special moves later and the opponent's health bar is depleted, it will just go back to the title screen right now. Obviously, I'll put in some victory (or defeat) endings once the fight has ended. It's too bad Nintendo never got around to releasing a game link cable for the Virtual Boy. This project would be much easier, but I have to program opponent AI instead. Argh! So I'm taking baby steps to complete the game. Hopefully it will be finished before 2047 (which, in the game is the year of the end of the world and only insects are left in a post-apocalyptic world.)

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...