openDS-oss icon indicating copy to clipboard operation
openDS-oss copied to clipboard

Distractors implemented as separate threads

Open breznak opened this issue 8 years ago • 2 comments

  • [ ] add a duration field to distractors
  • [ ] make them runable threads and show it for the duration
    • basically the thread would: D.spawn(); T.sleep(duration); D.remove()
    • called from D.update()

This will make them more independent of the sim control loop.

breznak avatar Oct 14 '16 09:10 breznak

@JohnnyMarek how is the "disappearing" handled now? is it the Timer and magic constants 5, 15 which I didn't understand? In sim loop?

breznak avatar Oct 14 '16 09:10 breznak

yes, 5 sec till anything spawns, 15 secs it stays unles it is text or collect (collect is removed when collected or after 15 sec [failed attempt]. text stays till resolved

JohnnyMarek avatar Oct 14 '16 10:10 JohnnyMarek