Go to file
Vladislav Khorev 68b31cb197 merge
2025-03-01 20:14:56 +03:00
cmakeaudioplayer added sounds and music in main cpp by cliking wasd or arrow will play sound of steps and music in setup start playing 2025-03-01 18:20:50 +06:00
gl Upload to github 2021-06-30 20:31:14 +05:00
model Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
sounds added sounds and music in main cpp by cliking wasd or arrow will play sound of steps and music in setup start playing 2025-03-01 18:20:50 +06:00
ZeptoLabTestBin Switch to use SDL 2023-12-03 21:10:02 +03:00
.gitignore linuc 2025-03-01 11:44:31 +06:00
aaaa linuc 2025-03-01 11:44:31 +06:00
ActiveObject.h refacored some parts of main.sh 2025-03-01 20:53:11 +06:00
AnimatedModel.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
aoscreen01.bmp missing textures 2025-03-01 14:39:23 +03:00
background.bmp Reduce size of bundle 2023-12-03 22:29:29 +03:00
bird.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
BoneAnimatedModel.cpp Fixing animation bugs 2025-03-01 19:44:15 +03:00
BoneAnimatedModel.h Fixing animation bugs 2025-03-01 19:44:15 +03:00
book03.bmp Adding active objects 2025-03-01 14:09:28 +03:00
book001.txt Adding active objects 2025-03-01 14:09:28 +03:00
chair_01_Base_Color.png Adding models 2025-02-22 22:03:29 +03:00
chair_01.obj Adding models 2025-02-22 22:03:29 +03:00
cone001.txt Working with scene and projection 2025-03-01 13:13:58 +03:00
conus.bmp Working with scene and projection 2025-03-01 13:13:58 +03:00
default.fragment linuc 2025-03-01 11:44:31 +06:00
default.vertex linuc 2025-03-01 11:44:31 +06:00
defaultColor.fragment linuc 2025-03-01 11:44:31 +06:00
defaultColor.vertex Added color cube rotating in 3d 2025-02-22 20:58:34 +03:00
Environment.cpp refacored some parts of main.cpp 2025-03-01 21:13:53 +06:00
Environment.h refacored some parts of main.cpp 2025-03-01 21:13:53 +06:00
game_over.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
Game.cpp merge 2025-03-01 20:14:56 +03:00
Game.h merge 2025-03-01 20:14:56 +03:00
GameObjectManager.cpp added mouse handling 2025-03-01 22:14:33 +06:00
GameObjectManager.h merge 2025-03-01 20:14:56 +03:00
GameWorld.cpp starting refactoring main.cpp 2025-03-01 19:18:42 +06:00
GameWorld.h merge 2025-03-01 20:14:56 +03:00
InputManager.cpp starting refactoring main.cpp 2025-03-01 19:18:42 +06:00
InputManager.h merge 2025-03-01 20:14:56 +03:00
Inventory.cpp added inventory logic 2025-03-01 17:08:49 +06:00
Inventory.h added inventory logic 2025-03-01 17:08:49 +06:00
jumpingbird.data Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.html Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.js Reduce size of bundle 2023-12-03 22:29:29 +03:00
jumpingbird.wasm Fixing bug 2023-12-03 22:39:08 +03:00
Kitchen_ceramics.bmp Working on model 2025-03-01 11:45:16 +03:00
main.cpp Fixing animation bugs 2025-03-01 19:44:15 +03:00
Math.cpp Fixing animation bugs 2025-03-01 19:44:15 +03:00
Math.h Fixing animation bugs 2025-03-01 19:44:15 +03:00
md3test.cpp Finally animation works 2025-03-01 01:39:19 +03:00
md3test.h Loading MD3 and now we need to place models properly 2025-02-23 21:24:15 +03:00
mesh001.txt Working on model 2025-03-01 11:45:16 +03:00
mesh_armature_and_animation_data02.txt added meshes with skeleton 2025-03-01 07:52:56 +03:00
mesh_armature_and_animation_data.txt added meshes with skeleton 2025-03-01 07:52:56 +03:00
ObjLoader.cpp linuc 2025-03-01 11:44:31 +06:00
ObjLoader.h Working with obj model format 2025-02-22 21:35:08 +03:00
OpenGlExtensions.cpp SDL compiling for Emscripten 2023-12-03 21:36:04 +03:00
OpenGlExtensions.h linux part 2025-03-01 11:12:22 +06:00
Physics.cpp linux part 2025-03-01 11:12:22 +06:00
Physics.h Upload to github 2021-06-30 20:31:14 +05:00
pipe.bmp32 Reduce size of bundle 2023-12-03 22:29:29 +03:00
Readme.md added sounds by clicking on button and changed script to compile 2025-03-01 18:01:24 +06:00
Renderer.cpp Adding active objects 2025-03-01 14:09:28 +03:00
Renderer.h Adding active objects 2025-03-01 14:09:28 +03:00
RenderSystem.cpp added mouse handling 2025-03-01 22:14:33 +06:00
RenderSystem.h added mouse handling 2025-03-01 22:14:33 +06:00
ShaderManager.cpp linuc 2025-03-01 11:44:31 +06:00
ShaderManager.h Switch to use SDL 2023-12-03 21:10:02 +03:00
start.sh refacored some parts of main.cpp 2025-03-01 21:33:34 +06:00
TextModel.cpp Working with scene and projection 2025-03-01 13:13:58 +03:00
TextModel.h Working on model 2025-03-01 11:45:16 +03:00
TextureManager.cpp Finally animation works 2025-03-01 01:39:19 +03:00
TextureManager.h Finally animation works 2025-03-01 01:39:19 +03:00
Utils.cpp linux part 2025-03-01 11:12:22 +06:00
Utils.h linux part 2025-03-01 11:12:22 +06:00
via004.txt Fixing animation bugs 2025-03-01 19:44:15 +03:00
ZeptoLabTest1.sln Upload to github 2021-06-30 20:31:14 +05:00
ZeptoLabTest1.vcxproj merge 2025-03-01 20:14:56 +03:00
ZeptoLabTest1.vcxproj.filters merge 2025-03-01 20:14:56 +03:00
ZeptoLabTest1.zip Upload to github 2021-06-30 20:31:14 +05:00

Script to run:

C:\Work\Projects\emsdk\emsdk.bat activate latest
C:\Work\Projects\emsdk\emsdk_env.bat
emcc main.cpp Game.cpp Math.cpp Physics.cpp Renderer.cpp ShaderManager.cpp TextureManager.cpp Utils.cpp OpenGlExtensions.cpp -O2 -std=c++14 -sTOTAL_MEMORY=33554432 -sUSE_SDL_IMAGE=2 -sSDL2_IMAGE_FORMATS="[""png""]" -sUSE_SDL=2 --preload-file background.bmp --preload-file bird.bmp32 --preload-file default.fragment --preload-file default.vertex --preload-file game_over.bmp32 --preload-file pipe.bmp32 -o jumpingbird.html


zlib-1.3.1:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=install ..

then run ALL_BUILD and INSTALL in Visual Studio

lpng1645:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=install -DZLIB_ROOT=C:\Work\Projects\zlib-1.3.1\build\install ..

then run ALL_BUILD and INSTALL in Visual Studio


https://github.com/Bly7/OBJ-Loader/blob/master/Source/OBJ_Loader.h

https://github.com/gametutorials/tutorials/blob/master/OpenGL/MD3%20Animation/Main.cpp

linux:

g++ Game.cpp main.cpp Math.cpp OpenGlExtensions.cpp Physics.cpp Renderer.cpp ShaderManager.cpp TextureManager.cpp Utils.cpp BoneAnimatedModel.cpp ObjLoader.cpp cmakeaudioplayer/src/AudioPlayer.cpp TextModel.cpp Inventory.cpp -o sdl_app -O2 -std=c++17 \
-I cmakeaudioplayer/include \
$(pkg-config --cflags --libs sdl2 gl) \
$(pkg-config --cflags --libs vorbis vorbisfile ogg) \
-lopenal