Reorganized files

This commit is contained in:
Mathew Velasquez 2015-11-22 18:06:34 -05:00
parent 66b1cbe21f
commit c0bf423bbf
16 changed files with 153 additions and 156 deletions

18
scripts/Sprite_Light.rb Normal file
View 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