laplante-sean / jackit

2D side-scroller game with a programming aspect
GNU General Public License v3.0
2 stars 0 forks source link

Don't load all levels at once. Load them as needed #24

Closed laplante-sean closed 7 years ago

laplante-sean commented 7 years ago

RIght now the init() method in Level reads the map and builds the entity lists. Break this code out into a load() method and only call it when the level is the current level.

Maybe:

  1. Maybe create a loading page if loading takes a while but it probably won't take long.
  2. Maybe go through and clean everything up on unload. Or just rely on python garbage collection.