You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gamejam-22/core/src/main/kotlin/com/last/commit/map/Collectible.kt

22 lines
442 B
Kotlin

package com.last.commit.map
import com.badlogic.gdx.math.Rectangle
class Collectible(name: String, x: Float, y: Float, width: Float, height: Float) : Interactable {
val name: String
private val collider: Rectangle
init {
this.name = name
this.collider = Rectangle(x, y, width, height)
}
override fun interact() {
}
override fun getCollider(): Rectangle {
return this.collider
}
}