Hello,
I thought other developers here might be interested to know that I posted the source code to a virtual pet game of mine on github. Feel free to browse, pull, review, repurpose, republish, and rework as desired.
WEB:
https://github.com/TertiumQuid/Battle-Pet-NetworkGIT: git@github.com:TertiumQuid/Battle-Pet-Network.git
The project's entitled The Battle Pet Network, and contains a native Facebook app built in Rails 2.3.5. It's feature complete, and oriented around asynchronous combat, with other petsite mechanics taking a backseat to the battle system. Quick blurb:
"You'll match wits with other players using the elegant Undercut combat system. Find rival pets and challenge them, secretly choose your pet's actions, and then see who wins as the fight resolves by comparing pet strategies."
"Gameplay
The world is rich with adventure for your pet, of battle and otherwise. Some of the things you'll do together include:
+ Challenging and battling other pets, outwitting your foes with decisive strategies
+ Hunting mutants, hybrids, wild humans, and defending the commonwealth of pets from the sentient menace
+ Equipping your pet with battle gear and collectables to enhance their skills
+ Taming savage humans with your pet's irresistible affection, then putting them to work in the kennels
+ Scavenging the ruins for items, foraging the lands for food and treats
+ Joining or founding a pack with other pets, to fight and glory together
+ Opening a shop in the market and trading in treasure and goods with other pets
+ Playing with friends, helping each other heal, and just chatting, as is the nature of social animals
Features:
+ PETS: Befriending/Retiring; Breeds; Biography; Endurance, Recovery, and Food
+ COMBAT: Actions; Favorite Actions; Strategies; The Undercut Combat System; Recovery
+ CHALLENGES: Challenging Pets; Challenging Packs; Open Challenges
+ EXPERIENCE: Leveling and Pet Advancement
+ OCCUPATIONS: Prowling; Shopkeeping; Scavenging; Foraging; Human Taming
+ SENTIENTS: Ecology; Hunting; Population
+ KIBBLE: Game Currency
+ ITEMS: Belongings; Item Types; Unique Items
+ THE MARKET: Buying Items; Restocking
+ PREMIUM SHOP: PayPal Credit Card and Quick Pay Integration
+ PET SHOPS: Opening a Shop; Running a Shop; Selling Items
+ HUMANS: Ecology; Human Taming; Enslaving Humans; Types of Humans; Co-Existence
+ PACKS: Ecology; Standards/Flags; Founder; Leader; Member Recovery; Treasury and Spoils; Loaning Spoils; Dues; Invitations / Requests
+ SIGNS; Daily Friendship Buffs
+ MESSAGES: Private Messaging
+ LEADERBOARDS: Ranking; Strongest Fighters; Relentless Fighters; Famous Shops; Manlords; Forerunners; Hordes; Ambassadors"
Misc:
+ Full automated test suite, 1:2 code:test ratio, nearly 100% coverage
+ Facebook integration via Facebooker gem
+ Rails 2.3.5 / MySql 5.x
+ PayPal integration via ActiveMerchant gem
I have no intention to update *this* incarnation of the game any further, so don't expect any support. You're welcome to develop a game from the project, but you're on your own.
Cheers,
.t.