mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
Move all engine stuff to GoRetro. Still many interactions between game and engine code that there should not be.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package GoRetro
|
||||
|
||||
func absInt(x int) int {
|
||||
return absDiffInt(x, 0)
|
||||
}
|
||||
|
||||
func absDiffInt(x, y int) int {
|
||||
if x < y {
|
||||
return y - x
|
||||
}
|
||||
return x - y
|
||||
}
|
||||
Reference in New Issue
Block a user