Move all init and config into GoRetro from GoEscape

This commit is contained in:
stevenhowes
2022-01-03 22:49:35 +00:00
parent 4d1ab58ca4
commit 45c553150c
6 changed files with 129 additions and 17 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ func (bounder *bounderScreen) onUpdate() error {
// If the position is outside the screen bounds then set it as inactive
// and mark for deletion
if b.Position.X > ScreenWidth || b.Position.X < 0 ||
b.Position.Y > ScreenHeight || b.Position.Y < 0 {
if b.Position.X > float64(Config.ScreenWidth) || b.Position.X < 0 ||
b.Position.Y > float64(Config.ScreenHeight) || b.Position.Y < 0 {
b.Active = false
b.Delete = true
}