Cat and Fish Game Overview:
The Cat and Fish Game is a dynamic and interactive game where players guide a cat in its quest to catch fish. This project is implemented using the Jack programming language and demonstrates an engaging combination of gameplay mechanics and computational logic.
Gameplay Objective: Control the cat and catch as many fish as possible.
Environment: The game world is designed with a vibrant and playful theme. Fish move randomly across the screen, making them a challenge to catch.
Challenges: Avoid obstacles and strategize your movements to maximize your score.
Features Interactive Controls: Smooth and responsive control system for navigating the cat. Randomized Behavior: Fish exhibit random movements, adding unpredictability to gameplay. Scoring System: Tracks and displays the player’s score based on successful catches. Modular Design: The game is broken into multiple components for clarity and expandability.
Code Structure The game is implemented in multiple .jack and .vm files, each representing a specific aspect of the game:
Cat.jack & Cat.vm: Defines the behavior and actions of the cat character. Fish.jack & Fish.vm: Contains the logic for the fish movements and interactions. CatGame.jack & CatGame.vm: Manages the core game loop and interactions between the cat and fish. Random.jack & Random.vm: Provides utility functions for generating random movements and events. Main.jack & Main.vm: Acts as the entry point for the game.
How to Run Compile all .jack files using a Jack-to-VM compiler. Load the .vm files into the virtual machine. For your comfortable use this IDE to load and conpile the Jack files: https://nand2tetris.github.io/web-ide/vm Start the game and enjoy!
AUTHORS: Created by Nir Itzik and Itay Bardin