DerekAnton / Adventure-Game

side scroller game in java
2 stars 1 forks source link

collision with mapobjects/player fix? #1

Closed DerekAnton closed 7 years ago

DerekAnton commented 7 years ago

create a new function for player that is called bool MapObjInterscetsPlayer(MapObject x)

this will create two rects, one from the x.getrect() and the other created from player.xmap, ymap, hitboxwidth and hitboxheight. It will then check to see if they intersect here, are return a bool.

this is just one idea, maybe model collision after the ground and the player?

DerekAnton commented 7 years ago

resolved