main #14

Merged
jzitnik merged 5 commits from :main into main 2025-04-29 19:43:20 +00:00
7 changed files with 20 additions and 0 deletions
Showing only changes of commit e46baae9e8 - Show all commits

View File

@ -11,4 +11,6 @@ public enum SoundKey {
HURT,
HIT,
SAND_DIG
}

View File

@ -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.SAND_DIG, resourceLocation = {
"sand/dig1.ogg",
"sand/dig2.ogg",
"sand/dig3.ogg",
"sand/dig4.ogg"
})
public class SandDigSound {
}

View File

@ -3,11 +3,16 @@ 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.FallingBlock;
import cz.jzitnik.game.annotations.MineSound;
import cz.jzitnik.game.annotations.PlaceSound;
import cz.jzitnik.game.core.sound.SoundKey;
import cz.jzitnik.game.entities.Block;
import cz.jzitnik.game.entities.items.ItemType;
import java.util.ArrayList;
@MineSound(SoundKey.SAND_DIG)
@PlaceSound(SoundKey.SAND_DIG)
@FallingBlock
@BlockRegistry("sand")
public class SandBlock extends Block {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.