Git Product home page Git Product logo

batmangame's Introduction

BatmanGameGeneral explanation of the exercise:

In this project, we were required to create a version of the game "The Digger". In which the player controls a character who must consume diamonds while avoiding monster attacks and is given a set number of stones to eat at the start of each stage. We reboot the digger and monsters to their original locations if the digger is consumed by a monster. The game also has a time limit; if the time limit expires, the stage is restarted and taken down to the "fish for life" screen. Additionally, the digger will be able to consume gifts, which will increase life, time, and the number of stones that may be consumed. if the digger consumes more stones than it is permitted to the player will have to start over the level.

Design:

We created a game controlled by a controller. It makes use of the BORAD's memory. Additionally, we created a department that assists controllers in managing the game in a "object-oriented" programming manner by breaking it up into objects, each of which has distinct functions. Additionally, we have a ResourceManager class that runs in Singleton mode, reads all game-related files including photos, FONT, music, and SPRITESHEET, and is initialized just once. Additionally, there are classes for every item in the game, including monsters, dig tools, gifts, walls, and stones. In order to check for conflicts between the game's objects, we also employed the double-dispatch mechanism

Key data structures and their function:

  • vector of levels in the game control
  • vector of monsters in the board
  • vector of unmovable objects in the board
Notable algorithms:

When it is their turn to move, each intelligent monster measures the distance from every possible location to the digger's location and then selects the site where the distance is the shortest. We originally developed the algorithm to let the monster stay in its location if that was a closer spot to the digger but it looked uninteresting that the monsters wouldn't move sometimes. It should be noted that the creatures will only stay in their place if they have no feasible method to move..

Known bugs:

Smart Monster chase can be improve.

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.