|
Re: [FVG]: High-level design
Multi-threading would be cool, if we can keep them sync-ed.
In a game, here's what we do:
#Load objects, robots, fields, etc.
#check everything to make sure it's OK
#initialize
##check connection (if applicable)
##check server (if applicable)
##send robot model to other players (if applicable)
#begin pre-game
#wait for OK from players
#begin game
LOOP1 {
#Auton (if applicable)
}
LOOP2 {
#Send Pos data to AIs (if applicable)
#Get input (from players or AIs)
#Check input
#Create robot pos data (from CS)
#Send data to robots
#robots do their thing
#Get pos data from robots
#Run engine
##Physics
##Render
}
I'm also thinking that if voodoo controls are going to happen, we're going to need a radically different object model than what we currently have.
|