Coder Social home page Coder Social logo

Comments (3)

hawkerm avatar hawkerm commented on June 5, 2024

Think this is more likely to occur in an overpopulated 'small' world, so that's probably why I hadn't seen it until I was doing some random testing.

from spacebattlearena.

hawkerm avatar hawkerm commented on June 5, 2024

Should remove the 'pys' flag from GameWorld and have a 'start' method to initiate the gameloop, then have the game call that after initialization, so if there's an error it can throw an exception and not have a dangling thread (e.g. error with missing config section name).

This propagates up to ConfiguredWorld and the objlistener registration as well.

Game should just call start at the very beginning, this should avoid the whole issue with resetting the world too I believe.

from spacebattlearena.

hawkerm avatar hawkerm commented on June 5, 2024

I've reworked the initialization of the world within the game now that I have the Spawn Manager #83 take care of the creation of game objects. Believe this should be a non-issue now as the gameloop thread is only started after the world object has been initialized within the game.

from spacebattlearena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.