Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Class

class Sprite2 {
    constructor({position}) {
        this.position = position;
        this.height = 0;
        this.width = 0;
    }

    draw() {}

    update() {
        this.draw();
    }
}
Source by www.cs.fsu.edu #
 
PREVIOUS NEXT
Tagged: #Java #Class
ADD COMMENT
Topic
Name
3+9 =