Jump to content


Photo

fps engine (P3DC + MD2)


  • Please log in to reply
5 replies to this topic

#1 orange451

orange451

    GMC Member

  • GMC Member
  • 984 posts
  • Version:GM8

Posted 09 August 2012 - 09:55 PM

About 6 or 7 months ago I wrote a simple fps engine using P3DC. I found it yesterday, added some simple MD2 stuff using the GMMD2 dll.
The only thing that's efficient about this example is the collisions (mostly with the floors, I find that the method I use for floor collision is the best way to accurately predict where floors are)

features:
  • showing how to use MD2 loading with the GMMD2 dll
  • an animated gun model (model made by me, arms by the Maximo company)
  • animated "look-down" legs (rigged and animated by me, model by the Maximo company)
  • simple fps mechanics (collisions, shooting)
  • collision boxes (the enemies are made up of separate collision boxes)
  • a decent map loading system
controls:

  • wsad = move
  • space = jump
  • click = shoot
  • CTRL = slow movement
  • R = reload
download link: here




Feel free to use the legs/soldier model in your game (as it's not made by me), however don't use the gun or the map :)

Edited by orange451, 10 August 2012 - 03:57 AM.

  • 0

#2 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1323 posts
  • Version:GM8

Posted 09 August 2012 - 09:57 PM

Looks interesting, I'll check it out. :thumbsup: and report back tomorrow.
  • 0

#3 slayer 64

slayer 64

    GMC Member

  • GMC Member
  • 3274 posts
  • Version:GM8.1

Posted 10 August 2012 - 12:50 AM

looks like it could be faster. slow load time and it lags sometimes. free resources! guess i'll archive those at some point.
  • 0

#4 orange451

orange451

    GMC Member

  • GMC Member
  • 984 posts
  • Version:GM8

Posted 10 August 2012 - 03:10 AM

looks like it could be faster. slow load time and it lags sometimes. free resources! guess i'll archive those at some point.


It only takes 5 seconds to load for me :P
I also maintain a constant 60 fps
D:
  • 0

#5 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1587 posts
  • Version:GM8.1

Posted 10 August 2012 - 08:33 AM

Glitchy engine you've got there. Worst one I found occurs consistently when you run under the wooden bridge while pressed against the sand-wall (you pop upwards and get stuck in the bridge), but others include being able to jump through objects (You only restrict movement horizontally).

Additionally (this isn't a glitch, but it's annoying), it handles moving down slopes poorly.

So, in summary, you've got good horizontal movement, but your handling of vertical and mixed movement is inadequate for even the demonstration level.
  • 0

#6 TB0Y298

TB0Y298

    GMC Member

  • New Member
  • 6 posts
  • Version:GM8

Posted 16 March 2013 - 05:22 PM

Could someone post a screenshot please? :( I dont have game maker 8.1 pro.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users