Panorama - HermesPasser/Ramu GitHub Wiki

class Panorama : GameObj

Description

Make a horizontal panorama effect using sprites.

Note: This class is depreciated.

Constructor Parameters

  • Image Object img: Panorama image.
  • int x: Position in x.
  • int y: Position in y.
  • int w: Width.
  • int h: Height.
  • float velocity: 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);

Properties

Public Methods

Inherited Members