(action
(name "right")
(fps 4.0)
- (x-offset 0)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
(images "y1.png"
"y2.png"
"y3.png"
(name "left")
(mirror-action "right")
(fps 4.0)
- (x-offset 0)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "jump-right")
(images "y-jump.png")
- (x-offset -40)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "jump-left")
(mirror-action "jump-right")
- (x-offset 40)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "stand-right")
(images "y.png")
- (x-offset -40)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "stand-left")
(mirror-action "stand-right")
- (x-offset 40)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "roar")
(images "y-jump2.png")
- (x-offset 10)
- (y-offset -15)
+ (x-offset 17)
+ (y-offset 12)
)
(action
(name "dead")
- (images "iceyeti_flip0.png"
- "iceyeti_flip1.png"
- "iceyeti_flip2.png"
- "iceyeti_flip3.png"
- "iceyeti_flip0.png"
- "iceyeti_flip1.png"
- "iceyeti_flip2.png"
- "iceyeti_flip3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png"
- "iceyeti_dust0.png"
- "iceyeti_dust1.png"
- "iceyeti_dust2.png"
- "iceyeti_dust3.png")
+ (images "iceyeti_dust0.png"
+"iceyeti_dust0.png"
+"iceyeti_dust0.png"
+"iceyeti_dust0.png"
+"iceyeti_dust1.png"
+"iceyeti_dust1.png"
+"iceyeti_dust1.png"
+"iceyeti_dust1.png"
+"iceyeti_dust2.png"
+"iceyeti_dust2.png"
+"iceyeti_dust2.png"
+"iceyeti_dust2.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png"
+"iceyeti_dust3.png")
+(x-offset 0)
+(y-offset 27)
)
)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+ 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
+ 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
+ 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
8 8 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 8 8
14 14 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13 14 14
11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11
// $Id$
-//
+//
// SuperTux
-// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
+// Copyright (C) 2005 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// 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.
-
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+// 02111-1307, USA.
#include <config.h>
#include <float.h>
{
reader.get("x", start_position.x);
reader.get("y", start_position.y);
- bbox.set_size(90, 106);
+ bbox.set_size(60, 90);
sprite = sprite_manager->create("images/creatures/yeti/yeti.sprite");
sprite->set_action("right");
state = INIT;
}
-static int flip_wrapper(HSQUIRRELVM vm)
-{
- (void) vm;
-
- try {
- Scripting::flip();
-
- return 0;
-
- } catch(std::exception& e) {
- sq_throwerror(vm, e.what());
- return SQ_ERROR;
- } catch(...) {
- sq_throwerror(vm, _SC("Unexpected exception while executing function 'flip'"));
- return SQ_ERROR;
- }
-
-}
-
-static int finish_wrapper(HSQUIRRELVM vm)
-{
- (void) vm;
-
- try {
- Scripting::finish();
-
- return 0;
-
- } catch(std::exception& e) {
- sq_throwerror(vm, e.what());
- return SQ_ERROR;
- } catch(...) {
- sq_throwerror(vm, _SC("Unexpected exception while executing function 'finish'"));
- return SQ_ERROR;
- }
-
-}
-
static int camera_wrapper(HSQUIRRELVM vm)
{
(void) vm;
throw SquirrelError(v, "Couldn't register function 'gotoend'");
}
- sq_pushstring(v, "flip", -1);
- sq_newclosure(v, &flip_wrapper, 0);
- if(SQ_FAILED(sq_createslot(v, -3))) {
- throw SquirrelError(v, "Couldn't register function 'flip'");
- }
-
- sq_pushstring(v, "finish", -1);
- sq_newclosure(v, &finish_wrapper, 0);
- if(SQ_FAILED(sq_createslot(v, -3))) {
- throw SquirrelError(v, "Couldn't register function 'finish'");
- }
-
sq_pushstring(v, "camera", -1);
sq_newclosure(v, &camera_wrapper, 0);
if(SQ_FAILED(sq_createslot(v, -3))) {