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.

DarkBASIC Discussion / Here's my FPS engine

Author
Message
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 10th May 2009 05:56 Edited at: 30th Aug 2011 01:54
Deleted, it was very badly coded

darkbasic = success
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 10th May 2009 07:09 Edited at: 30th Aug 2011 01:53
Its working

darkbasic = success
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th May 2009 08:46
You might want to offset the gun to the right a little bit, so that the user can see what kind of gun it is

Not bad so far though, maybe try to change the color of a triangle of a matrix if you shoot it for debugging purposes.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 10th May 2009 14:24
when I try to move it to he right It say something like maximum angle 360 degrees when I'm only moving it -20
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th May 2009 15:47 Edited at: 10th May 2009 15:53
@Chewy
Are you rotating the gun or positioning it?
If you're rotating then the angle you use must be between 0 and 360, if you want -20 use the wrapvalue(n) function.
It takes n and checks whether it is within 0 to 360; if less than 0 it returns n+360, if more than 360 it returns n-360 . So wrapvalue(-20) would come out as 340.

As for the rest of your code read this, you need to use subroutines and function if you want to write a game engine. Is this something you're planning for others to use?

Riddle: The more you take, the more you leave behind. What are they? Answer
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 10th May 2009 17:35
Here it is.

Attachments

Login to view attachments
Travis Gatlin
16
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 2nd Jun 2009 02:18
wat is the point of the game...or engine?
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 12th Jun 2009 23:58 Edited at: 30th Aug 2011 01:54
It was buggy so I deleted it

darkbasic = success

Login to post a reply

Server time is: 2025-05-15 13:37:50
Your offset time is: 2025-05-15 13:37:50