Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Which is the right opcode: win_game or end_game? The documentation talks about end_game, and Autocompletion proposes win_game.

win_game plays a little tune. end_game doesn't.

end_game asks if you want to do a restore. win_game doesn't.

Not for me, you don't! They work exactly the same way.

Really? I just tried it. Are you using 8-bit mode? Maybe that affects sounds.

There are some attributes related to this to enable and disable sound and also to test whether sound is on or off. I used these in 'Igor's Quest'.

Sure. I tried both modes again and got the same result.

start_at                 = my_location
locations {
   my_location : location "You are in a room." ;
}
on_command {
   : match "test -"  {
     : end_game ;
     # : win_game ;
   }
}
(1 edit)

In Adventuron

For games without jingles or rollback, all three options have the exact same function.

As far as adventuron is concerned,  end_game, and lose_game are the same (they will play the lose game "jingle" - when it is configured to be active), and offer a rollback option (if rollback is enabled). If rollback is rejected then it restarts the game.

win_game will play the win game "jingle" - when it is configured to be active, and will not offer a rollback option (the game is won).

end_game came first, and I really should have removed it. The problem is that the excalibur tutorial featured the command, so I use end_game as an alias for lose_game. 

In 8-Bit Compatibility Mode

As far as 8-bit compatibility goes, win_game, lose_game, and end_game are all the same (they generate an END opcode).