Added physac examples to web
Some tweaks on original src files
This commit is contained in:
parent
881f134f4d
commit
4b8a0268ed
22 changed files with 55426 additions and 22009 deletions
|
@ -28,7 +28,6 @@ int main()
|
|||
|
||||
SetConfigFlags(FLAG_MSAA_4X_HINT);
|
||||
InitWindow(screenWidth, screenHeight, "Physac [raylib] - Physics restitution");
|
||||
SetTargetFPS(60);
|
||||
|
||||
// Physac logo drawing position
|
||||
int logoX = screenWidth - MeasureText("Physac", 30) - 10;
|
||||
|
@ -49,6 +48,8 @@ int main()
|
|||
circleB->restitution = 0.5f;
|
||||
PhysicsBody circleC = CreatePhysicsBodyCircle((Vector2){ screenWidth*0.75f, screenHeight/2 }, 30, 10);
|
||||
circleC->restitution = 1;
|
||||
|
||||
SetTargetFPS(60);
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
// Main game loop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue