Giter Site home page Giter Site logo

chrischrislolo / tamagotchiclone Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 10.0 756 KB

A tamagotchi clone, made with JavaScript and the Phaser game library.

Home Page: https://hungry-wing-82501e.netlify.app/

HTML 0.02% JavaScript 99.98%
tamagotchi tamagotchi-game phaser phaserjs simulation pet game simulator

tamagotchiclone's Introduction

Tamagotchi Clone

Code by Christian Lo

A tamagotchi clone, made with JavaScript and the Phaser game library.

How to run:

Assuming they haven't killed this link, check it out here: hungry-wing-82501e.netlify.app/ Alternatively: Download/Clone this folder onto your pc, and run via Firefox/Brackets live launcher. Does not work for Chrome at this point in time.

Controls:

Everything uses mouse input. Much of the gameplay elements clone that of a tamagotchi. Your pet will automatically get progressively unhappy/hungry in real time, so take care of it while it's on your desktop.

How To play:

You have a bootleg pet that you can play, feed, bathe, and ultimately take care of. Click on the buttons on the screen to enter each feature. the features are listed as:

  1. Scale: View stats of your pet. If your pet's happiness reaches 0, it gets mad; if it's hunger runs to 0, it "runs away". Use this to keep track of your pet's health.
  2. Meat: Feed your pet. Eating an item consumes it, and you'll have to go to the store to get more.
  3. Toilet: Sometimes your pet does its business. Click this to clean it up. Your pet will get sick if you don't
  4. Activities: Play with your pet, or send your pet to work. This is a great way to recoup happiness/$
  5. Fast Forward: For the impatient. Click on this to move the game forward a "tick" (measument of incremental time in game). Avoid spamming it unless you want to see your pet run away.
  6. Floppy Disc: Save, Load, and Reset your pet's stats for later.
  7. Medic Bag: Heal your pet if it's sick. Pet's hunger will rapidly decrease if it's sick.
  8. Shop: Buy food/games to use on your pet.
  9. Cog: Settings/Cheats. Enable/Disable certain modes, including a ninja invasion mode.
  10. Pet: Click if you're in a menu and wich to return to the main screen.

If your pet "runs away" you should go to the save menu and reset your game.

File structure:

"phaser.js" is library used in this project. The "main" file is found in "game.js", the functions that create a skeleton for the game is in "userInterface.js", and all other files correspond to their respective feature.

Enjoy! I really liked making this.

tamagotchiclone's People

Contributors

chrischrislolo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.