res

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

res is resources

Index

Constants

This section is empty.

Variables

View Source
var (
	Crab             = anim.SubImages(ReadEbImgFS(fs, "assets/img/crab.png"), 0, 0, 16, 9, 2, false)
	Icon8            = make(map[uint8]*ebiten.Image, 0)
	BlockCrackFrames = make(map[uint8][]*ebiten.Image, 0)
	BlockUnbreakable = make(map[uint8]*ebiten.Image, 0)
	HotbarEdge       = ReadEbImgFS(fs, "assets/img/gui/hotbar_edge.png")
	HotbarMid        = ReadEbImgFS(fs, "assets/img/gui/hotbar_mid.png")
	CraftingTable1x2 = ReadEbImgFS(fs, "assets/img/gui/table1x2.png")
	CraftingTable3x3 = ReadEbImgFS(fs, "assets/img/gui/table3x3.png")
	CraftingTable2x2 = ReadEbImgFS(fs, "assets/img/gui/table2x2.png")
	BlockBorder      = ReadEbImgFS(fs, "assets/img/gui/block_border.png")
	SlotBorder       = ReadEbImgFS(fs, "assets/img/gui/slot_border.png")

	Font = LoadFontFromFS("assets/font/arkpixel10.ttf", 10, fs)
)
View Source
var (
	Player                    = ReadEbImgFS(fs, "assets/img/player/player.png")
	PlayerWoodenAxeAtlas      = ReadEbImgFS(fs, "assets/img/player/player_wood_axe.png")
	PlayerStoneAxeAtlas       = ReadEbImgFS(fs, "assets/img/player/player_stone_axe.png")
	PlayerIronAxeAtlas        = ReadEbImgFS(fs, "assets/img/player/player_iron_axe.png")
	PlayerDiamondAxeAtlas     = ReadEbImgFS(fs, "assets/img/player/player_diamond_axe.png")
	PlayerWoodenPickaxeAtlas  = ReadEbImgFS(fs, "assets/img/player/player_wood_pickaxe.png")
	PlayerStonePickaxeAtlas   = ReadEbImgFS(fs, "assets/img/player/player_stone_pickaxe.png")
	PlayerIronPickaxeAtlas    = ReadEbImgFS(fs, "assets/img/player/player_iron_pickaxe.png")
	PlayerDiamondPickaxeAtlas = ReadEbImgFS(fs, "assets/img/player/player_diamond_pickaxe.png")
	PlayerWoodenShovelAtlas   = ReadEbImgFS(fs, "assets/img/player/player_wood_shovel.png")
	PlayerStoneShovelAtlas    = ReadEbImgFS(fs, "assets/img/player/player_stone_shovel.png")
	PlayerIronShovelAtlas     = ReadEbImgFS(fs, "assets/img/player/player_iron_shovel.png")
	PlayerDiamondShovelAtlas  = ReadEbImgFS(fs, "assets/img/player/player_diamond_shovel.png")
)

Functions

func ImgFromFS

func ImgFromFS(fs embed.FS, filePath string) image.Image

func LoadFontFromFS

func LoadFontFromFS(file string, size float64, fs embed.FS) *text.GoTextFace

func ReadEbImgFS

func ReadEbImgFS(fs embed.FS, filePath string) *ebiten.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL