This starter project demonstrates viewport functionality of a screen.
The viewport is region where drawing to a screen or layer is allowed.
Anything outside of this region will be clipped.
By default the viewport encompasses the entire area of the layer or screen.
In this demo the viewPort is reduce to a size smaller than the screen.
Anything drawn outside of the viewPort will be clipped.
constructor(options = {}) {
super(options);
...
this.primaryScreen.viewPort = new hamonengine.geometry.rect(125, 50, 600, 250);
...
}