You are not logged in.
Lost Password?

All Posts (vbman)




#1
Re: Insect Combat
Posted on: 2011/7/6 2:29
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
What resolution are the sprites that I might be making? Also the colors would be (0, 0, 0), (85, 0, 0), (170, 0, 0) and (255, 0, 0). Right? I could try making a few samples.
Top

Topic | Forum


#2
Re: VB Development Environment... what's left?
Posted on: 2011/7/4 18:13
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
Sorry for the delay, I moved up to my X61 tablet. The screen on this one is a bit brighter.

I moved over to lower case.

Attach file:


rar tetris.rar Size: 12.66 KB; Hits: 114
Top

Topic | Forum


#3
Re: VB Development Environment... what's left?
Posted on: 2011/7/2 8:16
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
Quote:

DogP wrote:
Compiler:
What's the latest version, any problems, how to install, creating makefiles, etc?

Code NOT in .h files
-While maybe it doesn't matter, it has always bothered me that we include .h files, which has the code in it, rather than just function prototypes, and compiling the library source files seperately.


I've got a question on this one. I'm trying to make a simple tetris game to get started. I made a source file and a corresponding C file for managing the board state. You know has player gone over the top, space occupied that stuff. Tetris.C has my main function in there with some test screen code in it, nothing fancy. Just to get started.

Here's my makefile:


#The name of the file which contains main, without the file suffix
TARGET=Tetris

.PHONYall clean

all
: $(TARGET).vb

clean
:
    
rm $(TARGET).vb Board.$(TARGET).o

$(TARGET).vb: $(TARGET).o

$(TARGET).o:
    
v810-gcc -Wall -nodefaultlibs -mv810 -xc -o Board.o Board.C
    v810
-gcc -Wall -nodefaultlibs -mv810 -xc -$(TARGET).$(TARGET).C
    v810
-objcopy --O binary $(TARGET).$(TARGET).vb


Here's what I get out of the compiler.


v810
-gcc -Wall -mv810 -xc -o Board.o Board.C
/usr/local/v810/lib/crt0.oIn function `loop_intclear':
/usr/local/v810/lib/crt0.o(.text+0x190): undefined reference to 
`main'
/usr/local/v810/lib/crt0.o(.text+0x194): undefined reference to `main'
collect2ld returned 1 exit status
make
: *** [Tetris.oError 1


Are these errors in concert with the current state of the GCC NVC 2.95 Precompiled or is it just me. Btw I put the updated crt0.o in the specified directory.
Top

Topic | Forum


#4
Re: Poll: What version of GCC are you using for Virtual Boy development?
Posted on: 2011/7/1 22:04
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
I'm getting started with 2.95 precompiled NVC.
Top

Topic | Forum


#5
Re: A Few Demos
Posted on: 2011/7/1 15:30
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
Thank you kindly for the assist. Hope I'll be able to return the favor.
Top

Topic | Forum


#6
Re: Insect Combat
Posted on: 2011/7/1 14:00
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
This game looks like a lot of fun. I hope you have good luck with this one. I could be able to help with graphics and some programming.
Top

Topic | Forum


#7
Re: A Few Demos
Posted on: 2011/6/30 19:32
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
Fwirt,

I want to thank you for posting some easy to read demos. I want to try my hand at making a game for the VB, or helping to make one.

I'm running an IBM Thinkpad 600E with Windows 2000 Professional. I went through the steps to set up the compiler (cygwin with the specified packages) and then copied the GCC into the /usr/local/ directory. I also made sure to copy the crt0.s file into the specified directory.

It should be noted that when I tried to manually compile the GCC from source, it exited with errors. I wasn't sure how to proceed so I went ahead hoping for the best. I tried to run it again but there were a million files that I had to hit 'y' to so I gave up. Is it possible to clean out the build results without having to reinstall the packages?

The demos.rar was unzipped into my home directory and I made no modifications to that. The includes to the library seem to be pointing to the right relative path. I'll try Fedora Core on another machine later.

I tried compiling the first demo ala make and the following errors come up.

v810-gcc -Wall -nodefaultlibs -mv810 -xc -o demo1.o demo1.c
In file included from ../libgccvb/affine.h:12,
from ../libgccvb/libgccvb.h:21,
from demo1.c:2:
../libgccvb/video.h:51: warning: `/*' within comment
In file included from ../libgccvb/affine.h:12,
from ../libgccvb/libgccvb.h:21,
from demo1.c:2:
../libgccvb/video.h:31: warning: type defaults to `int' in declaration of `VIP_R
EGS'
../libgccvb/video.h:31: conflicting types for `VIP_REGS'
../libgccvb/vip.h:37: previous declaration of `VIP_REGS'
../libgccvb/video.h:31: `b' undeclared here (not in a function)
../libgccvb/video.h:31: warning: data definition has no type or storage class
../libgccvb/video.h:31: stray '\' in program
../libgccvb/video.h:32: warning: type defaults to `int' in declaration of `VIP_R
EGS'
../libgccvb/video.h:32: conflicting types for `VIP_REGS'
../libgccvb/video.h:31: previous declaration of `VIP_REGS'
../libgccvb/video.h:32: `c' undeclared here (not in a function)
../libgccvb/video.h:53: parse error before `void'
../libgccvb/video.h: In function `vbFXFadeIn':
../libgccvb/video.h:113: warning: implicit declaration of function `vbWaitFrame'

../libgccvb/video.h:114: stray '\' in program
../libgccvb/video.h:114: stray '\' in program
../libgccvb/video.h: In function `vbFXFadeOut':
../libgccvb/video.h:123: stray '\' in program
In file included from ../libgccvb/libgccvb.h:34,
from demo1.c:2:
../libgccvb/world.h: At top level:
../libgccvb/world.h:54: `n' undeclared here (not in a function)
../libgccvb/world.h:54: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:54: size of array `WAM' has non-integer type
../libgccvb/world.h:54: conflicting types for `WAM'
../libgccvb/video.h:22: previous declaration of `WAM'
../libgccvb/world.h:54: `gp' undeclared here (not in a function)
../libgccvb/world.h:54: warning: data definition has no type or storage class
../libgccvb/world.h:54: stray '\' in program
../libgccvb/world.h:55: `n' undeclared here (not in a function)
../libgccvb/world.h:55: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:55: size of array `WAM' has non-integer type
../libgccvb/world.h:55: redefinition of `WAM'
../libgccvb/world.h:54: `WAM' previously defined here
../libgccvb/world.h:57: `gy' undeclared here (not in a function)
../libgccvb/world.h:57: parse error before `WAM'
../libgccvb/world.h:57: stray '\' in program
../libgccvb/world.h:58: `n' undeclared here (not in a function)
../libgccvb/world.h:58: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:58: size of array `WAM' has non-integer type
../libgccvb/world.h:58: redefinition of `WAM'
../libgccvb/world.h:55: `WAM' previously defined here
../libgccvb/world.h:60: `my' undeclared here (not in a function)
../libgccvb/world.h:60: parse error before `WAM'
../libgccvb/world.h:70: `tmp' undeclared here (not in a function)
../libgccvb/world.h:70: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:70: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:70: conflicting types for `WAM'
../libgccvb/world.h:58: previous declaration of `WAM'
../libgccvb/world.h:70: `header' undeclared here (not in a function)
../libgccvb/world.h:70: warning: data definition has no type or storage class
../libgccvb/world.h:71: `tmp' undeclared here (not in a function)
../libgccvb/world.h:71: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:71: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:71: conflicting types for `WAM'
../libgccvb/world.h:70: previous declaration of `WAM'
../libgccvb/world.h:71: `gx' undeclared here (not in a function)
../libgccvb/world.h:71: warning: data definition has no type or storage class
../libgccvb/world.h:72: `tmp' undeclared here (not in a function)
../libgccvb/world.h:72: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:72: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:72: conflicting types for `WAM'
../libgccvb/world.h:71: previous declaration of `WAM'
../libgccvb/world.h:72: `gp' undeclared here (not in a function)
../libgccvb/world.h:72: warning: data definition has no type or storage class
../libgccvb/world.h:73: `tmp' undeclared here (not in a function)
../libgccvb/world.h:73: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:73: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:73: conflicting types for `WAM'
../libgccvb/world.h:72: previous declaration of `WAM'
../libgccvb/world.h:73: `gy' undeclared here (not in a function)
../libgccvb/world.h:73: warning: data definition has no type or storage class
../libgccvb/world.h:74: `tmp' undeclared here (not in a function)
../libgccvb/world.h:74: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:74: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:74: conflicting types for `WAM'
../libgccvb/world.h:73: previous declaration of `WAM'
../libgccvb/world.h:74: `mx' undeclared here (not in a function)
../libgccvb/world.h:74: warning: data definition has no type or storage class
../libgccvb/world.h:75: `tmp' undeclared here (not in a function)
../libgccvb/world.h:75: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:75: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:75: conflicting types for `WAM'
../libgccvb/world.h:74: previous declaration of `WAM'
../libgccvb/world.h:75: `mp' undeclared here (not in a function)
../libgccvb/world.h:75: warning: data definition has no type or storage class
../libgccvb/world.h:76: `tmp' undeclared here (not in a function)
../libgccvb/world.h:76: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:76: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:76: conflicting types for `WAM'
../libgccvb/world.h:75: previous declaration of `WAM'
../libgccvb/world.h:76: `my' undeclared here (not in a function)
../libgccvb/world.h:76: warning: data definition has no type or storage class
../libgccvb/world.h:77: `tmp' undeclared here (not in a function)
../libgccvb/world.h:77: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:77: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:77: conflicting types for `WAM'
../libgccvb/world.h:76: previous declaration of `WAM'
../libgccvb/world.h:77: `width' undeclared here (not in a function)
../libgccvb/world.h:77: warning: data definition has no type or storage class
../libgccvb/world.h:78: `tmp' undeclared here (not in a function)
../libgccvb/world.h:78: warning: type defaults to `int' in declaration of `WAM'
../libgccvb/world.h:78: variable `WAM' has initializer but incomplete type
../libgccvb/world.h:78: conflicting types for `WAM'
../libgccvb/world.h:77: previous declaration of `WAM'
../libgccvb/world.h:78: `height' undeclared here (not in a function)
../libgccvb/world.h:78: warning: data definition has no type or storage class
../libgccvb/world.h:79: parse error before `}'
../libgccvb/misc.h:14: warning: `itoa' defined but not used
make: *** [demo1.o] Error 1

Any help would be greatly appreciated.*/
Top

Topic | Forum


#8
Re: Community created game... thoughts/ideas?
Posted on: 2011/6/30 16:41
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
I'm looking at least to get a bit of expirience for VB Coding. Did this project get started?

I'm not much for graphics but I've been a programmer for over three years on C# and C++ but have no problems working with C.
Top

Topic | Forum


#9
Re: VIDE Feature Requests
Posted on: 2009/8/30 0:15
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
Quote:

DogP wrote:
I'd like an adjustable threshold for the map constructor... basically if I input a BMP w/ 4 colors, I'd like those 4 colors to be black through bright red (either automatically or manually selecting the threshold), instead of having to adjust the colors in the original BMP until it detects the 4 colors like I want.

I'll try to think of other stuff, but that's one I've run into a few times.

DogP


What are the four colors it will detect?
Edited by fobbio on 2009/8/30 4:16
Top

Topic | Forum


#10
Re: Flashboy dead...again?!
Posted on: 2009/8/29 0:55
VB Gamer
Joined 2009/1/3
USA
22 Posts
Long Time User (11 Years)
On mine I can use any USB cable. But one thing to note, it may not ALWAYS work. Try closing out the program, disconnecting the USB from the computer and try again a few times. Mine almost never flashes correctly the first time. I usually need three or four tries or a reboot to get it to work.
Top

Topic | Forum