trying to build it as runnning it doesnt work.
I get this on the final build:
Any chance we could get a makefile for linux, or even better codeblocks project
Whoops, I forgot to mention that the Linux binary is 64bit (I assume that's the issue, or maybe I forgot to package a shared object!)
This
Makfile should work.
CXX := g++
Divided: TinyXML AnimateSprite.o helper.o Assets
$(CXX) -o Divided main.cpp tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o AnimateSprite.o helper.o sfx_jump_ogg.o Door.cpp Player.cpp PlayerW.cpp SplashScreenWorld.cpp SettingsPanel.cpp MainMenuWorld.cpp LevelWorld.cpp EndingWorld.cpp CreditsWorld.cpp TextOverlay.cpp Spike.cpp Lever.cpp Block.cpp MovingBlock.cpp FallingBlock.cpp -lsfml-window -lsfml-graphics -lsfml-audio -lsfml-system
TinyXML: obj/xml/tinystr.cpp obj/xml/tinyxml.cpp obj/xml/tinyxmlerror.cpp obj/xml/tinyxmlparser.cpp
$(CXX) -o tinystr.o -c obj/xml/tinystr.cpp
$(CXX) -o tinyxml.o -c obj/xml/tinyxml.cpp
$(CXX) -o tinyxmlerror.o -c obj/xml/tinyxmlerror.cpp
$(CXX) -o tinyxmlparser.o -c obj/xml/tinyxmlparser.cpp
AnimateSprite.o: AnimateSprite.cpp
$(CXX) -o AnimateSprite.o -c AnimateSprite.cpp
helper.o: helper.cpp
$(CXX) -o helper.o -c helper.cpp
Assets: obj/sfx_jump_ogg.cpp
$(CXX) -o sfx_jump_ogg.o -c obj/sfx_jump_ogg.cpp
Did you do fps-lock?
the game is about 50-70 precent CPU!!
Cool game.
Thanks!
I didn't implement an FPS lock, I'm not entirely sure of a reasonable famerate to cap to. I assume 60 is good, but I'm not entirely sure.
What do you guys like to limit your framerate to?