--- /dev/null
+(supertux-level
+ (version 2)
+ (name (_ "Flying Platform Test"))
+ (author "Marek Moeckel")
+ (sector
+ (name "main")
+ (ambient-light 1 1 1)
+ (background
+ (speed 0.5)
+ (image "images/background/arctis.jpg")
+ )
+ (camera
+ (mode "normal")
+ )
+ (rock
+ (x 34)
+ (y 500)
+ )
+ (bicycle-platform
+ (sprite "images/objects/platforms/small.sprite")
+ (x 320)
+ (y 640)
+ )
+ (spawnpoint
+ (name "main")
+ (x 90)
+ (y 500)
+ )
+ (tilemap
+ (z-pos -100)
+ (solid #f)
+ (width 30)
+ (height 30)
+ (tiles
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0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(name (_ "Flying Platform Test"))
+ (author "Marek Moeckel")
+ (sector
+ (name "main")
+ (ambient-light 1 1 1)
+ (background
+ (speed 0.5)
+ (image "images/background/arctis.jpg")
+ )
+ (camera
+ (mode "normal")
+ )
+ (rock
+ (x 90)
+ (y 500)
+ )
+ (pneumatic-platform
+ (sprite "images/objects/platforms/small.sprite")
+ (x 162)
+ (y 640)
+ )
+ (pneumatic-platform
+ (sprite "images/objects/platforms/small.sprite")
+ (x 418)
+ (y 640)
+ )
+ (pneumatic-platform
+ (sprite "images/objects/platforms/small.sprite")
+ (x 290)
+ (y 640)
+ )
+ (spawnpoint
+ (name "main")
+ (x 128)
+ (y 500)
+ )
+ (tilemap
+ (z-pos -100)
+ (solid #f)
+ (width 30)
+ (height 30)
+ (tiles
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ )
+ )
+ )
+)
--- /dev/null
+// $Id$
+//
+// SuperTux - BicyclePlatform
+// Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include <config.h>
+
+#include "bicycle_platform.hpp"
+
+#include <math.h>
+#include <stdexcept>
+#include "log.hpp"
+#include "video/drawing_context.hpp"
+#include "resources.hpp"
+#include "player.hpp"
+#include "path.hpp"
+#include "path_walker.hpp"
+#include "sprite/sprite.hpp"
+#include "lisp/lisp.hpp"
+#include "object_factory.hpp"
+#include "sector.hpp"
+#include "object/portable.hpp"
+
+BicyclePlatform::BicyclePlatform(const lisp::Lisp& reader)
+ : MovingSprite(reader, LAYER_OBJECTS, COLGROUP_STATIC),
+ master(0), slave(0), radius(128), angle(0), angular_speed(0), momentum(0)
+{
+ center = get_pos();
+}
+
+BicyclePlatform::BicyclePlatform(BicyclePlatform* master)
+ : MovingSprite(*master),
+ master(master), slave(this), center(master->center), radius(master->radius), angle(master->angle + M_PI), angular_speed(0), momentum(0)
+{
+ set_pos(get_pos() + Vector(master->get_bbox().get_width(), 0));
+ master->master = master;
+ master->slave = this;
+}
+
+BicyclePlatform::~BicyclePlatform() {
+ if ((this == master) && (master)) {
+ slave->master = 0;
+ slave->slave = 0;
+ }
+ if ((master) && (this == slave)) {
+ master->master = 0;
+ master->slave = 0;
+ }
+ master = 0;
+ slave = 0;
+}
+
+HitResponse
+BicyclePlatform::collision(GameObject& other, const CollisionHit& )
+{
+
+ // somehow the hit parameter does not get filled in, so to determine (hit.top == true) we do this:
+ MovingObject* mo = dynamic_cast<MovingObject*>(&other);
+ if (!mo) return FORCE_MOVE;
+ if ((mo->get_bbox().p2.y) > (get_bbox().p1.y + 2)) return FORCE_MOVE;
+
+ Player* pl = dynamic_cast<Player*>(mo);
+ if (pl) {
+ if (pl->is_big()) momentum += 1;
+ Portable* po = pl->get_grabbed_object();
+ MovingObject* pomo = dynamic_cast<MovingObject*>(po);
+ if (contacts.insert(pomo).second) momentum += 1;
+ }
+
+ if (contacts.insert(&other).second) momentum += 1;
+ return FORCE_MOVE;
+}
+
+void
+BicyclePlatform::update(float elapsed_time)
+{
+ if (!slave) {
+ Sector::current()->add_object(new BicyclePlatform(this));
+ return;
+ }
+ if (!master) {
+ return;
+ }
+ if (this == slave) {
+ angle = master->angle + M_PI;
+ while (angle < 0) { angle += 2*M_PI; }
+ while (angle > 2*M_PI) { angle -= 2*M_PI; }
+ Vector dest = center + Vector(cosf(angle), sinf(angle)) * radius - (bbox.get_size() * 0.5);
+ movement = dest - get_pos();
+ }
+ if (this == master) {
+ float momentum_diff = momentum - slave->momentum;
+ contacts.clear(); momentum = 0;
+ slave->contacts.clear(); slave->momentum = 0;
+
+ float angular_momentum = cosf(angle) * momentum_diff;
+
+ angular_speed += (angular_momentum * elapsed_time) * M_PI;
+ angular_speed *= 1 - elapsed_time * 0.2;
+ angle += angular_speed * elapsed_time;
+ while (angle < 0) { angle += 2*M_PI; }
+ while (angle > 2*M_PI) { angle -= 2*M_PI; }
+ angular_speed = std::min(std::max(angular_speed, static_cast<float>(-128*M_PI*elapsed_time)), static_cast<float>(128*M_PI*elapsed_time));
+ Vector dest = center + Vector(cosf(angle), sinf(angle)) * radius - (bbox.get_size() * 0.5);
+ movement = dest - get_pos();
+
+ center += Vector(angular_speed, 0) * elapsed_time * 32;
+ slave->center += Vector(angular_speed, 0) * elapsed_time * 32;
+
+ }
+}
+
+IMPLEMENT_FACTORY(BicyclePlatform, "bicycle-platform");
+
--- /dev/null
+// $Id$
+//
+// SuperTux - BicyclePlatform
+// Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef __BICYCLE_PLATFORM_H__
+#define __BICYCLE_PLATFORM_H__
+
+#include <memory>
+#include <string>
+#include <set>
+#include "object/moving_sprite.hpp"
+#include "object/path.hpp"
+#include "object/path_walker.hpp"
+
+/**
+ * Used to construct a pair of bicycle platforms: If one is pushed down, the other one rises
+ */
+class BicyclePlatform : public MovingSprite
+{
+public:
+ BicyclePlatform(const lisp::Lisp& reader);
+ BicyclePlatform(BicyclePlatform* master);
+ virtual ~BicyclePlatform();
+
+ virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
+ virtual void update(float elapsed_time);
+
+protected:
+ BicyclePlatform* master; /**< pointer to BicyclePlatform that does movement calculation */
+ BicyclePlatform* slave; /**< pointer to BicyclePlatform that reacts to master platform's movement calculation */
+ Vector center; /**< pivot point */
+ float radius; /**< radius of circle */
+ float angle; /**< current angle */
+ float angular_speed; /**< angular speed in rad per second */
+ std::set<GameObject*> contacts; /**< objects that are currently pushing on the platform */
+ float momentum; /** angular momentum in rad per second per second*/
+
+};
+
+#endif
--- /dev/null
+// $Id$
+//
+// SuperTux - PneumaticPlatform
+// Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include <config.h>
+
+#include "pneumatic_platform.hpp"
+
+#include <stdexcept>
+#include "log.hpp"
+#include "video/drawing_context.hpp"
+#include "resources.hpp"
+#include "player.hpp"
+#include "path.hpp"
+#include "path_walker.hpp"
+#include "sprite/sprite.hpp"
+#include "lisp/lisp.hpp"
+#include "object_factory.hpp"
+#include "sector.hpp"
+#include "object/portable.hpp"
+
+PneumaticPlatform::PneumaticPlatform(const lisp::Lisp& reader)
+ : MovingSprite(reader, LAYER_OBJECTS, COLGROUP_STATIC),
+ master(0), slave(0), start_y(0), offset_y(0), speed_y(0)
+{
+ start_y = get_pos().y;
+}
+
+PneumaticPlatform::PneumaticPlatform(PneumaticPlatform* master)
+ : MovingSprite(*master),
+ master(master), slave(this), start_y(master->start_y), offset_y(-master->offset_y), speed_y(0)
+{
+ set_pos(get_pos() + Vector(master->get_bbox().get_width(), 0));
+ master->master = master;
+ master->slave = this;
+}
+
+PneumaticPlatform::~PneumaticPlatform() {
+ if ((this == master) && (master)) {
+ slave->master = 0;
+ slave->slave = 0;
+ }
+ if ((master) && (this == slave)) {
+ master->master = 0;
+ master->slave = 0;
+ }
+ master = 0;
+ slave = 0;
+}
+
+HitResponse
+PneumaticPlatform::collision(GameObject& other, const CollisionHit& )
+{
+
+ // somehow the hit parameter does not get filled in, so to determine (hit.top == true) we do this:
+ MovingObject* mo = dynamic_cast<MovingObject*>(&other);
+ if (!mo) return FORCE_MOVE;
+ if ((mo->get_bbox().p2.y) > (get_bbox().p1.y + 2)) return FORCE_MOVE;
+
+ Player* pl = dynamic_cast<Player*>(mo);
+ if (pl) {
+ if (pl->is_big()) contacts.insert(0);
+ Portable* po = pl->get_grabbed_object();
+ MovingObject* pomo = dynamic_cast<MovingObject*>(po);
+ if (pomo) contacts.insert(pomo);
+ }
+
+ contacts.insert(&other);
+ return FORCE_MOVE;
+}
+
+void
+PneumaticPlatform::update(float elapsed_time)
+{
+ if (!slave) {
+ Sector::current()->add_object(new PneumaticPlatform(this));
+ return;
+ }
+ if (!master) {
+ return;
+ }
+ if (this == slave) {
+ offset_y = -master->offset_y;
+ movement = Vector(0, (start_y + offset_y) - get_pos().y);
+ }
+ if (this == master) {
+ int contact_diff = contacts.size() - slave->contacts.size();
+ contacts.clear();
+ slave->contacts.clear();
+
+ speed_y += ((float)contact_diff * elapsed_time) * 128.0f;
+ speed_y -= (offset_y * elapsed_time * 0.5f);
+ speed_y *= 1 - elapsed_time;
+ offset_y += speed_y * elapsed_time;
+ if (offset_y < -256) { offset_y = -256; speed_y = 0; }
+ if (offset_y > 256) { offset_y = 256; speed_y = -0; }
+ movement = Vector(0, (start_y + offset_y) - get_pos().y);
+ }
+}
+
+IMPLEMENT_FACTORY(PneumaticPlatform, "pneumatic-platform");
+
--- /dev/null
+// $Id$
+//
+// SuperTux - PneumaticPlatform
+// Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef __PNEUMATIC_PLATFORM_H__
+#define __PNEUMATIC_PLATFORM_H__
+
+#include <memory>
+#include <string>
+#include <set>
+#include "object/moving_sprite.hpp"
+#include "object/path.hpp"
+#include "object/path_walker.hpp"
+
+/**
+ * Used to construct a pair of pneumatic platforms: If one is pushed down, the other one rises
+ */
+class PneumaticPlatform : public MovingSprite
+{
+public:
+ PneumaticPlatform(const lisp::Lisp& reader);
+ PneumaticPlatform(PneumaticPlatform* master);
+ virtual ~PneumaticPlatform();
+
+ virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
+ virtual void update(float elapsed_time);
+
+protected:
+ PneumaticPlatform* master; /**< pointer to PneumaticPlatform that does movement calculation */
+ PneumaticPlatform* slave; /**< pointer to PneumaticPlatform that reacts to master platform's movement calculation */
+ float start_y; /**< vertical start position */
+ float offset_y; /**< vertical offset from the start position in px */
+ float speed_y; /**< vertical speed */
+ std::set<GameObject*> contacts; /**< objects that are currently pushing on the platform */
+
+};
+
+#endif