n00b



  • Hiya, I started playing about a week ago and I'm addicted now so just lloking for pointers on my code.

    https://github.com/AVATAR-Phoenix/jeepersscreepers 

    Please and Thank you in advance.



  • You'll have a lot more success by asking more direct questions in the help forum



  • If you play further into the game, CPU cost optimization will be your first priority. I suggest that you should try to call Room.find() only if you need it. Some objects can be accessed by alias (and from my knowledge it cost no CPU). Such as Game.flags, Game.structures and Game.constructionSites. Use these alias properly at start to take less optimization work later on.

    Another huge CPU usage is moving your creeps. But you will encounter that problem when you reach your CPU limit and look for something to cut down CPU cost.