/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to util.lua

  • Committer: Josh C
  • Date: 2013-08-25 02:38:46 UTC
  • Revision ID: josh@9ix.org-20130825023846-wgea9oh4n0o16gct
separate collision box for player so it can scale

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
util = {
2
 
   dim = function(dir)
3
 
      if dir == 'x' then
4
 
         return 'width'
5
 
      elseif dir == 'y' then
6
 
         return 'height'
7
 
      else
8
 
         if STRICT then error('dir '..dir) end
9
 
      end
10
 
   end
11
 
}