Enemy spawners

This commit is contained in:
Martin
2022-12-05 12:19:46 +01:00
parent 772a5cc7e0
commit 8aa7ee6f2e
12 changed files with 104 additions and 28 deletions

View File

@@ -1,3 +1,7 @@
export function roundToOneDecimal(num: number): number {
return Math.round(num * 10) / 10;
}
export function randomPositiveOrNegative(): number {
return Math.random() < 0.5 ? 1 : -1;
}