mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
Move all init and config into GoRetro from GoEscape
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user