Skip to content

Instantly share code, notes, and snippets.

@jedStevens
Created July 4, 2018 17:51
Show Gist options
  • Save jedStevens/1d375de617e6b1948cf7ebcfcd890713 to your computer and use it in GitHub Desktop.
Save jedStevens/1d375de617e6b1948cf7ebcfcd890713 to your computer and use it in GitHub Desktop.
This creates recipes and stores them
extends Node
const NONE = -1
const LOG_ID = 0
const CRAFTING_TABLE_ID = 1
var CRAFTING_TABLE_RECIPE
func _ready():
var Recipe = load("res://recipe.gd")
CRAFTING_TABLE_RECIPE = Recipe.new()
CRAFTING_TABLE_RECIPE.create([LOG_ID], Vector2(1,1), CRAFTING_TABLE_ID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment