Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / split screen demo for dbc

Author
Message
dance dreemer
21
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 7th Dec 2003 19:54
this is a simple split screen demo thing i made coz i was bord.
it shows a mario cart style split screen showing 2 diffrent object views.

i hope this code is usefull to someone im not shure if it has any practical use but hay i was bord any hows hope you all like it
please comment on it coz this is my first code post thanx
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 8th Dec 2003 02:42
Very nice. I tested and it worked fine in DBP also.



A book? I hate book. Book is stupid.
dance dreemer
21
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 8th Dec 2003 06:18
thanx "yellow" glad you liked it. it was the only way i could think of making some kind of split screen since theres only one camera available in dbc. i havent tested it in a game yet so if some one dose please post i would like to see how it compairs to a split screen in dbpro thanx i will be doing a better demo of the split screen thingy when i get 5 an post it as soon as i can
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 13th Dec 2003 18:58 Edited at: 13th Dec 2003 20:06
I am making a game now with your split screen code
kind of 1st person shooting game.

if I = 1 then I = 1 else I = 0
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 13th Dec 2003 20:16
I've improved your code You can control one camera now.



if I = 1 then I = 1 else I = 0
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 13th Dec 2003 22:35
Really cool, I did post a multiple camera post for DBC a while ago, but I was using 2 syncs, I didn't know you could do it with only the one. Well done. The only problem is that it lacks the ability to change the camera aspect ratio, so you cant have 2 cameras taking up the whole screen like most games, unless you want it to look stretched.

Do you bite your thumb at me sir?

Athelon XP 1600 Plus - Nvidia Geforce MX400 - 256mb RAM
dance dreemer
21
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 13th Dec 2003 23:19
yer i tryed to sort that out but i could never get it right its probley why thay improved it in dbpro so it would be possable to get the aspect ratio right

*Jopie dopie* cool i like the improvements on the code i was gonna do somethin simler in a better demo of it but it seems i dont need to now he he he

p.s could you send me a demo or somthin of ur game please i would love to see the code in action if possable thanx ))
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 14th Dec 2003 00:09 Edited at: 14th Dec 2003 00:16
yes i can, but there are two problems. problem 1: Each player hase a gun(the gun is just an image that i paste in the loop), by player 2 is the gun flickering. problem 2: sometimes the game crashes, my pc: asus 2.4 ghz 512 mb ram geforce 4 Ti, so that's a little weird. i'll hope you understand me what i mean, i not good in english so. here is a screenie from my game:



dont see?
http://www.geocities.com/darkbasicgast/snapshot72.JPG
right click, save as

cheers

if I = 1 then I = 1 else I = 0
Mitch
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: The Netherlands
Posted: 14th Dec 2003 03:57
Ziet er goed uit Jopie! Ik ben ook bezig met een fps, maar ik kom nie echt ver. Als je kogels gebruikt (objects) dan heb je redelijk veel problemen. (ik in ieder geval) Weet jij hoe je al van tevoren kan uitrekenen waar de kogel zou komen?

Me vs. The World...
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 14th Dec 2003 14:55
nee ik ben daar ook niet goed in, in kogels maken. maar ik heb er een ander truukje voor:
zet ergens in de loop:

if spacekey()=1 (spacekey is in dit geval de schietknop)
if object screen x(typ hier de enemy) > 300 and object screen x(typ hier de enemy) < 340
if object screen y(typ hier de enemy) > 220 and object screen y(typ hier de enemy) < 260
hier kan je dan typen dat die enemy gikilled word etc.
endif
endif
endif

je moet wel een screen res van 640 * 480 gebruiken anders moet je die getallen ff veranderen. veel suc6. zeg maar als je het niet begrijpt, k leg het je dan wel beter uit

if I = 1 then I = 1 else I = 0
dance dreemer
21
Years of Service
User Offline
Joined: 24th Jan 2003
Location: cyber space
Posted: 14th Dec 2003 15:48
[quote]yes i can, but there are two problems. problem 1: Each player hase a gun(the gun is just an image that i paste in the loop), by player 2 is the gun flickering.


check that ther is no second sync command in between the two set camera commands because it will cause the second camera view to flicker "see source" not shure if this is ur prob but i hope it helps

not shure on your second prob i have a 2.66gh with 256 maybe its a bug with dbc not shure

btw the game looks wicked thanx for the screen shot look forward to seeing the finished game

if tired()=1 then goto bed

Login to post a reply

Server time is: 2024-05-04 06:10:13
Your offset time is: 2024-05-04 06:10:13