Files
factorygame/tiles/furnace.c
2025-06-10 21:59:51 +02:00

25 lines
730 B
C

//
// Created by bruno on 31.5.2025.
//
#include "furnace.h"
#include "tile.h"
#include "../util/audio.h"
const MachineRecipe FurnaceRecipes[] = {
{IRON_ORE, TYPE_AIR, IRON_INGOT, 60},
{SILVER_ORE, TYPE_AIR, SILVER_INGOT, 70},
{GOLD_ORE, TYPE_AIR, GOLD_INGOT, 80},
{PLATINUM_ORE, TYPE_AIR, PLATINUM_INGOT, 90}
};
void initFurnaceTile() {
initMachineTile(TYPE_FURNACE, FurnaceRecipes, sizeof(FurnaceRecipes) / sizeof(FurnaceRecipes[0]),
1, /* start frame */
8 /* frame divisor */);
}
void updateFurnace(Tile *tile) {
updateMachine(tile, FurnaceRecipes, sizeof(FurnaceRecipes) / sizeof(FurnaceRecipes[0]), WAVE_SINE, 200, 1);
}