2021-08-28 22:48:16 +00:00
|
|
|
#include "raylib.h"
|
2021-09-12 19:23:15 +00:00
|
|
|
|
|
|
|
#include "Main.h"
|
2021-08-28 22:48:16 +00:00
|
|
|
#include "Controls.h"
|
2021-09-05 16:30:50 +00:00
|
|
|
|
2021-08-28 22:48:16 +00:00
|
|
|
// Controls
|
2021-10-21 12:02:11 +00:00
|
|
|
void Func_Controls()
|
2021-08-28 22:48:16 +00:00
|
|
|
{
|
|
|
|
if (IsKeyDown(KEY_LEFT)) {TuxPos_x -= GetFrameTime() * 800.0f;}
|
|
|
|
if (IsKeyDown(KEY_RIGHT)) {TuxPos_x += GetFrameTime() * 800.0f;}
|
|
|
|
if (IsKeyDown(KEY_UP)) {TuxPos_y -= GetFrameTime() * 800.0f;}
|
|
|
|
if (IsKeyDown(KEY_DOWN)) {TuxPos_y += GetFrameTime() * 800.0f;}
|
|
|
|
}
|