Skip to content

Instantly share code, notes, and snippets.

View timothyhahn's full-sized avatar

Timothy Hahn timothyhahn

View GitHub Profile
/**
* From Bullet.cpp
*/
//Creates the bullet
Bullet::Bullet() {
setPosition(100,100);
setDirection(NORTH);
setHealth(1);
setMovementRate(10);
setWidth(5);
  • Pick up items
  • Enemy AI Movement and attack
  • NPC Movement
  • Accept Quests from NPC
  • Equip and Unequip messages
  • Use Items
  • Drop Items
  • Loot enemies (optional)
  • Enemies drop items
  • Cancel Quests

Keybase proof

I hereby claim:

  • I am timothyhahn on github.
  • I am timothyhahn (https://keybase.io/timothyhahn) on keybase.
  • I have a public key whose fingerprint is 4AB0 313F 0401 AF63 5B29 72DC E529 2AD3 D241 6789

To claim this, I am signing this object:

@timothyhahn
timothyhahn / gist:9255423
Created February 27, 2014 18:03
updated design
NetworkMessageInterpreter
Network Message Comes In
-> Init
-> Create Character Entity
-> Create SockoSender
-> Associate websocket id to User's ID
-> Other
-> Look up user's id based on websocket id
-> Look up user's world's name
-> Toss onto queue the message + id + room name
$ sudo su
# apt-get update
# apt-get install python-software-properties
# add-apt-repository ppa:nginx/stable
# apt-get update
# apt-cache show nginx
# ## Find the one with nginx version 1.4.4 and copy and paste it below where $VERSION is
# ## (for example 1.4.4-1~precise)
# apt-get install nginx=$VERSION
# cd /etc/nginx/sites-enabled