Skip to content
Snippets Groups Projects
Commit fca79572 authored by Le-Bao-Tin.Ha's avatar Le-Bao-Tin.Ha
Browse files

add ressource

parent 8fb776fc
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
No preview for this file type
No preview for this file type
"C:\Program Files\JetBrains\CLion 2020.2.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Git/mingw64/bin/make.exe" -DCMAKE_C_COMPILER=C:/TDM-GCC-64/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/TDM-GCC-64/bin/g++.exe -G "CodeBlocks - MinGW Makefiles" C:\Users\Tiny\Desktop\INSAGAME
-- The C compiler identification is GNU 9.2.0
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
-- Build files have been written to: C:/Users/Tiny/Desktop/INSAGAME/cmake-build-debug
No preview for this file type
File moved
File moved
File moved
hello.png

270 KiB

......@@ -18,7 +18,7 @@ int main(void)
return 1;
}
SDL_Window* win = SDL_CreateWindow("Hello, CS50!",
SDL_Window* win = SDL_CreateWindow("INSAGAME",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
WINDOW_WIDTH, WINDOW_HEIGHT,0);
......@@ -41,7 +41,7 @@ int main(void)
}
// load the background into memory using SDL_image library function
SDL_Surface* background = IMG_Load("map.png");
SDL_Surface* background = IMG_Load("ressource/map.png");
if (!background)
{
printf("error creating surface\n");
......@@ -62,7 +62,7 @@ int main(void)
SDL_Quit();
return 1;
}
SDL_Surface* man = IMG_Load("hello.png");
SDL_Surface* man = IMG_Load("ressource/man.png");
if (!man)
{
printf("error creating surface\n");
......
map.bmp

224 KiB

map.png

361 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment