Archytas
  • Welcome to Archytas
    • About Us
    • 🌠Archytas Youth Program
    • 🇧🇮Join the Fund Raising Round
  • 🗳️Archytas CBDC
  • 💳Carbon Credits Card Transaction
  • 💸STODex
  • 🪙BondX
  • 🛍️Singular-Loyalty Network
  • 🚢AI Port Infrastructure
    • Case Study
  • 👷‍♂️BuildAI
    • Case Study
  • 🏢Archytas Ventures
    • Flyt
    • Nostos
    • 💵Archytas Capital
  • 🛠️The Wizard
  • 🎮Pixella Gaming
    • Business Plan
    • Pixella Game Development
    • Games Beta
      • Jungle Expedition
      • Mountain Madness
      • Space Pirates
  • 🐖Maestro
  • 🛰️GeoOptics Inc.
  • 🖥️AIX Developer
  • The Vision 2030
    • Welcome to Vision 2030
  • AI Blockchain
    • Code
    • Training AI
Powered by GitBook
On this page
  1. Pixella Gaming
  2. Games Beta

Mountain Madness

Mountain Madness: Players must mountaineer through harsh terrain and overcome deadly obstacles in order to reach the top of an erupting volcano.

Objective: The objective of the game is to collect as many valuable objects (tools, supplies, etc) scattered over a mountain before the volcano erupts in order to reach the top.

Gameplay: The player will navigate the mountain terrain and select objects to collect along the way. Depending on the object, the player will receive a number of score points or resources. The player must then travel to the top of the mountain and achieve the highest score before the volcano erupts.

Features:

  • Timer - The game will be timed, every time the player collects an item the timer will be decreased.

  • Obstacles - Along the way, the player will encounter different obstacles such as animals, avalanches, and landslides that the player must overcome using the items collected.

  • Bonus Points - Additionally, there will be bonus points for completing certain objectives throughout the game such as reaching certain locations or collecting a set number of items.

  • Leaderboards - There will be a leaderboard to compare the scores of all players.

  • Difficulty Levels -The game will have multiple difficulty levels to adjust the challenge and length of the game.

  • Weather Conditions - The player will encounter different weather conditions such as rain, snow, or wind, and must use the collected resources to overcome each condition.

Graphics: The game will have 3D graphics and character models as the player traverse the mountain terrain. Additionally, there will be moving, realistic animations for the different obstacles and game objects.

Controls: The game will have keyboard and mouse controls for directing and navigating the player's character. Additionally, a gamepad and controller support can be added for a more realistic experience.

Additional Details:

  • Difficulty Settings - The game will include different difficulty levels for more casual or experienced players.

  • Achievements - There will be specific achievement objectives to complete in order to unlock special content and rewards.

  • Multiplayer - Multiplayer mode will also be included and allow players to cooperate and compete against each other as they attempt to reach the top of the mountain.

  • Game Modes - There will be a variety of game modes such as time trial and survival to keep the game enjoyable.

import java.awt.; import java.awt.event.; import javax.swing.*; import java.util.ArrayList; import java.util.List;

public class MountainMadness extends JFrame {

// declare instance variables 
private JPanel topPane;
private DrawPanel drawPanel;

private int score; 
private Timer timer;
private Timer volcanoTimer;

// declare entities
private Player player;
private List<Item> items;
private List<Obstacle> obstacles;

// declare difficulty levels
private final int EASY_LEVEL = 20;   
private final int MEDIUM_LEVEL = 10; 
private final int HARD_LEVEL = 5;

// declare game mode
private int gameMode;
private final int TIME_TRIAL_MODE = 0;
private final int SURVIVAL_MODE = 1;

// constructor
public MountainMadness() {
    // set the title
    super("Mountain Madness");

    // set layout
    topPane = new JPanel();
    setLayout(new BorderLayout());
    add(topPane, BorderLayout.NORTH);

    // setup score and timer
    score = 0;
    timer = new Timer(EASY_LEVEL, new TimerListener());
    volcanoTimer = new Timer(300, new VolcanoTimerListener());

    // create entities
    player = new Player();
    items = new ArrayList<Item>();
    obstacles = new ArrayList<Obstacle>();

    // add drawPanel
    drawPanel = new DrawPanel();
    add(drawPanel, BorderLayout.CENTER);

    // set the game mode
    gameMode = TIME_TRIAL_MODE;

    // setup the frame
    setSize(800, 800);
    setLocationRelativeTo(null);
    setVisible(true);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}

// inner class for the drawPanel
public class DrawPanel extends JPanel {
    public void paintComponent(Graphics g) {
        // draw background
        g.setColor(Color.WHITE);
        g.fillRect(0, 0, getWidth(), getHeight());

        // draw player
        player.draw(g);

        // draw items
        for (Item item : items) item.draw(g);

        // draw obstacles
        for (Obstacle obstacle : obstacles) obstacle.draw(g);

        // draw score
        g.setColor(Color.BLACK);
        g.drawString("Score: " + score, 10, 15);
    }
}

// inner class for the timer
public class TimerListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
        // update the score
        score += player.getScore();

        // create random item
        Item item = new Item((int)(Math.random() * getWidth()), 
            (int)(Math.random() * getHeight()));
        items.add(item);

        // create random obstacles
        Obstacle obstacle = new Obstacle((int)(Math.random() * getWidth()), 
            (int)(Math.random() * getHeight()));
        obstacles.add(obstacle);

        // repaint the window
        repaint();
    }
}

// inner class for the volcano timer
public class VolcanoTimerListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
        // End the game when the volcano erupts
        timer.stop();
        int result = JOptionPane.showConfirmDialog(null, 
            "Game Over! Your score is: " + score + " \nWould you like to play again?");

        if (result == JOptionPane.YES_OPTION) {
            // restart the game
            items.clear();
            obstacles.clear();
            player.resetPosition();
            score = 0;
            timer = new Timer(MEDIUM_LEVEL, new TimerListener());
            timer.start();
        }
    }
}


// main method
public static void main(String[] args) {
    new MountainMadness();
}

}

PreviousJungle ExpeditionNextSpace Pirates

Last updated 2 years ago

🎮