Sha256: 464dab03af5b056012759d5e43bed2c61c09cf721ec23fe06c5de34ffd77879f
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
# 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rmxp_extractor-1.8 | Scripts/Sprite_Light.rb |
rmxp_extractor-1.6 | Scripts/Sprite_Light.rb |