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 / FPS with newton physics

Author
Message
Physics coder
19
Years of Service
User Offline
Joined: 25th May 2004
Location: United States
Posted: 24th Dec 2004 01:34 Edited at: 24th Dec 2004 01:44
I made this from playing around with walaber's fps demo, so a lot of the code is his. Basically, I messed around with the fps demo until it worked on my computer, and so here's what I made (download attachment).

I added 2 sounds: shoot and footsteps. Whenever you move (with WASD) you run, unless you press shift to walk siliently, like in counter-strike.

I made a 3 story room to run around in, with several sets of stairs and shootable boxes, cylinders, and spheres. I wasn't sure how to code the stairs, right now if you walk over something right in front of you, you have an upward impulse, which helps you up the stairs.

As for the shooting, it's practically unchanged from walaber's demo.

Extract the rar to it's own directory, the code and media are included, I didn't include a compiled exe because of the max 1mb file size on attachments.

EDIT: one of the first few lines is a display command, set it to a resolution your monitor supports.

-----------------------------------
HP Laptop, P4 3.0Ghz, 1GB RAM, 128MB Geforce dedicated video RAM, 60GB Hard Drive, 17" bright wide screen.
A.K.A "The Uber Computer"

Attachments

Login to view attachments
Spline
19
Years of Service
User Offline
Joined: 30th Oct 2004
Location: London U.K
Posted: 24th Dec 2004 06:42
this is a great demo Physics coder
hope to see more of you work in the future, im hoping to look a the newton physics plugin soon, what a great piece of kit that is

Physics coder
19
Years of Service
User Offline
Joined: 25th May 2004
Location: United States
Posted: 24th Dec 2004 09:12
Thanks

-----------------------------------
HP Laptop, P4 3.0Ghz, 1GB RAM, 128MB Geforce dedicated video RAM, 60GB Hard Drive, 17" bright wide screen.
A.K.A "The Uber Computer"
Amiga for Ever !
19
Years of Service
User Offline
Joined: 24th Dec 2004
Location:
Posted: 24th Dec 2004 22:37
NDB_NewtonCreate ERROR !!
punkfan91
19
Years of Service
User Offline
Joined: 23rd Dec 2004
Location: England
Posted: 25th Dec 2004 01:58
Have you got the Newton wrapper DLL in the correct folder (DarkBASIC Professional -> Compiler -> plugins-user)? I didn't have the DLL itself when I first tried it, and I put it there (like it says in the readme) and it worked fine!

www.somethingfishystudios.tk
gbuilder
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: New Zealand
Posted: 26th Dec 2004 11:40
Nice work.

gbuilder.

XP2000, 512mb Ram, 64mb GForce4 MX440 Graphics card, WindowsXP Professional.
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 16th Jan 2005 12:11
it doesn't work for me

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
walaber
20
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 16th Jan 2005 16:09
Quote: " it doesn't work for me"


really helpful post... what exactly happens? have you installed the wrapper?

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 17th Jan 2005 03:02
i installed it and your fps demo works but not his.

When i start his the screen is black and the game is not responding.

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 17th Jan 2005 15:41
now it works , i also added some effects

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP

Login to post a reply

Server time is: 2024-04-17 00:07:51
Your offset time is: 2024-04-17 00:07:51