       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) ->

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

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

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