In our studio we design high quality polygonal 3d models for CNC machines or 3d printers according to your preferences.
Vendor: 3d-38324
Category: CHARACTERS
Reminder!
Order delivery time is 5-7 working days after payment
The link is sent to your email or messenger
Creature import com.badlogic.gdx.graphics.Texture import com.badlogic.gdx.math.Vector2 import com.badlogic.gdx.physics.box2d.World import com.mygdx.game.Game import com.mygdx.game.CHARACTERS.Character import com.mygdx.game.CHARACTERS.Player import com.mygdx.game.TOOLS.Tools open class Creature(world: World, img: Texture, position: Vector2, size: Vector2, val player: Player, val game: Game, val health: Int, val damage: Int, val speed: Float, val attackRange: Float, val attackSpeed: Float, val reward: Int ) : Character(world, img, position, size) { var stateTime = 0f var attackTime = 0f var attackCooldown = 0f var attackTarget: Player? = null init { body.userData = this } override fun update(dt: Float) { stateTime += dt if (attackTarget != null) { attackTime += dt if (attackTime >= attackSpeed
for CNC and 3D printers.