Code Snippets / FPS with newton physics |
| Author | Message | ||
|
Physics coder
User Joined: Tue May 25th 2004 Location: United States |
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" |
||
| Back to top |
|||
|
Spline
User Joined: Sat Oct 30th 2004 Location: London U.K |
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 |
||
| Back to top |
|||
|
Physics coder
User Joined: Tue May 25th 2004 Location: United States |
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" |
||
| Back to top |
|||
|
Amiga for Ever !
User Joined: Fri Dec 24th 2004 Location: Cyberspace |
NDB_NewtonCreate ERROR !! |
||
| Back to top |
|||
|
punkfan91
User Joined: Thu Dec 23rd 2004 Location: England |
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 |
||
| Back to top |
|||
|
Google Ad
AdBot Joined: Aug 26th 2002 Location: Everywhere |
|||
| Back to top |
|||
|
gbuilder
User Joined: Mon Aug 26th 2002 Location: New Zealand |
Nice work. gbuilder. XP2000, 512mb Ram, 64mb GForce4 MX440 Graphics card, WindowsXP Professional. |
||
| Back to top |
|||
|
ALPHA ZERO PRODUCTIONS
User Joined: Sun Sep 28th 2003 Location: Mom ! I forgot where we live ! |
|
||
| Back to top |
|||
|
walaber
User ![]() Joined: Wed Oct 22nd 2003 Location: Los Angeles, CA |
|
||
| Back to top |
|||
|
ALPHA ZERO PRODUCTIONS
User Joined: Sun Sep 28th 2003 Location: Mom ! I forgot where we live ! |
|
||
| Back to top |
|||
|
ALPHA ZERO PRODUCTIONS
User Joined: Sun Sep 28th 2003 Location: Mom ! I forgot where we live ! |
|
||
| Back to top |
|||
Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.
You may read it but not reply.
Forum Search
Enter a word or phrase to search our Forum for:
|
|






