mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 08:36:14 +00:00
Enemy spawners
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user