- Instructions
- Assignment
- Conditional
- Loops
- Input/Output
- Map (Under development)
Operator:
equip
It can be done at the time of declaring a variable or after its declaration.
Two variables can be assigned to each other, if and only if they are of the same type.
If the variables are of the same type, they can be declared on the same line as follow:
type1 id1, ..., idN
type2 idA equip expression, idB equip expression ...
They are assignments that work exclusively on variables of type Power and work as suffix/postfix operators:
level up
: Increment. Increase the value of the variable by 1.
use item
: Decrement. Decrease the value of the variable by 1.
See Flow control structures. Selection section.
See Flow control structures. Loops section.
Input: variable
equip joystick
[prompt]Takes
Runes
as an optional prompt for the user and readsRunes
from the user.Output:
drop
variable[, constant, ...]Takes
Runes
,Rune
,Power
orSkill
, and shows them in the standard output.Casting:
portalRuneToRunes
: Converts aRune
toRunes
.
portalPowerToRunes
: Converts aPower
toRunes
.
portalSkillToRunes
: Converts aSkill
toRunes
.
portalRunesToPower
: ConvertsRunes
toPower
.
portalRunesToRune
: ConvertsRunes
toRune
.
portalRunesToSkill
: ConvertsRunes
toSkill
.
Its execution consists of an interruption to read from the standard input and
returns Runes
as default, without the *\n*
character.
If the variable its a Rune
, Power
or Skill
, Playit casts
the readed Runes
to the corresponding type. (Need to be implemented)
These can be used without the kill
statement described in
Flow control structures. Subroutines section.
muestra todas las declaraciones hechas (vars, monsters, bosses, inventory, items ...)
- Playit Programming language
- Program's Structure
- Source code file extension
- Variables identifiers (id's)
- Data types. Scalars
- Data types. Composite
- Expressions
- Expressions evaluation
- Block and Scope
- Comments and White spaces
- Flow control structures
- Selection
- Loops
- Determined
- Indetermined
- Loop break
- Skip current iteration
- Alter current execution (Under development)
- Subroutines
- Examples
- Compile and run
- Extras