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
| /* | |
| * Game.cpp | |
| * | |
| * Created on: Jul 3, 2010 | |
| * Author: itsbth | |
| */ | |
| #include "Game.h" | |
| #include <SFML/System/Clock.hpp> |
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
| import re | |
| from random import randint | |
| RANK = 10 | |
| RE = re.compile("[\w']+") | |
| dct = dict() | |
| def _tuples(arr, r): |
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
| ''' | |
| Created on 3. sep. 2010 | |
| @author: itsbth | |
| ''' | |
| import re | |
| _ESCAPE_STRING_RE = re.compile('([\1\2])') | |
| def encode(data): |
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
| CC=gcc | |
| CFLAGS=-Wall -std=c99 -ggdb | |
| main: main.o hash.o | |
| clean: | |
| rm -f main main.o hash.o |
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
| --- | |
| - API | |
| - AbandonQuest | |
| - AbandonSkill | |
| - AcceptAreaSpiritHeal | |
| - AcceptArenaTeam | |
| - AcceptBattlefieldPort | |
| - AcceptDuel | |
| - AcceptGroup | |
| - AcceptGuild |
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
| WORLD_SIZE = [0..31] | |
| BLOCKS = _([1, 1, 33, 34, 50]).reverse() | |
| class Renderer | |
| constructor: (@ctx, @grid, @terrain) -> | |
| render: -> | |
| for x in WORLD_SIZE | |
| for y in WORLD_SIZE | |
| @grid[x][y].render @, {x: x, y: y} | |
| null |
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
| WORLD_SIZE = [0..31] | |
| BLOCKS = _([1, 1, 33, 34, 50]).reverse() | |
| Vector = { | |
| add: (a, b) -> | |
| {x: a.x + b.x, y: a.y + b.y} | |
| subtract: (a, b) -> | |
| {x: a.x - b.x, y: a.y - b.y} | |
| multiply: (a, b) -> | |
| {x: a.x * b, y: a.y * b} |
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
| WORLD_SIZE = [0..31] | |
| BLOCKS = _([1, 1, 33, 34, 50]).reverse() | |
| Vector = { | |
| add: (a, b) -> | |
| {x: a.x + b.x, y: a.y + b.y} | |
| subtract: (a, b) -> | |
| {x: a.x - b.x, y: a.y - b.y} | |
| multiply: (a, b) -> | |
| {x: a.x * b, y: a.y * b} |
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
| from lxml.etree import parse | |
| NS = {'svg': 'http://www.w3.org/2000/svg'} | |
| CMD = 'ctx.{0}({1}, {2});' | |
| FUN = r''' | |
| function (ctx) {{ | |
| ctx.save(); | |
| ctx.beginPath(); | |
| {0} | |
| //ctx.closePath(); |
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
| HUBOT_IRC_SERVER=irc.gamesurge.net | |
| HUBOT_IRC_ROOMS=#wiremod | |
| HUBOT_IRC_NICK=ITSBOT | |
| HUBOT_WOLFRAM_APPID=-snip- |
OlderNewer