Driftwood Gaming
Knight
- Xy$
- 0.00
Hello all you talented script authors I would like to place another plug-in request and this time it's for a script similar to the TDS Battleback Stretch script by 'unknown' here is the ruby script for it, if you can convert this to JavaScript that would be amazing and I would happily make a video covering it and giving you full props and credit for the creation.
RUBY version that needs converted to JavaScript:
#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
# This class brings together map screen sprites, tilemaps, etc. It's used
# within the Scene_Map class.
#==============================================================================
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battleback 1 (Floor)
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Sprite.new(@viewport1)
@back1_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
# Get Background Bitmap
background = battleback1_bitmap
# Get Screen Size Rect
screen = Rect.new(0, 0, Graphics.width, Graphics.height)
# Stretch Battleback
@back1_sprite.bitmap.stretch_blt(screen, background, background.rect)
#battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battleback 2 (Wall)
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Sprite.new(@viewport1)
@back2_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
# Get Background Bitmap
background = battleback2_bitmap
# Get Screen Size Rect
screen = Rect.new(0, 0, Graphics.width, Graphics.height)
# Stretch Battleback
@back1_sprite.bitmap.stretch_blt(screen, background, background.rect)
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
end
RUBY version that needs converted to JavaScript:
#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
# This class brings together map screen sprites, tilemaps, etc. It's used
# within the Scene_Map class.
#==============================================================================
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battleback 1 (Floor)
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Sprite.new(@viewport1)
@back1_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
# Get Background Bitmap
background = battleback1_bitmap
# Get Screen Size Rect
screen = Rect.new(0, 0, Graphics.width, Graphics.height)
# Stretch Battleback
@back1_sprite.bitmap.stretch_blt(screen, background, background.rect)
#battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battleback 2 (Wall)
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Sprite.new(@viewport1)
@back2_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
# Get Background Bitmap
background = battleback2_bitmap
# Get Screen Size Rect
screen = Rect.new(0, 0, Graphics.width, Graphics.height)
# Stretch Battleback
@back1_sprite.bitmap.stretch_blt(screen, background, background.rect)
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
end