Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xcuserdata/
*.xcscmblueprint
*.xccheckout
.vscode/

# Compiled Object files
*.slo
Expand Down Expand Up @@ -40,3 +41,6 @@ xcuserdata/
*.exe
*.out
*.app
build/


17 changes: 17 additions & 0 deletions 1 - Game Loop/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.16)

project(gameLoop_1)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)

set(APP_SOURCES
src/Main.cpp
src/Game.cpp
src/Window.cpp
)

add_executable(${PROJECT_NAME} ${APP_SOURCES})
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)
1 change: 0 additions & 1 deletion 1 - Game Loop/src/Game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <SFML/Graphics.hpp>

#include "WorkingDirectory.hpp"
#include "Window.hpp"
#include <iostream>

Expand Down
29 changes: 29 additions & 0 deletions 10 - Object Management/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 3.16)

project(objMgmt_10)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)

set(APP_SOURCES
src/Bitmask.cpp
src/C_KeyboardMovement.cpp
src/C_Sprite.cpp
src/C_Transform.cpp
src/Game.cpp
src/Input.cpp
src/Main.cpp
src/Object.cpp
src/ObjectCollection.cpp
src/SceneGame.cpp
src/SceneSplashScreen.cpp
src/SceneStateMachine.cpp
src/Window.cpp
src/WorkingDirectory.cpp
)

file(COPY resources DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_executable(${PROJECT_NAME} ${APP_SOURCES})
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)
1 change: 1 addition & 0 deletions 10 - Object Management/src/Object.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef Object_hpp
#define Object_hpp

#include <memory>
#include <vector>

#include "Window.hpp"
Expand Down
2 changes: 1 addition & 1 deletion 10 - Object Management/src/WorkingDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

WorkingDirectory::WorkingDirectory()
{
path = "./";
path = "./resources/";

#ifdef MACOS

Expand Down
31 changes: 31 additions & 0 deletions 11 - Animation Part 1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.16)

project(animationsP1_11)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)

set(APP_SOURCES
src/Animation.cpp
src/Bitmask.cpp
src/C_Animation.cpp
src/C_KeyboardMovement.cpp
src/C_Sprite.cpp
src/C_Transform.cpp
src/Game.cpp
src/Input.cpp
src/Main.cpp
src/Object.cpp
src/ObjectCollection.cpp
src/SceneGame.cpp
src/SceneSplashScreen.cpp
src/SceneStateMachine.cpp
src/Window.cpp
src/WorkingDirectory.cpp
)

file(COPY resources DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_executable(${PROJECT_NAME} ${APP_SOURCES})
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)
183 changes: 0 additions & 183 deletions 11 - Animation Part 1/resources/Viking.json

This file was deleted.

1 change: 1 addition & 0 deletions 11 - Animation Part 1/src/Object.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef Object_hpp
#define Object_hpp

#include <memory>
#include <vector>

#include "Window.hpp"
Expand Down
2 changes: 1 addition & 1 deletion 11 - Animation Part 1/src/WorkingDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

WorkingDirectory::WorkingDirectory()
{
path = "./";
path = "./resources/";

#ifdef MACOS

Expand Down
Binary file removed 11 - Animation Part 1/src/knight.png
Binary file not shown.
Binary file removed 11 - Animation Part 1/src/that_games_guy_logo.png
Binary file not shown.
Binary file removed 11 - Animation Part 1/src/viking.png
Binary file not shown.
31 changes: 31 additions & 0 deletions 12 - Animation Part 2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.16)

project(animationsP2_12)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)

set(APP_SOURCES
src/Animation.cpp
src/Bitmask.cpp
src/C_Animation.cpp
src/C_KeyboardMovement.cpp
src/C_Sprite.cpp
src/C_Transform.cpp
src/Game.cpp
src/Input.cpp
src/Main.cpp
src/Object.cpp
src/ObjectCollection.cpp
src/SceneGame.cpp
src/SceneSplashScreen.cpp
src/SceneStateMachine.cpp
src/Window.cpp
src/WorkingDirectory.cpp
)

file(COPY resources DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_executable(${PROJECT_NAME} ${APP_SOURCES})
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)
1 change: 1 addition & 0 deletions 12 - Animation Part 2/src/Object.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef Object_hpp
#define Object_hpp

#include <memory>
#include <vector>

#include "Window.hpp"
Expand Down
2 changes: 1 addition & 1 deletion 12 - Animation Part 2/src/WorkingDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

WorkingDirectory::WorkingDirectory()
{
path = "./";
path = "./resources/";

#ifdef MACOS

Expand Down
19 changes: 19 additions & 0 deletions 2 - First Draw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.16)

project(firstDraw_2)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)

set(APP_SOURCES
src/Main.cpp
src/Game.cpp
src/Window.cpp
src/WorkingDirectory.cpp
)

file(COPY resources DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_executable(${PROJECT_NAME} ${APP_SOURCES})
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)
2 changes: 1 addition & 1 deletion 2 - First Draw/src/WorkingDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

WorkingDirectory::WorkingDirectory()
{
path = "./";
path = "./resources/";

#ifdef MACOS

Expand Down
Loading