You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#11
Re: GoSub 2
Posted on: 2010/7/15 14:00
VUE(xpert)
Joined 2003/9/3
Sweden
442 Posts
PVBCC EntryHighscore Top10 3rdCoderContributorHOTY09 2ndLong Time User (15 Years) DonatorApp CoderPVBCC 2010 1st20+ Game RatingsPVBCC 2013 2nd
That's easy!

When calling vbSetWorld to put for example the torpedo on screen, instead of doing this (from your code):


vbSetWorld
(31WRLD_ON|3torpedox0torpedoy000384224);


(that cuts the graphics from x:0, y:0 in the map)

do like this to call up the part of the map that contains the torpedo (at x: 0, y:24 in your new map ):


vbSetWorld
(31WRLD_ONtorpedox0torpedoy0024168);


Here's for the octopus (at x:32, y:0 in the map):

vbSetWorld
(26WRLD_ONoctox0octoy32001632);


Also note that I changed the last parameters from 384,224 to the actual width and height of the graphic to get.
Top

#12
Re: GoSub 2
Posted on: 2010/7/15 14:31
PVB Elite
Joined 2008/4/26
USA
937 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
OK, I think I got everything all new. The game runs faster than it did before. And because I can now keep the text on all the time, to make room for it, I shifted the map down 8 pixels. Thanks for your help, Dan!

Attach file:


vb g2.VB Size: 256.00 KB; Hits: 127
c g2.c Size: 8.12 KB; Hits: 150
Top

#13
Re: GoSub 2
Posted on: 2010/7/15 14:37
VUE(xpert)
Joined 2003/9/3
Sweden
442 Posts
PVBCC EntryHighscore Top10 3rdCoderContributorHOTY09 2ndLong Time User (15 Years) DonatorApp CoderPVBCC 2010 1st20+ Game RatingsPVBCC 2013 2nd
Cool, glad to help! Just imagine all the extra features you now have room to add to the game

Hint: You could even put the level graphics in the same charseg as well, and then still have different maps for the levels, but let all level maps use charseg 0 as well.
Top

#14
Re: GoSub 2
Posted on: 2010/7/16 3:02
PVB Elite
Joined 2008/4/26
USA
937 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
I've done a few changes. First off, shooting instead of the A button is now controlled by the right d-pad. Now you can shoot right while going left. I've also added a background.

Attach file:


vb g2.VB Size: 256.00 KB; Hits: 124
Top

#15
Re: GoSub 2
Posted on: 2010/7/16 10:33
Administrator
Joined 2000/1/8
Germany
2519 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Using the other D-Pad for shooting is a very good addition! Did you get inspired by Jack Bros.? :)
Top

#16
Re: GoSub 2
Posted on: 2010/7/16 14:22
VUE(xpert)
Joined 2003/9/3
Sweden
442 Posts
PVBCC EntryHighscore Top10 3rdCoderContributorHOTY09 2ndLong Time User (15 Years) DonatorApp CoderPVBCC 2010 1st20+ Game RatingsPVBCC 2013 2nd
The scrolling background is a nice addition.
That is a perfect place to utilize one of the easiest VB 3D functions. Notice the 0 in vbSetWorld that I marked in bold/italic below? That controls the depth of that world. Simply change it to 2 or 3 to make the waves appear deeper into the screen than the rest of the graphics for a nice 3D effect! That's all there is to it!

vbSetWorld(31, WRLD_ON, wavesX, 0, wavesY, 0, 0, 0, 384, 224);
Top

#17
Re: GoSub 2
Posted on: 2010/7/16 16:24
PVB Elite
Joined 2008/4/26
USA
937 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
OK, I changed it to two. I don't really understand the red and blue lines Mednafen is showing, though. I suppose it won't look like that in a real Virtual Boy?

Attach file:


vb g2.VB Size: 256.00 KB; Hits: 115
Top

#18
Re: GoSub 2
Posted on: 2010/7/16 16:29
Administrator
Joined 2000/1/8
Germany
2519 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Quote:

VirtualChris schrieb:
OK, I changed it to two. I don't really understand the red and blue lines Mednafen is showing, though. I suppose it won't look like that in a real Virtual Boy?


No, it won't. ;) It's showing the images for both eyes at the same time, red for one eye, blue for the other. That way you can simulate the VB's 3D if you have appropriately colored 3D glasses.
Top

#19
Re: GoSub 2
Posted on: 2010/7/16 17:05
VUE(xpert)
Joined 2003/9/3
Sweden
442 Posts
PVBCC EntryHighscore Top10 3rdCoderContributorHOTY09 2ndLong Time User (15 Years) DonatorApp CoderPVBCC 2010 1st20+ Game RatingsPVBCC 2013 2nd
That's why the rest of your game is purple in mednafen. When there is no 3D, the red and blue images are identical, and red+blue combined equals purple :)

Get a pair of these:
http://www.dealextreme.com/details.dx/sku.41561

They look cool, works with mednafen and are only $2.50 including shipping
Edited by DanB on 2010/7/16 17:15
Top

#20
Re: GoSub 2
Posted on: 2010/7/16 17:40
Administrator
Joined 2000/1/8
Germany
2519 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Nice glasses! Do you have some yourself, Dan? I'd like to get a pair or two, but I want to make sure it's the right colors. Those on the glasses I have are not fully correct. Might be an issue with my monitor settings, but I can't get it right.
Top

 Top   Previous Topic   Next Topic


Register To Post