-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPowerSneks.ps1
36 lines (36 loc) · 1.52 KB
/
PowerSneks.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<#
|===============================================================>|
AP-Snakes 2 [PowerSneks] by APoorv Verma [AP] on 10/25/2019
|===============================================================>|
$) Color Scheming 1
$) Level Making 0 * 2
$) MAP Saving and Loading 3
$) Obstruction Creation
$) Laser Beams To cut through walls
$) Warping of Obstructions and Snake
$) Game-Console with Laser and Score count
$) CPU cycle and sleep time adjustment as game progresses
$) Snake Grows upon eating food
$) Restore Console Properties upon Close
$) OO Design
$) Multiobject support / Multiplayer!
|===============================================================>|
#>
param(
[int]$Snakes=1,
[int]$Bots=0,
[ValidatePattern("[A-z]?:?.?\\.*\..*|\/\*\\")][String]$MapFile='/*\',
[Switch]$LoadDefaultSave,
[Switch]$Debug,
[Switch]$ShowPlayerLabels
)
function bool($a) {if($a){"`$true"}else{"`$false"}}
if ($args[0] -ne "in-frame") {
return powershell -ep bypass -noprofile $PSCommandPath "-Snakes:$Snakes -Bots:$Bots -MapFile:$MapFile -LoadDefaultSave:$(bool($LoadDefaultSave)) -Debug:$(bool($Debug)) -ShowPlayerLabels:$(bool($ShowPlayerLabels)) 'in-frame'"
}
. $PSScriptRoot\PowerSneks_BaseObjects.ps1
. $PSScriptRoot\PowerSneks_GameSettings.ps1
. $PSScriptRoot\PowerSneks_Engine.ps1
. $PSScriptRoot\BotClass.ps1
#= RUNTIME ====================================================================================|
Start-Game