hpi-swa-teaching / GameMecha

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

Add Image Loader [estimate: 4] #31

Closed NiklasKoehnecke closed 6 years ago

NiklasKoehnecke commented 6 years ago

Story

As a swa student I want to have an easy way to load images from my pc onto different rectangular morphs. I don't want images to be loaded multiple times. Supply path, name (symbol). Return Form.

Description

  1. Why: Image loading is something that swa students have to do, but is not very project specific

  2. What:

    • [x] Loading images into the squeak image (cache, simple collection)
    • [x] Being able to give a relative/absolute path from which the images are chosen
    • [x] give image a name and address it by the name
    • [x] method to flush cache
    • [x] throw error if image doesn't exist
    • [x] create unit tests for loading images (mock objects!)
    • [ ] create acceptance test for loading images (scenario with comments)
  3. Done: Checklist complete

benrobby commented 6 years ago

estimate: 4

benrobby commented 6 years ago

some issues with acceptance test:

ekrebs5 commented 6 years ago

accepted