mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
twm footprint
This commit is contained in:
parent
ac42a6f5a9
commit
fe6f34f2da
5 changed files with 20 additions and 18 deletions
|
|
@ -494,7 +494,7 @@ class Game_Character
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def emit_footprint(direction)
|
def emit_footprint(direction)
|
||||||
if $game_map.counter?(@x, @y) && !$game_switches[101] && !$game_switches[111]
|
if $game_map.counter?(@x, @y) && !$game_switches[101] && !$game_switches[111]
|
||||||
$scene.new_footprint(direction, @x, @y)
|
$scene.new_footprint(direction, @x, @y, @character_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def emit_footsplash(direction)
|
def emit_footsplash(direction)
|
||||||
|
|
|
||||||
|
|
@ -423,9 +423,9 @@ class Scene_Map
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Misc operations
|
# * Misc operations
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def new_footprint(direction, x, y)
|
def new_footprint(direction, x, y, character_name)
|
||||||
if @spriteset != nil
|
if @spriteset != nil
|
||||||
@spriteset.new_footprint(direction, x, y)
|
@spriteset.new_footprint(direction, x, y, character_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def new_footsplash(direction, x, y)
|
def new_footsplash(direction, x, y)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
class Sprite_Footprint < Sprite
|
class Sprite_Footprint < Sprite
|
||||||
def initialize(viewport, direction, x, y)
|
def initialize(viewport, direction, x, y, character_name)
|
||||||
super(viewport)
|
super(viewport)
|
||||||
@direction = direction
|
@direction = direction
|
||||||
@real_x = x * 4 * 32
|
@real_x = x * 4 * 32
|
||||||
|
|
@ -11,6 +11,8 @@ class Sprite_Footprint < Sprite
|
||||||
self.oy = 16
|
self.oy = 16
|
||||||
self.bitmap = RPG::Cache.misc('footprints')
|
self.bitmap = RPG::Cache.misc('footprints')
|
||||||
self.src_rect.set(0, 16 * (direction / 2 - 1), 16, 16)
|
self.src_rect.set(0, 16 * (direction / 2 - 1), 16, 16)
|
||||||
|
|
||||||
|
self.shader = character_name.start_with?("en") || (character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine : Shader::Sprite
|
||||||
update
|
update
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -383,8 +383,8 @@ class Spriteset_Map
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Misc operations
|
# * Misc operations
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def new_footprint(direction, x, y)
|
def new_footprint(direction, x, y, character_name)
|
||||||
@footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y)
|
@footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y, character_name)
|
||||||
end
|
end
|
||||||
def new_maptext(text, x, y)
|
def new_maptext(text, x, y)
|
||||||
@footprint_sprites << Sprite_MapText.new(@viewport, text, x, y)
|
@footprint_sprites << Sprite_MapText.new(@viewport, text, x, y)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue