forked from github/game-off-2013
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new characters sprite, dead zombie animation
- Loading branch information
Krzysztof Urbas
committed
Nov 30, 2013
1 parent
38f611d
commit e0e25d3
Showing
11 changed files
with
138 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Q = Game.Q | ||
|
||
# animations object | ||
Q.animations "deadZombie", | ||
intro: | ||
frames: [16, 17, 18, 19, 20, 21] | ||
rate: 0.6 | ||
next: "stand" | ||
stand: | ||
frames: [21] | ||
rate: 1 | ||
|
||
# human object and logic | ||
Q.Sprite.extend "DeadZombie", | ||
init: (p) -> | ||
@_super p, | ||
x: 0 | ||
y: 0 | ||
vx: 0 | ||
z: 18 | ||
sheet: "zombie" | ||
sprite: "deadZombie" | ||
type: Game.SPRITE_NONE | ||
collisionMask: Game.SPRITE_TILES | ||
|
||
@add "2d, animation" | ||
|
||
# animations | ||
@play "intro" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters