Reorganized files
This commit is contained in:
parent
66b1cbe21f
commit
c0bf423bbf
16 changed files with 153 additions and 156 deletions
18
scripts/Sprite_Light.rb
Normal file
18
scripts/Sprite_Light.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
# A scene lightmap object
|
||||
class Light < RPG::Sprite
|
||||
def initialize(viewport, filename, intensity, x, y)
|
||||
super(viewport)
|
||||
self.lightmap = RPG::Cache.light(filename)
|
||||
self.intensity = intensity
|
||||
@map_x = x
|
||||
@map_y = y
|
||||
self.z = 9999
|
||||
self.visible = true
|
||||
update
|
||||
end
|
||||
|
||||
def update
|
||||
self.x = @map_x - $game_map.display_x / 4
|
||||
self.y = @map_y - $game_map.display_y / 4
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue