mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:55:12 +00:00
21 lines
347 B
ActionScript
21 lines
347 B
ActionScript
class Ship implements Moving{
|
|
var y;
|
|
// constructor
|
|
function Ship(py:Number){
|
|
y = py;
|
|
}
|
|
function moveUp(uy:Number){
|
|
y *= uy;
|
|
trace("moveUp = "+y);
|
|
}
|
|
function moveDown(dy:Number){
|
|
y *= dy;
|
|
trace("moveDown = "+y);
|
|
}
|
|
function moveLeft(lx:Number){
|
|
// empty
|
|
}
|
|
function moveRight(rx:Number){
|
|
// empty
|
|
}
|
|
} |