[x]

deviantART

 
:iconevil-system:

~Evil-System

Apple 3.14 Tastes Good! =D
About Me Member Mad Scientist Joël19/Male/Canada Recent Activity Deviant for 1 Year
Needs Premium Membership
Statistics 110 Deviations
652 Comments
2,855 Pageviews

Help: Game - 2D Collision Detection

Mon May 11, 2009, 8:22 AM
So, I decided to start a 2D platform game for Windows using only the ANSI character set but the problem is, I am not sure how to do collision detection. Does anybody know how to do this? I have to be able to check the player's position and velocity in relation to a four-sided polygon (a square). Also, there is gravity also affecting the player (and later to implement: enemies).

Would anybody how to accomplish this, or even point me to right direction as to where I can get some help? I have searched the Internet (what feels like forever) and found nothing basic and relevant.

Additional:
Hah! I think I found a great site, and in C++! (FINALLY! =D) [link]

  • Mood: Eager
  • Listening to: Austrian Death Machine

deviantID

I rise from the abyss and cold of darkness and void:
stand between the nothingness and reside in Niflheim.

Devious Info

  • Current Residence: Niflheim
  • deviantWEAR sizing preference: My shoulders are too sexy for medium; Large will just have to do.
  • Interests: Music, Games, Sports, Girlfriend, Friends & Family
  • Favourite movie: As long as it involves: Action, Comedy, Horror &/or Sci-Fi.
  • Favourite band or musician: Cryptopsy, Behemoth, Mr. Oizo, Rush.
  • Favourite genre of music: Heavy/Black/Extreme/Technical/Thrash/Prog Metal, Hard/Blues/Prog Rock and Various Electronic.
  • Operating System: Windows XP SP3 Version 2002 Professional Edition
  • MP3 player of choice: 30Gb iPod Video (5th Generation)
  • Shell of choice: Shotgun! Gotta kill demz Zombiez!!
  • Wallpaper of choice: Space or Video Game related.
  • Skin of choice: Not sure... Ask Predator. lol
  • Favourite game: Doom series, Halo series, Mario series, Sonic series.
  • Favourite gaming platform: PC, Gamecube, PlayStation X&2, XBOX 1 & 360, Sega Genesis, Super Nintendo, Nintendo.
  • Favourite cartoon character: Bugs Bunny, Tintin and Astérix & Obélix.
  • Personal Quote: "The creation and destruction of humankind is a paradox within itself."
  • Tools of the Trade: Canon Digital Camera, Tablet, Photoshop CS3, Maya 2008, 3DS 2009, zBrush

deviantART Notice

[x]

Comments


=D

--
live in your imagination
Hi there! Thanks so much for the faves! :D

--
"A match made in a galaxy far far away..."
You're welcome! =D

--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein

:music: :pacman: :stereo: :pepsi:
Thanks for the fave

--
... one day at a party somebody handed me a cat, just a small cat, and I tried it. It wasn't bad, sort of pleasant in fact. So I had another, and then another, and then another....
Pleasure! :)

--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein

:music: :pacman: :stereo: :pepsi:
=P =D I can't go a day without listening to them lol

--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein

:music: :pacman: :stereo: :pepsi:
lol w0rd! :D behemoth ftw :D

--
o.o
lol =D

--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein

:music: :pacman: :stereo: :pepsi:

Site Map