summaryrefslogtreecommitdiffhomepage
path: root/app/old/sprites.rb
blob: 0016436f90ada5e0a04b1996ee6733cb95df36bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Sprite
  class <<self
    attr_reader :objects
  end
  @objects = []
  @objects << {
    x: 100,
    y: 100,
    w: 48,
    h: 96,
    path: 'sprites/non-free/Modern_Interiors/test.png',
    source_x: 0,
    source_y: 288,
    source_w: 48,
    source_h: 96
  }
  @objects << {
    x: 100,
    y: 100,
    w: 48,
    h: 96,
    path: 'sprites/non-free/Modern_Interiors/test.png',
    source_x: 48,
    source_y: 288,
    source_w: 48,
    source_h: 96
  }
end