Jump to content
  • entries
    5,042
  • comments
    2,756
  • views
    1,821,612

Trouble At the Museum


atari2600land

156 views

Even though it was around 9 p.m. on my birthday, I started to program in the museum. Let's face it, birthdays are pretty much over around then. I was having a lot of trouble with programming the museum in. I kept confusing the types of curves. Until I settled on what their shapes looked like. ╚ became "L", ╝ became "backwards L", ╔ became "r" and ╗ became "backwards r". ╦ became "T". This helped immensely in trying to make the data for which screen should be displayed. And then once I figured out the shapes and boundaries of all the screens, it was done. So I went to sleep.

stupidman_021.png.4a7e8cab3cc332db7fa35542b8d7802c.png

Woke up the next morning, found a few mistakes I made, and a rather nasty bug which froze Stupidman after he hit a wall sometimes. I think I found the problem: a line of code was misplaced. So now Stupidman can roam freely around the museum. There are six types of screens. The sixth one is a dead end on the right. But now that I think about it, I could make the museum even bigger. I was trying to make an interesting-enough museum with no repeated rooms so it looked like Stupidman was making progress going through it.

stupidmanact2.png.27fa25244e9b69d57167c6c9cf7dcf67.png

By the way, if you get to the raisin room it doesn't do anything yet because i haven't programmed it in. It is type 7 of room. Type 0 of a room means there is no room part (like square A1 in the map there.) So all that looks like this in C


const unsigned char museum_layout[]=
        {
        0,
        0, 5, 1, 6, 0, 7, 4,
        5, 3, 2, 4, 5, 1, 3,
        2, 1, 4, 2, 3, 2, 6,
        5, 3, 2, 4, 5, 1, 6,
        2, 1, 6, 2, 3, 2, 4,
        0, 2, 1, 6, 5, 1, 3,
        0, 0, 2, 1, 3, 2, 6,
        };

The first 0 is there because it starts at 0 and I wanted room 1 to have a value of 1 and so forth.

 

Apparently I can't change the gamepart variable to something else before it (like I can't change the gamepart to 6 when it's 9, or else the game will crash). So this means I'll need to repeat the museum going through code again for him getting out of the museum after he reaches the raisin room. But luckily it doesn't take up a huge amount of code.

 

The next thing to do is add museum background music and lighten it up. It seems awful dark in there.

 

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