Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // machineData.js
- // This object stores metadata for each machine by image filename
- const machineData = {
- "Black_Square32.jpg": {
- name: "Black Square",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 0,
- },
- "Conveyor.png": {
- name: "Conveyor",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 10,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ]
- },
- //3d
- "Down_Conveyor_wip.png": {
- name: "Down Conveyor",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- },
- "Filter_Left.png": {
- name: "Filter Left",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 250,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "left", offset: [0, 0] }
- ]
- },
- "Filter_Right.png": {
- name: "Filter Right",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 250,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "right", offset: [0, 0] }
- ]
- },
- "Ore_Smelter.png": {
- name: "Ore Smelter",
- width: 3,
- height: 1,
- shape: [
- [1, 1, 1],
- ],
- cost: 380,
- inputs: [
- { direction: "behind", offset: [1, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] },
- { direction: "left", offset: [0, 0] }
- ]
- },
- "Overflow_Left.png": {
- name: "Overflow Left",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "left", offset: [0, 0] }
- ]
- },
- "Overflow_Right.png": {
- name: "Overflow Right",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "right", offset: [0, 0] }
- ]
- },
- "Red_Square32.jpg": {
- name: "Red Square",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 0,
- },
- "Splitter_Left.png": {
- name: "Splitter Left",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "left", offset: [0, 0] }
- ]
- },
- "Splitter_Right.png": {
- name: "Splitter Right",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "right", offset: [0, 0] }
- ]
- },
- "Splitter_Three_Way.png": {
- name: "Splitter Three Way",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] },
- { direction: "left", offset: [0, 0] },
- { direction: "right", offset: [0, 0] },
- ],
- },
- //3d
- "Up_Conveyor_wip.png": {
- name: "Up Conveyor",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 50,
- },
- "White_Square32.jpg": {
- name: "White Square",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 0,
- },
- //not technically a machine
- "Seller.png": {
- name: "Seller",
- width: 3,
- height: 3,
- shape: [
- [1, 1, 1],
- [1, 1, 1],
- [1, 1, 1],
- ],
- cost: 0,
- },
- //not a machine
- "Car_Spawner.png": {
- name: "Car Spawner",
- width: 8,
- height: 10,
- shape: [
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1],
- [1, 1, 1, 1, 1, 1, 1, 1]
- ],
- cost: 0,
- },
- // ===== Check this one!! Its 2 wide, but only 1 has colision ===== \\
- "Ore_Cleaner.png": {
- name: "Ore Cleaner",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 80,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Polisher.png": {
- name: "Polisher",
- width: 2,
- height: 1,
- shape: [[1, 1]], // basic square
- cost: 250,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Crusher.png": {
- name: "Crusher",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 1750,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Coiler.png": {
- name: "Coiler",
- width: 3,
- height: 1,
- shape: [[1, 1, 1]], // basic square
- cost: 1750,
- inputs: [
- { direction: "behind", offset: [1, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] }
- ],
- },
- "Topaz_Prospector.png": {
- name: "Topaz Prospector",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 2000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Brick_Mold": {
- name: "Brick Mold",
- width: 2,
- height: 1,
- shape: [[1, 1]],
- cost: 2500,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Bolt_Machine.png": {
- name: "Bolt Machine",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 2800,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Plate_Stamper.png": {
- name: "",
- width: 3,
- height: 1,
- shape: [[1, 1, 1]], // basic square
- cost: 3000,
- inputs: [
- { direction: "behind", offset: [1, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] }
- ],
- },
- //COME BACK TO THIS AFTER GETTING 3D WORKING, ITS 2 TALL
- //sifter
- "Sifter.png": {
- name: "Sifter",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 10,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Pipe_Maker.png": {
- name: "Pipe Maker",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 4000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Kiln.png": {
- name: "Kiln",
- width: 3,
- height: 1,
- shape: [[1, 1, 1]], // basic square
- cost: 4750,
- inputs: [
- { direction: "behind", offset: [1, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] }
- ],
- },
- "Emerald_Prospector.png": {
- name: "Emerald Prospector",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 5000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Gem_Cutter.png": {
- name: "Gem Cutter",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 7500,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Mechanical_Parts_Maker.png": {
- name: "Mechanical Parts Maker",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 8000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Sapphire_Prospector.png": {
- name: "Sapphire Prospector",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 8000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Electronic_Tuner.png": {
- name: "Electronic Tuner",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 8500,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- "Frame_Maker.png": {
- name: "Frame Maker",
- width: 3,
- height: 2,
- shape: [[0, 1, 0],
- [1, 1, 1]
- ],
- cost: 10000,
- inputs: [
- { direction: "left", offset: [0, 1] },
- { direction: "right", offset: [2, 1] }
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] }
- ],
- },
- //check this one when the game updates, its got an empty space inside it that probably doesnt belong.
- "Cement_Mixer.png": {
- name: "Cement Mixer",
- width: 3,
- height: 2,
- shape: [[1, 0, 1],
- [0, 0, 1]
- ], // basic square
- cost: 10000,
- inputs: [
- { direction: "behind", offset: [2, 1] },
- { direction: "right", offset: [2, 0] }
- ],
- outputs: [
- { direction: "left", offset: [0, 0] }
- ],
- },
- "Ruby_Prospector.png": {
- name: "Ruby Prospector",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 15000,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- //3d
- "Ring_Maker.png": {
- name: "Ring Maker",
- width: 2,
- height: 3,
- shape: [[1, 1],
- [1, 1],
- [1, 1]
- ], // basic square
- cost: 15000,
- inputs: [
- { direction: "behind", offset: [1, 0] },
- { direction: "behind", offset: [1, 2] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 1] }
- ],
- },
- "Circuit_Maker.png": {
- name: "Circuit Maker",
- width: 3,
- height: 3,
- shape: [
- [1, 1, 1],
- [1, 1, 1],
- [1, 1, 1],
- ],
- inputs: [
- { direction: "right", offset: [2, 1] }, // middle right
- { direction: "right", offset: [1, 2] } // bottom right
- ],
- outputs: [
- { direction: "forward", offset: [1, 0] } // top middle
- ],
- cost: 20000,
- },
- // Add more
- };
- export default machineData;
- /*
- ".png": {
- name: "",
- width: 1,
- height: 1,
- shape: [[1]], // basic square
- cost: 10,
- inputs: [
- { direction: "behind", offset: [0, 0] }
- ],
- outputs: [
- { direction: "forward", offset: [0, 0] }
- ],
- },
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement