rm push/pop
This commit is contained in:
@@ -19,10 +19,10 @@ var tilemap = {
|
||||
var y = pos.y - this.offset_y
|
||||
|
||||
while (length(this.tiles) <= x)
|
||||
push(this.tiles, [])
|
||||
this.tiles[] = []
|
||||
|
||||
while (length(this.tiles[x]) <= y)
|
||||
push(this.tiles[x], null)
|
||||
this.tiles[x][] = null
|
||||
|
||||
this.tiles[x][y] = image
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user