PNG -> TGA

Former-commit-id: 394d3af24b5f1a125c40197a09f47867cc6fc566
Former-commit-id: 5428b1d2d7370b5a912851d5f5aa9f6b036f64f5
This commit is contained in:
Song Minjae
2017-01-16 18:24:19 +09:00
parent 9fdee8c5ad
commit 47e3ffb6ce
187 changed files with 223 additions and 149 deletions

View File

@@ -19,7 +19,7 @@ open class ProjectileSimple(
private val type: Int,
fromPoint: Vector2, // projected coord
toPoint: Vector2 // arriving coord
) : ActorWithBody(), Luminous, Projectile {
) : ActorWithBody(ActorOrder.MIDTOP), Luminous, Projectile {
val damage: Int
val displayColour: Color
@@ -76,7 +76,7 @@ open class ProjectileSimple(
super.update(gc, delta)
}
override fun drawBody(gc: GameContainer, g: Graphics) {
override fun drawBody(g: Graphics) {
val colourTail = displayColour.darker(0f) // clone a colour
colourTail.a = 0.16f
@@ -92,7 +92,7 @@ open class ProjectileSimple(
)
}
override fun drawGlow(gc: GameContainer, g: Graphics) = drawBody(gc, g)
override fun drawGlow(g: Graphics) = drawBody(g)
companion object {
val OFFSET_DAMAGE = 0