projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Russian translation update from Constantin Baranov... from December.
[supertux.git]
/
src
/
badguy
/
spiky.cpp
diff --git
a/src/badguy/spiky.cpp
b/src/badguy/spiky.cpp
index
f2b42ac
..
d27cdfa
100644
(file)
--- a/
src/badguy/spiky.cpp
+++ b/
src/badguy/spiky.cpp
@@
-22,7
+22,7
@@
#include "spiky.hpp"
Spiky::Spiky(const lisp::Lisp& reader)
#include "spiky.hpp"
Spiky::Spiky(const lisp::Lisp& reader)
- : WalkingBadguy(reader, "images/creatures/spiky/spiky.sprite", "left", "right")
+
: WalkingBadguy(reader, "images/creatures/spiky/spiky.sprite", "left", "right")
{
walk_speed = 80;
max_drop_height = 600;
{
walk_speed = 80;
max_drop_height = 600;
@@
-36,4
+36,17
@@
Spiky::write(lisp::Writer& writer)
writer.end_list("spiky");
}
writer.end_list("spiky");
}
+void
+Spiky::freeze()
+{
+ WalkingBadguy::freeze();
+ sprite->set_action(dir == LEFT ? "iced-left" : "iced-right");
+}
+
+bool
+Spiky::is_freezable() const
+{
+ return true;
+}
+
IMPLEMENT_FACTORY(Spiky, "spiky")
IMPLEMENT_FACTORY(Spiky, "spiky")