Skip to content

Commit

Permalink
back to lib...
Browse files Browse the repository at this point in the history
  • Loading branch information
durkisneer1 committed Nov 21, 2023
1 parent 9b0ac65 commit 0705d2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ SDL2_INCLUDE_DIR := C:/SDL2/include
SDL2_LIB_DIR := C:/SDL2/lib

CXXFLAGS := -std=c++17 -Wall -Werror -m64 -I$(INCLUDE_DIR) -I$(SDL2_INCLUDE_DIR)
TARGET := DurkGame.a
TARGET := DurkGame.lib
SRC := $(wildcard $(SRC_DIR)/*.cpp)
OBJ := $(SRC:.cpp=.o)
LIB := $(wildcard $(SDL2_LIB_DIR)/*.a)
LIB := $(wildcard $(SDL2_LIB_DIR)/*.lib)

all: $(TARGET)

Expand Down
3 changes: 1 addition & 2 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ INCLUDE_DIR := include
SDL2_INCLUDE_DIR := C:/SDL2/include
SDL2_LIB_DIR := C:/SDL2/lib
DK_INCLUDE_DIR := ../include
DK_LIB_DIR := ..

CXXFLAGS := -std=c++17 -Wall -Werror -m64 -I$(INCLUDE_DIR) -I$(SDL2_INCLUDE_DIR) -I$(DK_INCLUDE_DIR)
TARGET := Game.exe
SRC := $(wildcard $(SRC_DIR)/*.cpp)
OBJ := $(SRC:.cpp=.o)
LIB := ../DurkGame.a $(wildcard $(SDL2_LIB_DIR)/*.a)
LIB := ../DurkGame.lib $(wildcard $(SDL2_LIB_DIR)/*lib)

all: $(TARGET)

Expand Down
2 changes: 1 addition & 1 deletion example/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main() {
dk::init();
dk::RenderWindow window(WIN_SIZE, "Game");
dk::time::Clock clock;
dk::Font font(window, "assets/KdamThmorPro-Regular.ttf", 24);
dk::Font font(window, "assets/KdamThmorPro-Regular.ttf", 34);

// Create player
dk::Texture playerTexture(window, { 50, 50 }, { 255, 0, 0 });
Expand Down
2 changes: 1 addition & 1 deletion example/src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Player::Player(dk::RenderWindow& window, dk::Texture& texture)
void Player::process(double deltaTime) {
if (onGround) {
if (window.getKeysPressed()[DKK_space]) {
velocity.y = -GRAVITY / 2;
velocity.y = -400;
onGround = false;
}
} else {
Expand Down

0 comments on commit 0705d2d

Please sign in to comment.