hpi-swa-teaching / GameMecha

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

Moving camera #42

Closed Tobias314 closed 6 years ago

Tobias314 commented 6 years ago

Story

As a swa student, I want to be able to move my 2d camera so that I can position submorphs in something like a camera morph and the control where the "camera" looks at and going left, right, up, down. This is useful for easily building for example sidescroller games like Super Mario where the camera moves along the world.

Description

  1. Why: Such common behavior should be provided by a special morph.
  2. What:
    • [ ] Add a specific morph in which you can place Submorphs with a fixed "global position". These "camera morph" should also provide a function to change the field of view, which then moves submorphs accordingly.
benrobby commented 6 years ago

abandoned. not in our scope, users should take care of it themselves