Added basic player movement.
This commit is contained in:
1 parent
f7c1380f06
commit
e323cf2721
23 files changed
+428
-14
No files matched your search
@@ -30,7 +30,15 @@ int32_t main() {
|
||||
// Init the game
|
||||
if(gameInit()) {
|
||||
// Bind initial keys
|
||||
inputBind(INPUT_NULL, (inputsource_t)GLFW_KEY_ESCAPE);
|
||||
inputBind(INPUT_NULL, (inputsource_t)GLFW_KEY_ESCAPE);
|
||||
inputBind(INPUT_UP, (inputsource_t)GLFW_KEY_UP);
|
||||
inputBind(INPUT_DOWN, (inputsource_t)GLFW_KEY_DOWN);
|
||||
inputBind(INPUT_LEFT, (inputsource_t)GLFW_KEY_LEFT);
|
||||
inputBind(INPUT_RIGHT, (inputsource_t)GLFW_KEY_RIGHT);
|
||||
inputBind(INPUT_UP, (inputsource_t)GLFW_KEY_W);
|
||||
inputBind(INPUT_DOWN, (inputsource_t)GLFW_KEY_S);
|
||||
inputBind(INPUT_LEFT, (inputsource_t)GLFW_KEY_A);
|
||||
inputBind(INPUT_RIGHT, (inputsource_t)GLFW_KEY_D);
|
||||
|
||||
// Init the render resolution
|
||||
renderSetResolution(WINDOW_WIDTH_DEFAULT, WINDOW_HEIGHT_DEFAULT);
|
||||
|
||||
Reference in new issue
Block a user