Julian Tomlin Design

Selection - Virtual Pet Breeding Browser Game

Selection-Mock.png
 

My Role: Full-stack Development

Selection is a browser based virtual pet breeding game. Each pet has their own DNA that can be passed on to their offspring. Players can selectively breed for specific traits such as body color, ear size or intelligence to make their ideal creature.

Project Goals:

  1. Create a game that incorporates genetics within a breeding simulation.

  2. Update stats in real time using little processing power and network traffic.

 

My Responsibilities

 

Back-end Game Logic

Database Planning

CSS layout and animations

Game Design

Wire-framing

Front-end Coding

 

Tools Used

PostgreSQL

React

Sketch

Javascript

Slack

GitHub

 
bluecolor.png

One Cool Thing

 

One of the core functionalities of this game had to do with sending your pets to work, where you could see them earning you money in real time. The amount of money your pets earned depended on their stats as well as how well cared for they are. The more hungry and unhappy your pet is the less money they will make per second. Your pets hunger and happiness would also decrease over time at a speed determined by the creatures other stats.

 

In order to to keep the load on the server light all the above statistics were calculated in real time using linear and quadratic equations. When the page first loads a query is made to the database for all the necessary data for the equations with the only variable, current time, being constantly derived from the client. Whenever a player takes an action, such as feeding the pet or sending it to work, the server calculates the pet’s stats at the time of the server request using the current server time as the variable and logs that data into the database for future calculations.

 
 

Visit Website*

* chrome only