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

Download this file

11 lines (10 with data), 1.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/// This object implements the reaction of the goal field
///
/// In PONG, we have two goals (east and west)
FUNCTION_BLOCK FB_GOALS EXTENDS FB_ObjectBase
VAR_INPUT
END_VAR
VAR_OUTPUT
VAR CONSTANT
	iWidth : INT := 1024;
	iHeight : INT := 768;