there is a capx on the rar folder o.o you can download it .
when you preview the capx you can enter a level and you can see 3 stars if you click on anyone you will get (1 stars [global variable]) and when you click win that mean you won and when you click finish level this mean you lose in that level.. hope you understood it ^^
so if you wanna make a game change the way to get stars like if player kill 3 enemy add 1 to stars and so on... and you can change the win by changing the condition when mouse clicked on win button to for example player collision to door and so on...