/heistwars

Primary LanguageJavaScript

Screenshot 2024-05-02 072913

Heist Wars

Heist Wars is an HTML canvas game inspired by the classic 1984 text-based game "Drug Wars". In this modern reinterpretation, players navigate a real-world inspired market, buying and selling valuable assets like diamonds, emeralds, and rubies. The game combines economic strategy with interactive gameplay, set against the backdrop of various global marketplaces.

Project Overview

Players start with a set amount of cash, bank funds, and debt, making strategic decisions to buy low and sell high, travel between different cities like New York, Hong Kong, and Dubai, and manage their inventory effectively. Each city offers unique market opportunities and challenges. The game uses HTML5 Canvas for rendering, JavaScript for game logic, and custom CSS for styling.

Key Features

  • Dynamic Markets: Each city has its own fluctuating market prices, influenced by real-world economic principles.
  • Strategic Gameplay: Players must manage their resources carefully, deciding when and where to buy or sell.
  • Interactive UI: Utilizes HTML Canvas for a fully interactive user interface, allowing for immersive gameplay.
  • Global Settings: From the bustling streets of New York City to the luxurious markets of Dubai, players experience diverse trading environments.

Technologies Used

  • HTML5 Canvas: For rendering game graphics and animations.
  • JavaScript: Powers the core game mechanics and interactions.
  • CSS: For styling and animations, ensuring a responsive and engaging user interface.

Design and Implementation

The game's architecture centers around modular JavaScript classes like Background, Cursor, Location, and various gameplay mechanics such as Inventory management and dynamic pricing models. Players interact with the game using keyboard inputs, which are handled through event listeners to create a responsive gaming experience.

Insights and Challenges

Developing a game that simulates economic principles in a realistic yet engaging way was challenging. Balancing the gameplay to prevent it from being too easy or too hard required careful tuning of the market algorithms and player interactions- and this game is still not done!!

Purpose

This project serves as a showcase of my capabilities in creating interactive web applications with complex logic and user interactions. It's designed to demonstrate my understanding of both game design, economic principles, and object-oriented programming, as well as my ability to implement these concepts using modern web technologies.