@name game by ammut
@inputs  Scr:wirelink  Pod:wirelink 
@outputs X Y  TT GG:vector2
@persist  
@trigger  

interval(10)
if(first()){
    TT = 0
    Scr:egpClear()
            Scr:egpBox(1,vec2(50,490),vec2(1000,100)) 
            Scr:egpBox(2,vec2(51,425),vec2(10,30)) 
            Scr:egpBox(3,vec2(51,375),vec2(10,30))
            Scr:egpBox(4,vec2(51,425),vec2(10,30)) 
            Scr:egpBox(5,vec2(51,400),vec2(10,30)) 
            Scr:egpColor(2,vec4(0,0,255,255))
           Scr:egpColor(3,vec4(0,0,255,0))
           Scr:egpColor(4,vec4(0,0,255,0))
         Scr:egpColor(5,vec4(0,0,255,0))
        X = 0
        }


 A = Pod["A",number]
 D = Pod["D",number]
 Reload = Pod["R",number]
 M1 = Pod["Mouse1",number]
 M2 = Pod["Mouse2",number]
 Space = Pod["Space",number]
 Shift = Pod["Shift",number]
 Active = Pod["Active",number]
 Seat = Pod["Entity",entity]
 Driver = Seat:driver()

#GG  = Scr:egpPos(2)

if(Space){
    
    X++



}
else{
    
    Scr:egpPos(2,Scr:egpPos(4))
    

}
if(Scr:egpPos(2) == Scr:egpPos(3)){
    
TT++  }
if(TT>5){
    
    Scr:egpPos(2,Scr:egpPos(5))
    TT = 0
}
if(X>5){
Scr:egpPos(2,Scr:egpPos(3))
X =0}
