Skip to content

Instantly share code, notes, and snippets.

{
"Rat": {
"kind":2,
"moveSpeed":350,
"idleSpeed":700,
"shadowOffsetY":-2,
"isAggressive":false,
"hp":80,
"armor":1,
"weapon":1,
/* global bootKind, _, exports, module, Types */
Types = {
Quest: {
TOTAL_QUEST_NUMBER: 35
},
Messages: {
CREATE: 0,
LOGIN: 1,
var Items = {},
_ = require("underscore"),
Types = require("gametypes"),
ItemsJson = require("../data/items.json");
module.exports = Items;
var ItemData = {};
_.each( ItemsJson, function( value, key ) {
ItemData[key.toLowerCase()] = {
{
"Sword1": {
"kind":60,
"type":"weapon",
"attack":1,
"name":"Sword"
},
"Sword2": {
"kind":61,
"type":"weapon",
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.1.10-MariaDB - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Version: 9.3.0.4984
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
@Langerz82
Langerz82 / Game2.cs
Created October 18, 2016 19:50
Monogame - TiledSharp - Parsing TMX file with several layers, Scrolling Enabled. - Joshua Langley
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Diagnostics;
using System.Xml.Linq;
using TiledSharp;
namespace GameExample
{
@Langerz82
Langerz82 / Game1.cs
Created October 19, 2016 19:46
debugging
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Diagnostics;
using System.IO;
using TiledSharp;
namespace Game1
{
/// <summary>
WORKDIR = %cd%
CC = x86_64-w64-mingw32-gcc.exe
CXX = x86_64-w64-mingw32-g++.exe -m32
AR = x86_64-w64-mingw32-gcc-ar.exe
LD = x86_64-w64-mingw32-g++.exe -m32
WINDRES = windres.exe
INC = -I.
CFLAGS = -pedantic-errors -pedantic -Wfatal-errors -Wextra -Wall -std=gnu++1y
#
# time Makefile
#
CC = x86_64-w64-mingw32-gcc.exe
AR = x86_64-w64-mingw32-gcc-ar.exe
CFLAGS = -O2 -fPIC -Wall -ansi -pedantic -std=c99 -ltime
INCLUDE = -I"D:\\Program Files\\mingw-w64\\x86_64-4.9.1-release-posix-sjlj\\mingw64\\x86_64-w64-mingw32\\include"
SHLD = ${CC} ${CFLAGS} $(INCLUDE)
WORKDIR = %cd%
CC = gcc.exe -m32
CXX = g++.exe -m32
AR = ar.exe -m32
LD = g++.exe -m32
WINDRES = windres.exe
INC = -I. -Ilib -I"D:\\Program Files\\mingw-w64\\x86_64-4.9.1-release-posix-sjlj\\mingw64\\x86_64-w64-mingw32\\include" -I"D:\\Program Files\\mingw-w64\\x86_64-4.9.1-release-posix-sjlj\\mingw64\\include"
CFLAGS = -pedantic-errors -pedantic -Wfatal-errors -Wextra -Wall -std=gnu++1y