Giter Site home page Giter Site logo

rngrpg's Introduction

RNGRPG (Random Number Generator Role-Playing Game)



RNGRPG

About


A simple analog WASD and H key game. The game is simple: Defeat the enemies and find the Gem of Swag ๐Ÿ’Ž (1/10 Drop Rate). The lower the kill count the better. Game design was based off of Space invaders and Pac-Man game development.

image

image

Motivation


This game was created for my love of MMORPGs. Inspired by games with drop rates and rare items. RNG based games have always intrigued me because people love a good grind to find items that would boosts the character stats. This is a short homage, to games that give us that dopamine when trying to find rare items for your character.

Game Logic / Game Mechanic


Created with Object Oriented programming in mind. Each class/object has X & Y coordinates. The bullets/attack event happens at the players X & Y coordinate and is put into an array. If the Mob(Moveable Objects) / enemies are in the same X & Y coordinate as the bullets then the collision will trigger a class method to reduce the Mobs health. The game takes place in a canvas element in HTML allowing graphical and color elements to be drawn. The top left corner of the canvas element is the origin and the game is based off of those coordinate positions.

Wireframe


image

Live ScreenShot


image

Technology


HTMLCSSJS

Improvements / Future Implementations


  • Randomize mob movement (create mobs that move)
  • Fix lose condition to end when collision and health reduction
  • Add more items to boost damage or add health
  • Add Pond to make a game within a game to obtain more items
  • Need to map out border to prevent player from going off screen

Credit


Special Thanks to Colton Wright for the idea of using Pac-Man / Space Invaders game mechanics.

Links Used


(Game Foundation)

(Future Use to build map collision)

(2D collision Detection)

(Random Number Generation)

(Game movement)

rngrpg's People

Contributors

memeengineer avatar

Stargazers

De Sean Ward avatar Kevin avatar  avatar Keith Andrew Martinez avatar  avatar  avatar Cynthia Chioma Obia avatar Ron Powell avatar Clement Kinyui Ndimuangu avatar  avatar Mahamadou Tirera avatar  avatar  avatar Alexander Gomez avatar Vanessa Beattie avatar  avatar  avatar

Watchers

 avatar Keith Andrew Martinez 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.