Namespace: BHell

BHell

Source:

Classes

BHell_Bomb_Base
BHell_Bomb_Earth
BHell_Bomb_Ice
BHell_Bomb_Water
BHell_Bomb_Wind
BHell_Bullet
BHell_Controller
BHell_Emitter_Angle
BHell_Emitter_Base
BHell_Emitter_Burst
BHell_Emitter_Factory
BHell_Emitter_Fan
BHell_Emitter_Overcome
BHell_Emitter_Rotate
BHell_Emitter_Spray
BHell_Emitter_Spray_Alt
BHell_Emitter_Spray_Rnd
BHell_Enemy_Base
BHell_Enemy_Blocker
BHell_Enemy_Burster
BHell_Enemy_Gunner
BHell_Enemy_Gunner_Base
BHell_Enemy_Orbiter
BHell_Enemy_Probe
BHell_Enemy_Smallfry
BHell_Enemy_Spline
BHell_Enemy_Sprayer
BHell_Enemy_Starshooter
BHell_Enemy_Suicide
BHell_Enemy_Swirler
BHell_Explosion
BHell_Generator
BHell_Mover_Base
BHell_Mover_Bounce
BHell_Mover_Chase
BHell_Mover_Harmonic
BHell_Mover_Orbit
BHell_Mover_Point
BHell_Mover_Spline
BHell_Player
BHell_Sprite
BHell_Spriteset
BHell_Warning
BHell_Window_BuyPlayers
BHell_Window_BuyUpgrades
BHell_Window_Confirm
BHell_Window_Pause
BHell_Window_Players
BHell_Window_Preview
BHell_Window_Ranks
BHell_Window_SelectPlayer
BHell_Window_ShopCommand
BHell_Window_Status
Scene_BHell
Scene_BHell_Init
Scene_BHell_Shop

Methods

(static) my.parse(str, x, y, w, h, sw, sh) → {*}

Parser function. Takes a string and evaluates it as an arithmetic expression after replacing the following placeholders:

  • pi: 3.14...,
  • x: x coordinate of something,
  • y: y coordinate of something,
  • w: width of something,
  • h: height of something,
  • sw: screen width,
  • sh: screen height.
Parameters:
Name Type Description
str

String to be parsed.

x

number with which "x" will be replaced on the expression.

y

number with which "y" will be replaced on the expression.

w

number with which "w" will be replaced on the expression.

h

number with which "h" will be replaced on the expression.

sw

number with which "sw" will be replaced on the expression.

sh

number with which "sh" will be replaced on the expression.

Source:
Returns:

true/false or a number if the string could be parsed correctly, null otherwise.

Type
*