mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-17 00:56:07 +09:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
30
src/com/torvald/terrarum/gameactors/AVKey.kt
Normal file
30
src/com/torvald/terrarum/gameactors/AVKey.kt
Normal 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"
|
||||
}
|
||||
20
src/com/torvald/terrarum/gameactors/CanBeAnItem.kt
Normal file
20
src/com/torvald/terrarum/gameactors/CanBeAnItem.kt
Normal 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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user