Commit e51ff893 authored by deregges's avatar deregges

Fixed typo in enemies package name

parent 122aee1b
......@@ -12,6 +12,9 @@ class GameThread(private val game: GameActivity) : Thread() {
start()
}
/**
* main loop, interrupt = end thread
*/
override fun run() {
Log.d("GAME", "starting thread")
try {
......@@ -21,6 +24,12 @@ class GameThread(private val game: GameActivity) : Thread() {
}
}
/**
* computes one frame:
* update
* draw
* sleep
*/
private fun computeFrame() {
Log.d("GAME2", "tick" + game.ticks)
val start = System.currentTimeMillis()
......
......@@ -3,6 +3,10 @@ package io.ender.pathchaser
import android.util.Log
import com.crashlytics.android.Crashlytics
/**
* android log wrapper, providing default tag and Crashlytics log for logs on error level
*/
@Suppress("unused", "MemberVisibilityCanBePrivate")
object Log {
private const val TAG = "pathchaser"
......
......@@ -2,7 +2,7 @@ package io.ender.pathchaser
import android.graphics.*
import io.ender.pathchaser.collectibles.Shields
import io.ender.pathchaser.enemys.Boss
import io.ender.pathchaser.enemies.Boss
import io.ender.pathchaser.paths.PathManager
import io.ender.pathchaser.util.Constants
import io.ender.pathchaser.util.Preferences
......
package io.ender.pathchaser.enemys
package io.ender.pathchaser.enemies
import android.graphics.Color
import android.graphics.Paint
......
package io.ender.pathchaser.enemys
package io.ender.pathchaser.enemies
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PointF
import io.ender.pathchaser.util.Constants
import io.ender.pathchaser.Sprite
import io.ender.pathchaser.paths.PathManager
import io.ender.pathchaser.util.Constants
open class Enemy(var p: PointF, pm:PathManager) : Sprite(pm) {
override fun getPaint() = Paint().apply { color = Color.MAGENTA }
......
......@@ -3,7 +3,7 @@ package io.ender.pathchaser.paths
import android.graphics.*
import io.ender.pathchaser.Sprite
import io.ender.pathchaser.collectibles.Collectible
import io.ender.pathchaser.enemys.Boss
import io.ender.pathchaser.enemies.Boss
import io.ender.pathchaser.util.contains
import io.ender.pathchaser.util.intersects
......
package io.ender.pathchaser.paths
import android.graphics.*
import io.ender.pathchaser.enemys.Enemy
import io.ender.pathchaser.enemies.Enemy
import io.ender.pathchaser.util.intersects
class CirclePath(pm: PathManager, start: PointF, r: Float, enemyNumber: Int = 0) : Pathway(pm, start) {
......
......@@ -6,7 +6,7 @@ import android.graphics.Region
import io.ender.pathchaser.GameActivity
import io.ender.pathchaser.Log
import io.ender.pathchaser.collectibles.*
import io.ender.pathchaser.enemys.Enemy
import io.ender.pathchaser.enemies.Enemy
import io.ender.pathchaser.util.Constants
import io.ender.pathchaser.util.Preferences
import java.io.Serializable
......
......@@ -7,7 +7,7 @@ import android.graphics.PointF
import io.ender.pathchaser.Player
import io.ender.pathchaser.Sprite
import io.ender.pathchaser.collectibles.Collectible
import io.ender.pathchaser.enemys.Enemy
import io.ender.pathchaser.enemies.Enemy
import io.ender.pathchaser.util.intersects
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment