34 lines
426 B
JavaScript
34 lines
426 B
JavaScript
|
import Entity from '../entity'
|
||
|
|
||
|
class AnimatedEntity extends Entity {
|
||
|
constructor (mesh, pos, scale, rotation) {
|
||
|
super(mesh, pos, scale, rotation)
|
||
|
|
||
|
this.animPlayer = null
|
||
|
this.animation = null
|
||
|
this.keyframe = 0
|
||
|
}
|
||
|
|
||
|
setAnimation (name) {
|
||
|
|
||
|
}
|
||
|
|
||
|
playAnimation () {
|
||
|
|
||
|
}
|
||
|
|
||
|
stopAnimation () {
|
||
|
|
||
|
}
|
||
|
|
||
|
update (dt) {
|
||
|
|
||
|
}
|
||
|
|
||
|
draw (gl, shader) {
|
||
|
super.draw(gl, shader)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default AnimatedEntity
|