Skip to content

Instantly share code, notes, and snippets.

View spacechase0's full-sized avatar

Casey W spacechase0

View GitHub Profile
@spacechase0
spacechase0 / Root.gd
Created July 9, 2021 07:57
SpaceECS v2
extends Node2D
func _physics_process(delta):
var vels = get_tree().get_nodes_in_group( "components/VelocityComponent" )
for node in vels:
var vel = node.get_component( "VelocityComponent" )
node.move_and_collide( vel.velocity * delta )
@spacechase0
spacechase0 / Program.cs
Last active August 19, 2021 15:02
Adding fields dynamically to XMLSerializer test
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
{
"Format": "1.24.0",
"Changes": [
{
"Action": "EditData",
"Target": "spacechase0.MonstersTheFramework/Monsters",
"Entries": {
"SpookySkeletonMage": {
"Name": "{{i18n: spooky-skeleton-mage}}",
"CorrespondingMonsterGoal": "Skeleton Mage",
@spacechase0
spacechase0 / content.json
Created March 7, 2024 01:10
Furniture Tile Properties Example
{
"Action":"EditData",
"Target":"spacechase0.SpaceCore/FurnitureExtensionData",
"Entries":
{
"1304":
{
"TileProperties": {
"0, 0": {
"Buildings": {
@spacechase0
spacechase0 / content.json
Created March 7, 2024 01:13
Custom shop tabs
{
"Action":"EditData",
"Target":"spacechase0.SpaceCore/ShopExtensionData",
"Entries":
{
"SeedShop":
{
"Tabs": "Custom",
"CustomTabs": [