[r3]: / trunk / RetroGames / Pong / GameObjects / FB_ObjectBase / svnobj  Maximize  Restore  History

Download this file

14 lines (13 with data), 3.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/// This is a base interface of physical objects in the game.
///
/// The position is taken to reposition the object if it is valid.
// if the input position is valid,
// we replace the object. The output 
// vector is then also 0.
IF posIn.xValid THEN
	//vecOut.rVX := 0;
	//vecOut.rVY := 0;
	posOut := posIn;
END_IF
posOld := posOut;
vecOld := vecOut;