Some work on example games
This commit is contained in:
parent
be40d97954
commit
66320582a3
1 changed files with 8 additions and 21 deletions
|
|
@ -154,17 +154,4 @@ void UnloadLevel02Screen(void)
|
|||
int FinishLevel02Screen(void)
|
||||
{
|
||||
return finishScreen;
|
||||
}
|
||||
|
||||
// Calculate distance between two points
|
||||
float Vector2Distance(Vector2 v1, Vector2 v2)
|
||||
{
|
||||
float result;
|
||||
|
||||
float dx = v2.x - v1.x;
|
||||
float dy = v2.y - v1.y;
|
||||
|
||||
result = sqrt(dx*dx + dy*dy);
|
||||
|
||||
return result;
|
||||
}
|
||||
Loading…
Reference in a new issue