Panorama - HermesPasser/Ramu GitHub Wiki
class Panorama : GameObj
Description
Make a horizontal panorama effect using sprites.
Note: This class is depreciated.
Constructor Parameters
Image Objectimg: Panorama image.intx: Position in x.inty: Position in y.intw: Width.inth: Height.floatvelocity: X velocity. (optional, default is 20)
You can test this snippet of code here.
let img = Ramu.Utils.getImage("https://github.com/HermesPasser/Ramu/blob/master/demos/img/montains.png?raw=true");
let panorama = new Panorama(img, 0, 0, 500, 500);