projects
/
fishladder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cd0365
)
add two more achievment triggers
author
hgn
<hgodden00@gmail.com>
Fri, 3 Dec 2021 20:43:21 +0000
(20:43 +0000)
committer
hgn
<hgodden00@gmail.com>
Fri, 3 Dec 2021 20:43:21 +0000
(20:43 +0000)
fishladder.c
patch
|
blob
|
history
diff --git
a/fishladder.c
b/fishladder.c
index 03d391de1838959d6436db660cc6801622c6c30b..1f9db88f07d4fe952231bcea148551cfbe48dfc8 100644
(file)
--- a/
fishladder.c
+++ b/
fishladder.c
@@
-1601,9
+1601,11
@@
void vg_update(void)
(fj_prev[0] == fi->pos[0]) &&
(fj_prev[1] == fi->pos[1])
)? 1: 0;
-
+
if( collide_next_frame || collide_this_frame )
{
+ sw_set_achievement( "BANG" );
+
// Shatter death (+0.5s)
float death_time = collide_this_frame? 0.0f: 0.5f;
@@
-1718,6
+1720,9
@@
void vg_update(void)
}
else
{
+ if( world.sim_run > 0 )
+ sw_set_achievement( "GOOD_ENOUGH" );
+
vg_error( "Level failed :(\n" );
}