Difference between revisions of ".up"
m |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{movementarticles|num=1|sysvar=.up|dir=forward in its eye direction}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 14:17, 23 December 2005
|
Sysvars:
1 .up is a movement Sysvar. Without these, there could be no movement, just bouncing, gliding, flowing and tie-pushing.
Syntax:
- .up accelerates the robot forward in its eye direction. It uses memory location 1 of the bot to store how much it accelerates in that direction.
Examples:
10 .up store
or
10 1 store
This puts 10 on the stack. Than it puts 1 on the stack. Than it stores 10 in memory location 1 of the bot (.up) and removes 1 and 10 from the stack. The 10 in memory location 1 of the bot accelerates it +10 forward in its eye direction if it has not reached the maximum acceleration in that direction.
cond start 10 .up store stop
A robot with this gene would constantly accelerate forward in its eye direction at a rate of 10 per turn. That is to say that his velocity in that direction would increase by a value of 10. If it should rotate then the direction in which the acceleration takes place would also change.
Technical Details:
Movement values get cut above 1000 and below -1000, then added up to a single vector including tie and other propulsion vectors, then the vector gets cut to a length of 40 as maximum aceleration.
More details at Movement.