Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #A 300 seconds timed battle A-Engine pseudo code
- {mode_id=0}
- [init]
- #this is where variables are initiated and calls are done in the beginning of the match
- set_reg = $t$, 60 * FPS #time limit ($t$) is 60 seconds in this mode.
- [/init]
- [win_conditions]
- #if your HP is more than 0, and your team is the only one standing OR if time is up and you have highest HP
- (@team_hp@ > 0 && @teams_count@ == 1) || ($t$ == 0 && @team_hp@ == @highest_team_hp@)
- [/win_conditions]
- [lose_conditions]
- #if team with lowest HP has 0, they've lost OR if time is up, and your HP is not the highest
- @team_hp@ == 0 || ($t$ == 0 && @team_hp@ != @highest_team_hp@)
- [/lose_conditions]
- [draw_conditions]
- #if time is up and both teams have same HP
- $t$ == 0 && @highest_team_hp@ == @lowest_team_hp@
- [/draw_conditions]
- [main_loop]
- set_reg= $t$, $t$-1 #every frame subtract time by one (count down)
- [/main_loop]
- {/mode}
- #A squiddish match mode A-Engine pseudo code.
- {mode_id=1}
- default_bp= 0 #set all BP (bonus points; goals in this case, to 0).
- [init]
- #this is where variables are initiated and calls are done in the beginning of the match
- #opoint the ball in the middle of the stage. Since its the first object, it has onscreen_id: 0
- call_object[id=0 frame=0 x= y= z=]
- set_reg= $t$, 300 * FPS #time limit for the match is 5 minutes (300 secs)
- [/init]
- [win_conditions]
- #if time is up AND your goals are the highest
- $t$ == 0 && @team_bp@ == @highest_team_bp@
- [/win_conditions]
- [lose_conditions]
- #if time is up AND your goals are not the highest
- $t$ == 0 && @team_bp@ != @highest_team_bp@
- [/lose_conditions]
- [draw_conditions]
- #if time is up and both teams have same goals
- $t$ == 0 && @lowest_team_bp@ == @highest_team_bp@
- [/draw_conditions]
- [main_loop]
- set_reg= $t$, $t$-1 #every frame subtract time by one (count down)
- [/main_loop]
- {/mode_id}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement