I have my own website, I’ve been putting the latest versions on it, I just put them on this one so people can download them easier, (but apparently nobody has so far.) Here’s the website for those who are interested: GoSub for Virtual Boy It’s not very pretty, but here it is in all its “glory.” I guess I should direct people to the website instead of posting ROMs on here, huh?
Added one level and a few cool (IMO) features. Pressing Start during a game will pause it, and pressing Select during a game (while unpaused) will make it go back to the title screen. I am enjoying working on this, although it can be a bit frustrating at times, so excuse me if i sound overjoyed and hyper by adding lots of ROMs (this is the second one today, and probably the last one for today.)
I fixed and tested the levels so they should work fine. I had to get rid of a few that were unfixable, so now there’s 19 levels. I’ll be making more later this week.
Sorry I’ve been away for so long. I just got back in to the Virtual Boy again (it comes and goes), and this project is on my other computer. I’ve made some changes since the last time, and yes, some of the mazes are impossible, so I will get that fixed sometime this week.
Here’s what the game looks like as of now. I removed the octopus, changed the sub shape and the walls back to coral. Try it out and let me know if there’s any bugs.
Thanks for the information. OK, so what does ‘seeding’ mean and how do I do it? Remember, I’m really new to C programming, and am figuring out a lot of stuff via examples.
OK, it’s not really a reason to celebrate, as the octopus always moves one way (down). I guess what I need to do is either find another way to get a random number or omit the octopus all together. Any suggestions in C language?
I put in the first example, and it seems to like it except for when I compile it, it says there is a parse error before void in line 435. Problem is, there is a blank line before the word “void”, and the line before that looks to be correct. I’ve included my c file, but be warned that it probably won’t compile because of that error. What do i need to do to make this work?
Level 21 added.
About the octopus:
I want to use DogP’s method of random programming (have a counter running when a user presses a key), but I’d need the counter to go all the time if I want the octopus to move all the time (which I do) to determine which of the four directions it could go. Here’s what I want to do: After 2 or 3 seconds or so, have the octopus change its direction (or keep going the way it was) depending on what a random variable says. How would I go about doing that?
Here’s what I was thinking of doing. I was going to have a random number indicate which way the octopus was going, dividing the highest number the random thing can go by 4 (for the four directions), like I do when I’m programming my Atari 2600 games. Here’s what I’d do in Batari BASIC (where the highest number rand can get is 255):
x=rand/64
if x=0 then octox=octox+1
if x=1 then octox=octox-1
if x=2 then octoy=octoy+1
if x=3 then octoy=octoy-1
What I need to figure out is either how to stop the timer at a random time so it can determine the octopus’s movement, or a completely different way of going about this.
OK, I now have an octopus here, but he doesn’t move and he doesn’t hurt your sub. In order to move him, I need to know if or how you get a variable to generate a random number.
I think I did it, but the collision detection doesn’t work on one side. To see what I mean, start on level 1 and make the sub’s left side ram into the first line of coral that juts out. Notice how it doesn’t completely touch the coral at all before it thinks you’ve lost a life.
I’d like to add an octopus that moves randomly and could get in your way, but I don’t know how since I’m using all 4 character segments right now (0, 1, 2 & 3.) I’ll see if i can speed up the sub a little.
Level 18 has been added. The game will be 2MB when it’s done. Can someone show me how to program sound into a VB program? Does the Virtual Boy have a library of sound effects I can pick and choose from, or is it something different?