This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name InventoryPanel | |
extends PopupDialog | |
export var item_slot_scene : PackedScene | |
export var scroll : NodePath | |
onready var scroll_node : ScrollContainer = get_node(scroll) | |
export var grid : NodePath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends KinematicBody2D | |
export(float) var speed := 8.0 | |
export(float) var jump_impulse := 200.0 | |
export(float) var max_speed := 200.0 | |
export(float) var gravity_multiplier := 1.0 | |
export(float) var snap_length := 5.0 | |
export(float) var floor_damping := 200.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends GridContainer | |
export var connect_on_ready : bool | |
func _ready() -> void: | |
if connect_on_ready: | |
connect_children() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
public class EditorGUITools : GUITools | |
{ | |
public static void DrawOutlineRect(Rect rect) | |
{ | |
DrawHorizontalLine(new Vector2(rect.x, rect.y), rect.width); | |
DrawVerticalLine(new Vector2(rect.x, rect.y), rect.height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Threading; | |
using SimplexNoise; | |
public class TerrainGenerator : MonoBehaviour | |
{ | |
[SerializeField] protected int m_Size = 512; // TODO: Require PoT sizes | |
[SerializeField] protected float m_Height = 32.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** OutlineMesh.cs | |
*/ | |
//#define DEBUG | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
[CustomEditor(typeof(Font))] | |
public class FontEditor : Editor | |
{ | |
Font m_Font; | |
static bool m_TilingControlsVisible; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: runevision | |
// URL: http://wiki.unity3d.com/index.php?title=Triangulator | |
// Version: http://wiki.unity3d.com/index.php?title=Triangulator&oldid=14208 | |
// | |
// Then modified a bit. -NC | |
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Upgrade NOTE: replaced 'PositionFog()' with multiply of UNITY_MATRIX_MVP by position | |
// Upgrade NOTE: replaced 'V2F_POS_FOG' with 'float4 pos : SV_POSITION' | |
// Upgrade NOTE: replaced 'glstate.matrix.projection' with 'UNITY_MATRIX_P' | |
Shader "Mine/Spatial Cutoff Test" | |
{ | |
Properties | |
{ | |
_Color ("Main Color", Color) = (1,1,1,1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated automatically from Makefile.pre by makesetup. | |
# Top-level Makefile for Python | |
# | |
# As distributed, this file is called Makefile.pre.in; it is processed | |
# into the real Makefile by running the script ./configure, which | |
# replaces things like @spam@ with values appropriate for your system. | |
# This means that if you edit Makefile, your changes get lost the next | |
# time you run the configure script. Ideally, you can do: | |
# | |
# ./configure |