Search found 22 matches

by sefan
Mon Aug 10, 2015 1:36 pm
Forum: Support and Development
Topic: how to create collision between two entities.
Replies: 2
Views: 456

Re: how to create collision between two entities.

Here is a simple collision detection function: -- Collision detection function. -- Returns true if two boxes overlap, false if they don't -- x1,y1 are the left-top coords of the first box, while w1,h1 are its width and height -- x2,y2,w2 & h2 are the same, but for the second box function CheckCollis...
by sefan
Sat Aug 08, 2015 1:56 pm
Forum: Support and Development
Topic: Fog of war
Replies: 3
Views: 900

Fog of war

Hi. I'm working on a top down strategy game and need some help with fog of war. Right now i have a working basic fog of war that light up the things around the player in a circle. But the problem is that i see thru walls. Anyone have any tips how to solve this? I have tried to loop thru all my tiles...