Skip to content

feliperyba/taarapitas.gamble

Repository files navigation

Taarapita´s Gamble

RogueLite Slot Machine game with Pixi.JS and Angular 6

You can play it online here!

The Chronicle of Henry of Livonia mentions Tharapita as the superior god of the Oeselians (inhabitants of Saaremaa), also well known to Vironian tribes in northern Estonia. According to the chronicle, when the crusaders invaded Vironia in 1220, there was a beautiful wooded hill in Vironia, where locals believe Tharapita was born and from which he flew to Saaremaa.

Now since the mighty God has left, is upon to you to complete his task and Gamble new adventures against the Dark Elf lord. Choose from 4 different characteres, wich one with your own unique abilities and test your mighty ( and luck ) agaist your enemies.

Installation

Prerequisites

npm install

// OR 

yarn install

Game Design and Rules

This is game is based on the main principles of a slot machine game. You take one credit to spin the reels and if you land any combination, you'll earn credits and fill your special bar. If none combination was landed, you´ll take 5 hit points.

The possibles combinatios are:

  • 3 DARK ELF symbols on top line 2000
  • 3 DARK ELF symbols on center line 1000
  • 3 DARK ELF symbols on bottom line 4000
  • 3 MINOTAUR symbols on any line 150
  • Any combination of DARK ELF and MINOTAUR on any line 75
  • 3 3xGOBLINS symbols on any line 50
  • 3 2xGOBLINS symbols on any line 20
  • 3 GOBLINS symbols on any line 10
  • Combination of any GOBLINS symbols on any line 5

If you strike 3 wins, your skill ability will be ready to use. This skill does not cost any credits and if you lose the spin, you´ll not lose any point of life.

Also, there´s a possibility to buy health potions... for the right price. Each time you use this, the price on the potion will double.

The main goal is to survive as much as you can. Some characters makes use of the skill into then and other make it to the reel. Take a look and read each description :

For test reasons, I´ve made a debug section where you can test specific land positions on each reel and also add credits to you character

Personal view

That was my first time trying to use Pixi.js as the renderer of my game. Luckly I decided early in be using Angular 6 and Typescript. This has helped a lot in maintain the code estructure. Tried to stick as much as possible into SOLID principles and make use of design patterns to achieve a nice code, even though it started to get big..

Also was a very challenge situation to try and mix RogueLite elements into a slot game machine, but I'm satisfied where this concept has reached, for sure still plenty of room to play a little more in this subject. And I just really love roguelikes... Their mechanics can be abstract for every kind of game.

Since I really do not know in depth Pixi.JS, the animations design and GUI design was the pain point during the development of this project. It took much trial and error until I was able to work good with the library, but after that, I really got used to it and I can see some future uses.

Authors

  • Felipe Rybakovas

  • Reel spin animation logic was taken from PixiJS

  • The Symbols and Character are from Justin Nichol. (Support the guy, he´s good)

  • The other Images are all pre owned and edited by me and you do not have the rights to :

    • Use
    • Edit
    • Redistribute

    PS : This game should be using the Primitive Font, But I was not able to make it works on remote server. Local should apply correctly

About

Pixi.js / Angular 6 RogueLite Slot Machine game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published