Constructors
constructor
- new Block(x, y, hitpoints, bonus): Block
Parameters
- x: number
- y: number
- hitpoints: string
- bonus: string
Properties
hitpoints
hitpoints: number = 0
Methods
draw
- draw(ctx): void
Parameters
- ctx: CanvasRenderingContext2D
Returns void