Skip to content

Portal Game is a Java-based 2D platformer where players collect apples, avoid enemies, and navigate levels using portals. The game combines platforming challenges with teleportation mechanics for an engaging experience.

Notifications You must be signed in to change notification settings

Bilal-Ahmad102/Portal-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Portal Game

Portal Game is a Java-based 2D platformer game in which players navigate through a world with portals, enemies, and obstacles. The goal is to collect apples, avoid enemies, and navigate through the level using portals.

Table of Contents

Game Overview

In Portal Game, players control a character that can move left, right, jump, and use portals to navigate the level. The objective is to collect apples while avoiding enemies and obstacles. Portals allow the player to teleport to different areas of the level. The game ends when the player is defeated by an enemy.

Requirements

  • Java Development Kit (JDK) 8 or later

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Bilal-Ahmad102/Portal-game.git
  2. Navigate to the cloned repository directory:

    cd Portal-game
  3. Compile the Java files:

    javac Portal.java Board.java
  4. Run the game:

    java Portal

How to Play

  • Control your character using the arrow keys.
  • Avoid enemies and obstacles.
  • Jump on the heads of enemies to defeat them.
  • Use portals to teleport to different areas of the level.

Game Controls

  • Move Left: Press the Left Arrow key.
  • Move Right: Press the Right Arrow key.
  • Jump: Press the Up Arrow key or the Space bar.

Gameplay

Watch the full gameplay video on YouTube: https://youtu.be/jZCNiVX3_Us

Screenshots

Here are some screenshots of the Portal Game in action:

Screenshot 1 Character navigating through the level using portals.

Screenshot 2 Collecting apples while avoiding enemies and obstacles.

Screenshot 3 Game Over Screen.

Screenshot 4 Player in the air.

Screenshot 5 Player on ledge.

About

Portal Game is a Java-based 2D platformer where players collect apples, avoid enemies, and navigate levels using portals. The game combines platforming challenges with teleportation mechanics for an engaging experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages