We're using cookies to ensure you get the best experience on our website. More info
Understood
@horvatmRegistered December 28, 2008Active 4 months, 2 weeks ago
586 Replies made

I hope you can get Warioland soon. It is a great game, whether you’re a fan of Wario or not.

I think Wario Land is overrated. It is less fun than Galactic Pinball in my opinion but then again I have’t beat it yet. (It’s frustrating at times.) I love the secrets though.

The warning will probably go away if you declare it like “#define ExampleConst 123” instead.

And it did! Thanks!

Issue 2:
Dunno, can we see how you tried to declare it? 😛

Like this:

typedef struct
{
  int x;
  int y;
  char a;
  char b;
  char c;
  char d;
} ExampleTypedef;

ExampleTypedef ExampleArray[16];

main ()
{
  // ...
}

VirtualChris wrote:
The difference between the my example and yours is I understand mine. Of course, I am still learning C, and why I code the way I do is because I have a lot more experience in Basic than I do in C. But yeah, I will do my best to try and clean up the code to the best of my abilities with what knowledge of C (which is little) I know.

Do NOT blame the dirtiness, or the lack of it, in your code structure on BASIC. Ever. I’m a BASIC programmer too; I only learned C so I could program for the VB, and my code is way cleaner.

Excuse me for not posting feedback on the game; I will when I can.

Hmmm. It seems to be like this in Safari 3.1.2 too.

Wow! That’s really interesting. It’s a shame you don’t see companies experimenting with radical new ideas nowadays.

I think he’s trying to cover up the lack of new site polls since… well, probably before I even joined!

I love all of them! *hugs the VB* Though I usually play with Yoshi.

Sore neck, but I guess it’s due to the table height.

Galactic Pinball uses it, but it does the same as the R button.

And if we extend this to homebrew games, Blox 2 uses it 🙂

Actually, having a 3D background would be cool and probably wouldn’t be too hard to add. I mean, if the VB is 3D then you might as well make the best use of the feature.

It’s kind of easy to win.

No offense, but, your code is a bit of a mess too. Ever heard of indentation? Comments? You could also make the ifs a bit shorter like this:

Before:

	if (turn==1) 
		computer_turn();
		
	if (turn==3)
		computer_turn();
		
	if (turn==5)
		computer_turn();
		
	if (turn==7)
		computer_turn();
		
	if (turn==9)
		computer_turn();

After:

	if (turn==1 | turn==3 | turn==5 | turn==7 | turn==9) computer_turn();

Or even better, for this particular case:

	if (turn % 2) computer_turn();

Every project has to have the PVB IPD/Focus adjustment screen

Do we have to use the exact code you included, or just the image? I’d rather use vbFXFadeIn and vbFXFadeOut.

The first parameter in your vbSetObject() should probably have been 0 instead of 1 and it would have worked…

You’re right!

Thanks to both!

Thanks dasi, it works! Though it looks a bit messy. Oh well, I’ll just move the object init code into another file and call it from there.

I changed the main function to this and I only get a black screen:

  copymem ((void*)CharSeg3, (void*)FONT, 8192);

  vbSetWorld(31, WRLD_ON|WRLD_OBJ, 0, 0, 0, 0, 0, 0, 384, 224);
  vbSetWorld(30, WRLD_ON, 0, 0, 0, 0, 0, 0, 384, 224);
  vbSetWorld(29, WRLD_END, 0, 0, 0, 0, 0, 0, 0, 0);

  vbDisplayOn();

  vbTextOut(0, 15, 11, "IMPORTANT:");
  vbTextOut(0, 15, 12, "READ INSTRUCTION AND");
  vbTextOut(0, 15, 13, "PRECAUTION BOOKLETS");
  vbTextOut(0, 15, 14, "BEFORE OPERATING");
  vbFXFadeIn(1);

  while(!(vbReadPad() & (K_STA | K_A))) {}
  while(vbReadPad() & (K_STA | K_A)) {}
  vbFXFadeOut(1);
  Cls();

  vbFXFadeIn(1);

  vbSetObject(1, OBJ_ON, 3, 0, 4, kObjCharSeg + 4);

  VIP_REGS[SPT3] = 0;
  VIP_REGS[SPT2] = -1;
  VIP_REGS[SPT1] = -1;
  VIP_REGS[SPT0] = -1;

  while(1) {}

Maybe the search box could have a white or light gray background, so it would be even more noticable.

Well I think I partially understand the concept, but I’m sure I’m doing everything wrong so this is my code for displaying character #4 as object #1… which obviously doesn’t work. I really don’t understand palettes and charsegs.

#include "libgccvb.h"
#include "font.h"

int main ()
{
  copymem ((void*)CharSeg3, (void*)FONT, 8192);

  vbSetWorld(31, WRLD_ON|WRLD_OBJ, 0, 0, 0, 0, 0, 0, 384, 224);
  vbSetWorld(30, WRLD_ON, 0, 0, 0, 0, 0, 0, 384, 224);
  vbSetWorld(29, WRLD_END, 0, 0, 0, 0, 0, 0, 0, 0);

  vbDisplayOn();

  vbTextOut(0, 15, 11, "IMPORTANT:");
  vbTextOut(0, 15, 12, "READ INSTRUCTION AND");
  vbTextOut(0, 15, 13, "PRECAUTION BOOKLETS");
  vbTextOut(0, 15, 14, "BEFORE OPERATING");
  vbFXFadeIn(1);

  while(!(vbReadPad() & (K_STA | K_A))) {}
  while(vbReadPad() & (K_STA | K_A)) {}
  vbFXFadeOut(1);
  Cls();
  vbDisplayOn();

  vbSetObject(1, OBJ_ON, 3, VIP_REGS[JPLT0], 4, 4);

  VIP_REGS[SPT3] = 1;
  VIP_REGS[SPT2] = 0;
  VIP_REGS[SPT1] = 0;
  VIP_REGS[SPT0] = 0;

  while(1) {}
}

int Cls ()
{
  int i;

  i = -1;
  while(i < 28)
    {
      i++;
      vbTextOut(0, 0, i, "                                                ");
    }
}

I don’t think it would be very hard to port though.

Well done. It’s closer to Breakout than Pong.

A score counter would be a good addition, as well as automatic respawning of enemies when you clear a screen.

EDIT: I just noticed you forgot to change the ponginvaders.vbh file.

  • This reply was modified 16 years, 2 months ago by HorvatM.