/traderous

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-13 20:26:30 UTC
  • Revision ID: josh@9ix.org-20130513202630-jd3tf1rr5zp3gbcm
move player around looping world

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
              --    end
33
33
              -- end
34
34
 
35
 
              local bg = Tile:new{
36
 
                 image = 'data/stars2.png',
37
 
                 width = 102400,
38
 
                 height = 76800,
39
 
                 x = -51200,
40
 
                 y = -38400
 
35
              the.bg = Tile:new{
 
36
                 image = 'data/stars3.png',
 
37
                 -- 1366x768 * 3
 
38
                 width = 4098,
 
39
                 height = 2304
41
40
              }
42
 
              self:add(bg)
 
41
              self:add(the.bg)
43
42
 
44
43
              --the.player = CrystalPlayer:new{x=400,y=300}
45
 
              the.player = SpacePlayer:new{x=400,y=300}
 
44
              the.player = SpacePlayer:new{x=1366,y=768}
46
45
              self:add(the.player)
47
46
 
48
47
              self:add(Enemy:new{x=400, y=300})
84
83
              if DEBUG then
85
84
                 self.console:watch('VERSION', 'VERSION')
86
85
                 self.console:watch('updateTook', 'the.updateTook')
 
86
                 self.console:watch('the.player.x', 'the.player.x')
 
87
                 self.console:watch('the.player.y', 'the.player.y')
 
88
                 self.console:watch('the.app.width', 'the.app.width')
 
89
                 self.console:watch('the.app.height', 'the.app.height')
87
90
                 --self.console:watch('drawTook', 'the.drawTook')
88
91
              end
89
92
           end,