Jump to content
  • entries
    4,948
  • comments
    2,718
  • views
    1,808,851

Confuse-a-cat.


atari2600land

493 views

So after a lot of work, I finally got the cat in the game. I also finally got a bug fixed pertaining to the mouse's movement. It seemed as though whenever he touched the cat and the cat touched the wall that the mouse would change direction even though it did not touch the wall. Somehow I fixed it. I don't know why the new code works, but the main point is IT DOES.

I also added a new thing that I hope would give more difficulty to a somewhat simple game: Allowing the cat and mouse to go off screen and reappear at the other side. This needed a few extra lines of code for this to happen for the horizontal movement because I tried it on real hardware without it, and when the mouse or cat got too far left on the screen, it displayed garbage. So I had to make sure that the cat or mouse didn't go too far left.

So anyway, the mouse only looks like an O with an umlaut when he's going up. I went and made the beginnings of a first level. Luckily the cat and mouse go around in a loop forever in it. The main object of the game is to place the arrows in so the mouse (and, unfortunately for the mouse, the cat) gets reguided towards the goal. So now I need to program the arrows in the game. This I think will be the hardest part of programming the game. That and other collision detection routines, like for the cat and mouse, and mouse and arrow, and cat and arrow. I have an example code I used in other games, I just need to put it in here and refine it so it works in the game routine. But first, the arrow.

I just thought of a clever way to select which level to start on: the keyboard. Pressing 1 will allow you to start on level 1, 2 on level 2, etc. But this would work for only 10 levels. I don't know how many levels I can fit in the game. But that's for later.

  • Like 2

2 Comments


Recommended Comments

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...