COMMODORE PLUS/4 WORLD
  Home  Search  Games  Tapes  Covers  Cheats  Maps  Software  New Stuff 
 Hall Of Fame  HVTC  Game Endings  Solutions  Remakes  Publications  Magazines  Effects  Top List 
 Members  Groups  Features  Plus/4 Encyclopedia  Hardware  Tools  Options  Forum 
Login
Back to forumClick here to see the full topicGo to last reply

Posted By

KiCHY
on 2014-09-23
08:12:06
 Re: Manage tons of enemies theoretically

Not a stupid Q at all. Usually this is the first idea from non-programmers. Halving the framerate doubles the number of visible monsters, but doesn't eliminate the problem. There always will be a chance that there will be too many monsters to draw in given time, if you doesn't limit them somehow.

Next question is how to limit the number of visible monsters?
" When a new moster wants to spawn, try to dispose another one which is - for example - offscreen and furthest from the player"? Any other clever ways? There are no fixed paths, no "come in, chase, go away" monsters. They just want to catch you and overhelm with their numbers.

Edit:
@SVS: Lowering the processing priority of distant & not visible monsters (updating their AI in every 2nd or 3rd frame) is also a clever way to save more cpu to display more monsters :)



Back to top


Copyright © Plus/4 World Team, 2001-2017