#include "sprite/sprite.hpp"
#include "sprite/sprite_manager.hpp"
#include "supertux/object_factory.hpp"
+#include "util/reader.hpp"
/* Trampoline will accelerate player to to VY_INITIAL, if
* he jumps on it to VY_MIN. */
const float VY_INITIAL = -500;
}
-Trampoline::Trampoline(const Reader& lisp)
- : Rock(lisp, "images/objects/trampoline/trampoline.sprite")
+Trampoline::Trampoline(const Reader& lisp) :
+ Rock(lisp, "images/objects/trampoline/trampoline.sprite"),
+ portable(true)
{
sound_manager->preload(TRAMPOLINE_SOUND);
- portable = true;
//Check if this trampoline is not portable
if(lisp.get("portable", portable)) {
if(!portable) {