Skip to content

Instantly share code, notes, and snippets.

<Scene xmlns="http://schemas.datacontract.org/2004/07/Erebus" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ActiveCamera xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" z:Id="i1">
<Components>
<Component i:type="TypeComponent">
<Type>Camera</Type>
</Component>
<Component i:type="CameraComponent">
<FarClip>1000</FarClip>
<FieldOfView>60</FieldOfView>
<NearClip>1</NearClip>
@kkestell
kkestell / scene.xml
Last active December 10, 2015 21:34
<Scene xmlns="http://schemas.datacontract.org/2004/07/Erebus" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ActiveCamera>
<Components>
<Component i:type="TypeComponent">
<Type>Camera</Type>
</Component>
<Component i:type="CameraComponent">
<FarClip>1000</FarClip>
<FieldOfView>60</FieldOfView>
<NearClip>1</NearClip>
using System;
using OpenTK;
using OpenTK.Graphics;
using System.Reflection;
using System.Collections.Generic;
namespace Erebos
{
public static class Config
{

Smart Pointers

C++11: Smart Pointers

#include <iostream>
#include <memory>

using namespace std;

Nyx

Entities and Scenes

Entities

Entities are defined as JSON files on disk. Here's an example entity:

{

Nyx: Entities and Scenes

Entities

Entities are defined as XML files on disk. Here's an example entity:

<entity type="Camera">
	<components>
		<component type="Nyx.Components.PositionComponent">
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
accept
add
admire
admit
advise
afford
agree
alert
allow
amuse
#!/usr/bin/env ruby
#
# Assumes your Snapfile looks something like this:
#
# devices([ENV['SNAPSHOT_DEVICE']])
# languages([ENV['SNAPSHOT_LANGUAGE']])
#
require 'open4'
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using Microsoft.Xna.Framework;
namespace MapProcessor
{