         Thang.orders[spriteName] = array
     else
       array = []
+    array
+
   @nextID: (spriteName) ->
     Thang.lastIDNums ?= {}
     names = thangNames[spriteName]

      Thang.lastIDNums[spriteName] = if Thang.lastIDNums[spriteName]? then Thang.lastIDNums[spriteName] + 1 else 0
      id = spriteName + (Thang.lastIDNums[spriteName] or '')
    id
  @resetThangIDs: -> Thang.lastIDNums = {}

  constructor: (@world, @spriteName, @id) ->

module.exports = class Thang
  @className: "Thang"
  @random = new Rand 0

  # Random ordering for each sprite name
  @ordering: (spriteName) ->
    Thang.orders ?= {}
