git.shiar.nl
/
wormy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d0ecc41
)
parse-wormedit: show amount of bouncing balls
author
Mischa Poslawsky
<wormy@shiar.org>
Wed, 25 Feb 2009 18:05:49 +0000
(19:05 +0100)
committer
Mischa Poslawsky
<wormy@shiar.org>
Mon, 2 Mar 2009 21:42:35 +0000
(22:42 +0100)
parse-wormedit
patch
|
blob
|
history
diff --git
a/parse-wormedit
b/parse-wormedit
index 607231cfa6bcffcf39adf9336ce34e1935d47103..8c441a4bdb2fe459f468e0a209614d98b3cdb1d8 100755
(executable)
--- a/
parse-wormedit
+++ b/
parse-wormedit
@@
-377,6
+377,9
@@
else {
$level->{sprite} && @{$level->{sprite}} && sprintf('sprite %d',
scalar @{$level->{sprite}},
),
$level->{sprite} && @{$level->{sprite}} && sprintf('sprite %d',
scalar @{$level->{sprite}},
),
+ $level->{balls} && @{$level->{balls}} && sprintf('%d bounc%s',
+ scalar @{$level->{balls}}, @{$level->{balls}} == 1 ? 'y' : 'ies',
+ ),
),
);
}
),
);
}