We're using cookies to ensure you get the best experience on our website. More info
Understood
@virtualchrisRegistered April 26, 2008Active 1 year ago
808 Replies made

The Craig the Cranberry website is born. You can check it out here: http://www.atari2600land.com/vbdev/craig.html It links to the Mednafen emulator page on Planet VB. If you’d rather me just link to the main page, just let me know and I’ll change it. Anyway, I added a hole for Craig to jump over. Of course they had to make it really hard and have blank tiles in the map be transparent and not black. So I had to make a new tile map and change the palette.

And now a plea. Can we PLEASE have signatures on this forum? I promise not to put pictures in it and limit it to 3 lines. Other forums have these limits, why not this one?

Attachments:

Well, apparently the discrepancy fixed itself. I don’t know how. This is my final build for today. It’s almost 10 p.m. and I’m sick of this. I’ll be back at work on it tomorrow. Download this and play it and let me know if you see any weirdness, especially related to jumping. I spent 5 minutes with it on VB and I think I may have fixed the floating and rising in air problems I had earlier. But if not let me know.

There is a huge discrepancy between the title screen and in-game. The in-game seems a lot slower than the title screen. But it was a huge ordeal to just not make it flicker like crazy on a real VB. I do not remember it being this hard to program for. I’m using the Soviet sound engine and the tempo of the title screen music is 20. Well, for the in-game music to sound the same, I had to set it to 10. That’s how big of a difference there is. And if I try to program it any other way than what I have now, it flickers like crazy on a real VB so I have to do it this way. To start the game, press Start.

Yes, I composed the music.

I guess I should have checked to see if it worked first. This works great on a real VB. I used a FlashBoy to test it. You can now press A to jump.

Attachments:

I’m back and working on this again. Right now this is just a title screen, but I plan to make a full-fledged game out of this.

Tomorrow I’ll work on jumping. And then it’s on past the title screen.

Here is the title screen. I think I resolved the issues I had with the flickering on a real Virtual Boy.
http://www.atari2600land.com/vbdev/craig20191005.zip

I figured it out. An error in the .vbh file. The game title was 21 characters long instead of 20.

How can I get the thing to play back MIDIs and stuff? All I see is a .VB program. Is there a tool somewhere? I’m confused.

Anyone? I’d really like to finish this Virtual Boy casino thing. I came so close.

Can someone please help me with how to use this?

I would, but I don’t know how.

I poked around modlibgccvb.h and found this:


int randseed()
/* When run at startup gets a random number based on the changing CTA */
{
	int random = 1;
	int rand;
	int prevnum = 0;
	int count = 1;
	
	while (count < 30000)	//repeat through many times to make more random and to allow the CTA value to change multiple times
	{
		rand = (*(BYTE*)(0x0005F830));	//CTA
		if (random == 0)		//prevent % by zero
			random = 1;
			
		random +=1;	//just randomly doing stuff to the number
	
		if (rand == prevnum)		//if the CTA value doesnt change then count up
			count++;
		else
			count = 0;		//if the number does change then restart the counter
		prevnum = rand;			//keep track of the last number
	}
	return random;		//returns the random seed
}

int randnum(int seed, int randnums)
/* Returns a random number in the requested range from the random seed */
{
	return (seed%randnums);	//returns the random number
}

Can I use this to get a "random" number between 1-52? If so, how?

First I need a random number generator that returns a number between 1-52 in C. I’m getting tons of 2-pairs. Googling turned up nothing.

How does this look?

Attachments:

It’s pretty much done. All I have left to do is change the title screen picture to something prettier.

I can get out of Video Poker. Maybe the reason you couldn’t get out is because you were in the middle of a hand? I made it so you couldn’t get out of Video Poker in the middle of a hand.

Could someone test the game for me? I have a feeling it may be done for the most part. I do plan to make a new title screen image if this is the case. You can get the latest rom here: http://www.atari2600land.com/casino/

I made the cards in Video Poker much more “random.”

I got the spinning sound in, but it sounds different on a real Virtual Boy as opposed to Mednafen. I wonder why.

  1. rand*count) + (count%random []