Update examples and remove .exe
This commit is contained in:
parent
c56ef738ed
commit
01651af08a
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ src/vector3.o
|
|||||||
src/stb_image.o
|
src/stb_image.o
|
||||||
src/*.exe
|
src/*.exe
|
||||||
examples/*.o
|
examples/*.o
|
||||||
|
examples/*.exe
|
||||||
|
|
||||||
# Ignore thumbnails created by windows
|
# Ignore thumbnails created by windows
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -30,10 +30,10 @@ int main()
|
|||||||
{
|
{
|
||||||
// Update
|
// Update
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
if (IsKeyPressed(KEY_RIGHT)) ballPosition.x += 0.8;
|
if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 0.8;
|
||||||
if (IsKeyPressed(KEY_LEFT)) ballPosition.x -= 0.8;
|
if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 0.8;
|
||||||
if (IsKeyPressed(KEY_UP)) ballPosition.y -= 0.8;
|
if (IsKeyDown(KEY_UP)) ballPosition.y -= 0.8;
|
||||||
if (IsKeyPressed(KEY_DOWN)) ballPosition.y += 0.8;
|
if (IsKeyDown(KEY_DOWN)) ballPosition.y += 0.8;
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Draw
|
// Draw
|
||||||
|
Binary file not shown.
@ -19,7 +19,6 @@ int main()
|
|||||||
int screenHeight = 450;
|
int screenHeight = 450;
|
||||||
|
|
||||||
Vector2 ballPosition = { -100.0, -100.0 };
|
Vector2 ballPosition = { -100.0, -100.0 };
|
||||||
int counter = 0;
|
|
||||||
int mouseX, mouseY;
|
int mouseX, mouseY;
|
||||||
|
|
||||||
InitWindow(screenWidth, screenHeight, "raylib example 06 - mouse input");
|
InitWindow(screenWidth, screenHeight, "raylib example 06 - mouse input");
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -37,7 +37,7 @@ int main()
|
|||||||
|
|
||||||
Vector2 mousePoint;
|
Vector2 mousePoint;
|
||||||
|
|
||||||
InitWindowEx(screenWidth, screenHeight, "raylib example 06a - color selection", false, "resources/mouse.png");
|
InitWindow(screenWidth, screenHeight, "raylib example 06a - color selection");
|
||||||
|
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -27,7 +27,7 @@ int main()
|
|||||||
|
|
||||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||||
|
|
||||||
Texture2D texture = LoadTexture("resources/catwhite.png");
|
Texture2D texture = LoadTexture("resources/catsham.png");
|
||||||
Model cat = LoadModel("resources/cat.obj");
|
Model cat = LoadModel("resources/cat.obj");
|
||||||
SetModelTexture(&cat, texture); // Link texture to model
|
SetModelTexture(&cat, texture); // Link texture to model
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user