forked from jzitnik/twodcraft
chore: stone sounds
This commit is contained in:
parent
e46baae9e8
commit
5276e53d87
@ -12,5 +12,9 @@ public enum SoundKey {
|
||||
HURT,
|
||||
HIT,
|
||||
|
||||
SAND_DIG
|
||||
SAND_DIG,
|
||||
|
||||
STONE_DIG,
|
||||
STONE_WALKING,
|
||||
STONE_MINING,
|
||||
}
|
||||
|
@ -0,0 +1,13 @@
|
||||
package cz.jzitnik.game.core.sound.registry;
|
||||
|
||||
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||
import cz.jzitnik.game.core.sound.SoundKey;
|
||||
|
||||
@SoundRegistry(key = SoundKey.STONE_DIG, resourceLocation = {
|
||||
"stone/dig1.ogg",
|
||||
"stone/dig2.ogg",
|
||||
"stone/dig3.ogg",
|
||||
"stone/dig4.ogg"
|
||||
})
|
||||
public class StoneDigSound {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cz.jzitnik.game.core.sound.registry;
|
||||
|
||||
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||
import cz.jzitnik.game.core.sound.SoundKey;
|
||||
|
||||
@SoundRegistry(key = SoundKey.STONE_MINING, resourceLocation = {
|
||||
"stone/mine1.ogg",
|
||||
"stone/mine2.ogg",
|
||||
"stone/mine3.ogg",
|
||||
"stone/mine4.ogg",
|
||||
"stone/mine5.ogg",
|
||||
"stone/mine6.ogg"
|
||||
})
|
||||
public class StoneMiningSound {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cz.jzitnik.game.core.sound.registry;
|
||||
|
||||
import cz.jzitnik.game.annotations.SoundRegistry;
|
||||
import cz.jzitnik.game.core.sound.SoundKey;
|
||||
|
||||
@SoundRegistry(key = SoundKey.STONE_WALKING, resourceLocation = {
|
||||
"stone/step1.ogg",
|
||||
"stone/step2.ogg",
|
||||
"stone/step3.ogg",
|
||||
"stone/step4.ogg",
|
||||
"stone/step5.ogg",
|
||||
"stone/step6.ogg"
|
||||
})
|
||||
public class StoneWalkingSound {
|
||||
}
|
@ -1,13 +1,17 @@
|
||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
||||
import cz.jzitnik.game.annotations.*;
|
||||
import cz.jzitnik.game.core.sound.SoundKey;
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
import cz.jzitnik.game.entities.items.ItemType;
|
||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@PlaceSound(SoundKey.STONE_DIG)
|
||||
@MineSound(SoundKey.STONE_DIG)
|
||||
@WalkSound(SoundKey.STONE_WALKING)
|
||||
@MiningSound(SoundKey.STONE_MINING)
|
||||
@BlockRegistry("cobblestone")
|
||||
public class CobblestoneBlock extends Block {
|
||||
public CobblestoneBlock() {
|
||||
|
@ -1,13 +1,17 @@
|
||||
package cz.jzitnik.game.entities.items.registry.blocks.blocks;
|
||||
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.annotations.BlockRegistry;
|
||||
import cz.jzitnik.game.annotations.*;
|
||||
import cz.jzitnik.game.core.sound.SoundKey;
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
import cz.jzitnik.game.entities.items.ItemType;
|
||||
import cz.jzitnik.game.entities.items.ToolVariant;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@PlaceSound(SoundKey.STONE_DIG)
|
||||
@MineSound(SoundKey.STONE_DIG)
|
||||
@WalkSound(SoundKey.STONE_WALKING)
|
||||
@MiningSound(SoundKey.STONE_MINING)
|
||||
@BlockRegistry(value = "stone", drops = "cobblestone")
|
||||
public class StoneBlock extends Block {
|
||||
public StoneBlock() {
|
||||
|
BIN
src/main/resources/sounds/stone/dig1.ogg
Normal file
BIN
src/main/resources/sounds/stone/dig1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/dig2.ogg
Normal file
BIN
src/main/resources/sounds/stone/dig2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/dig3.ogg
Normal file
BIN
src/main/resources/sounds/stone/dig3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/dig4.ogg
Normal file
BIN
src/main/resources/sounds/stone/dig4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine1.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine2.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine3.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine4.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine5.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine5.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/mine6.ogg
Normal file
BIN
src/main/resources/sounds/stone/mine6.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step1.ogg
Normal file
BIN
src/main/resources/sounds/stone/step1.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step2.ogg
Normal file
BIN
src/main/resources/sounds/stone/step2.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step3.ogg
Normal file
BIN
src/main/resources/sounds/stone/step3.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step4.ogg
Normal file
BIN
src/main/resources/sounds/stone/step4.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step5.ogg
Normal file
BIN
src/main/resources/sounds/stone/step5.ogg
Normal file
Binary file not shown.
BIN
src/main/resources/sounds/stone/step6.ogg
Normal file
BIN
src/main/resources/sounds/stone/step6.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user