hpi-swa-teaching / GameMecha

A library providing implementations for common patterns in Squeak/Smalltalk game development.
MIT License
12 stars 2 forks source link

Resource Enhancement [8] #65

Closed ekrebs5 closed 6 years ago

ekrebs5 commented 6 years ago

Story

If I have multiple games that have a "player"/"player.png" (or similiar), it should still work (files are still in different paths).

I want to reset the cache (best case for only one folder or game prefix) if I changed the pictures.

(Maybe) I want to get all pictures of one game / prefix

Description

Why:
In SWA, all games are loaded into one image What:

NiklasKoehnecke commented 6 years ago

after a bit of thought this makes the handling of images and sound a lot more inconvenient for the swa students

benrobby commented 6 years ago

another option: dont use global state. will measure how much time it takes to load images from disk and decide if its okay to do this every time a game starts

benrobby commented 6 years ago

description of user story and requirements from eva is not up to date. we removed the resource locator because game objects will need a reference to the game anyways (because of keyhandling), so access is easy. each game instantiates it's own resource managers at startup

ekrebs5 commented 6 years ago

accepted