new noisegen for ores/gems, need some test, error-proof ActorValue addressing, more comments for ActorWithBody.kt

Former-commit-id: a3441e31f11fa89283babee4c9749680495af923
Former-commit-id: 4092ed362f4f8c28685f82a70ee49e0bee0f0a13
This commit is contained in:
Song Minjae
2016-04-04 23:55:00 +09:00
parent 1573851130
commit bad4afe247
20 changed files with 349 additions and 227 deletions

View File

@@ -14,6 +14,27 @@
Arrangements in the map
Time →→→→
voice 1 → # # # # # # #
voice 2 → # # # # # # #
↑ played simultaneously along the X-axis
voice 1 → □□□□□□□□□□□□□□□□...
voice 2 → □□□□□□□□□□□□□□□□...
↑ played simultaneously along the X-axis
- Each tracker head and body are connected by placing tracks adjacent to each other or connecting them with wire.
Connect two or more tracker head to play the array of trackers play simultaneously (multi-tracking)
- Serialisation
<actorid>.json
{
0 = [long],
1 = [long],
...
47 = [long],
speed = 120
}
*long: array of bits that indicates the note is stricken (1) or not (0)
0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000
↑G5 ↑C5 ↑C4 ↑C3 ↑C2 ↑C1 E0↑
(Assuming C3 (32nd bit) as middle 'C')
*speed: in BPM

View File

@@ -29,8 +29,8 @@ class SetGlobalLightLevel : ConsoleCommand {
try {
val GL = args[1].toInt()
if (GL.toInt() < 0 || GL.toInt() >= LightmapRenderer.COLOUR_DOMAIN_SIZE) {
Echo().execute("Range: 0-" + (LightmapRenderer.COLOUR_DOMAIN_SIZE - 1))
if (GL.toInt() < 0 || GL.toInt() >= LightmapRenderer.COLOUR_RANGE_SIZE) {
Echo().execute("Range: 0-" + (LightmapRenderer.COLOUR_RANGE_SIZE - 1))
}
else {
Terrarum.game.map.globalLight = GL

View File

@@ -0,0 +1,30 @@
package com.torvald.terrarum.gameactors
/**
* Created by minjaesong on 16-04-02.
*/
object AVKey {
const val MULTIPLIER_SUFFIX = "mult"
const val SPEED = "speed"
const val SPEEDMULT = "speed$MULTIPLIER_SUFFIX"
const val ACCEL = "accel"
const val ACCELMULT = "accel$MULTIPLIER_SUFFIX"
const val SCALE = "scale"
const val BASEHEIGHT = "baseheight"
const val BASEMASS = "basemass"
const val JUMPPOWER = "jumppower"
const val JUMPPOWERMULT = "jumppower$MULTIPLIER_SUFFIX"
const val STRENGTH = "strength"
const val ENCUMBRANCE = "encumbrance"
const val LUMINOSITY = "luminosity"
const val PHYSIQUEMULT = "physique$MULTIPLIER_SUFFIX"
const val NAME = "name"
const val RACENAME = "racename"
const val RACENAMEPLURAL = "racenameplural"
const val TOOLSIZE = "toolsize"
const val INTELLIGENT = "intelligent"
}

View File

@@ -0,0 +1,20 @@
package com.torvald.terrarum.gameactors
import com.torvald.terrarum.gameitem.InventoryItem
/**
* Created by minjaesong on 16-03-14.
*/
interface CanBeAnItem {
fun attachItemData()
fun getItemWeight(): Float
fun stopUpdateAndDraw()
fun resumeUpdateAndDraw()
var itemData: InventoryItem
}