Hey everyone, I was looking for a way to jump on, and off objects via 2D Camera, and I see Tap To Jump has some features like this. As I added the game to the example folder using notepad++ (raylib preconfig), im getting errors when I try to compile and run the game. Here's the github source
https://github.com/MarcMDE/TapToJump/The errors I get are below::
gcc -o advance_game.exe advance_game.c -s C:\raylib\raylib\raylib_icon -Iexternal -lraylib -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm -std=c99 -Wl,-allow-multiple-definition -Wl,--subsystem,windows
Process started >>>
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x76): undefined reference to `InitGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0xb0): undefined reference to `UpdateLogoScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0xb5): undefined reference to `FinishLogoScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0xd3): undefined reference to `UpdateTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0xd8): undefined reference to `FinishTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0xf0): undefined reference to `FinishTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x108): undefined reference to `UpdateOptionsScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x10d): undefined reference to `FinishOptionsScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x124): undefined reference to `UpdateGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x129): undefined reference to `FinishGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x140): undefined reference to `UpdateEndingScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x145): undefined reference to `FinishEndingScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x1ab): undefined reference to `DrawLogoScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x1b2): undefined reference to `DrawTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x1b9): undefined reference to `DrawOptionsScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x1c0): undefined reference to `DrawGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x1c7): undefined reference to `DrawEndingScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x28f): undefined reference to `UnloadLogoScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x296): undefined reference to `UnloadTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x29d): undefined reference to `UnloadOptionsScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2a4): undefined reference to `UnloadGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2ab): undefined reference to `UnloadEndingScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2c6): undefined reference to `InitLogoScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2d7): undefined reference to `InitTitleScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2e8): undefined reference to `InitOptionsScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x2f9): undefined reference to `InitGameplayScreen'
AppData\Local\Temp\ccKMFfeC.o:advance_game.c:(.text+0x30a): undefined reference to `InitEndingScreen'
Comments
Just notice that TapToJump is a bit old game and could not be updated, so maybe it doesn't compile correctly on current version.
Here a couple of references that can be useful:
https://www.polygon.com/features/2014/1/20/5227582/the-rise-of-the-jump
https://www.gamasutra.com/blogs/YoannPignole/20140103/207987/Platformer_controls_how_to_avoid_limpness_and_rigidity_feelings.php
https://www.gamasutra.com/blogs/MohanRajagopalan/20140813/223251/Designing_a_2D_Jump.php
Also let you know about physac, a 2D physics library for raylib, one of the provided examples it's a platformer with jumps.