npm.io
0.2.0 • Published 3 years ago

@al-engine/game_object

Licence
MIT
Version
0.2.0
Deps
1
Size
45 kB
Vulns
0
Weekly
0

Al engine

Scale

This is module with base class of Game Object for Al engine.

You need to extend your class from GameObject and add realisation of needed methods:

  needUpdate
  init
  tick
  update
  render
  draw

Also you can use fields:

  position
  size
  speed
  children
  parent
  sprite