Added bullet/tank collision; reduced tick count
This commit is contained in:
parent
a1294859c7
commit
5c34cd6941
5 changed files with 41 additions and 11 deletions
|
@ -61,11 +61,11 @@ mainLoop = do
|
|||
liftIO $ threadDelay $ truncate $ 1e6*(minFrameTime - drender)
|
||||
|
||||
currenttime <- liftIO getCurrentTime
|
||||
let d = round $ 1e3*(diffUTCTime currenttime t)
|
||||
let d = round $ 1e2*(diffUTCTime currenttime t)
|
||||
|
||||
replicateM_ d simulationStep
|
||||
|
||||
let newtime = addUTCTime ((1e-3)*(fromIntegral d)) t
|
||||
let newtime = addUTCTime ((1e-2)*(fromIntegral d)) t
|
||||
|
||||
modify $ \state -> state {time = newtime}
|
||||
|
||||
|
|
Reference in a new issue