Moon-patrol - A faithful recreation of the 1983 hit classic Moon Patrol for the Atari 2600 created using the Pygame library for Python

Overview

Moon Patrol

A recreation of the hit Atari 2600 game, Moon Patrol

Moon Patrol is made with the PyGame library in Python and has the following features:

  • Endless Generation
    • Never Stops
    • Completely Random Generation
  • Obstacles
    • White, Orange, and Purple aliens (all features included!)
    • Rocks
    • Holes
  • Asthetic Choices
    • Scrolling background complete with stars and mountains
    • All Character and Death Animations
  • Extra Additions
    • A max of 50 ammo which runs out as you shoot
    • Ammo crates spawn randomly
    • Lives can be earned by reaching 10000 points
  • Tanks and mines are not added because objects are spawned randomly on the ground and would create too many enemies

Requirements

  • A computer with python3.8 or higher installed
  • The pygame library (can be achieved by typing pip install pygame into terminal/cmd prompt)

Install

To install, follow the instructions below.

  • Download this Github Repository.
  • Open a terminal/cmd prompt window and cd to the folder you put this game in
  • Open the settings.toml file and set the value to your screen size. For example, on 1080p displays, set it to [1920, 1080]
  • Values like whether or not you want to play in fullscreen can also be changed.
  • Run the command python main.py to run the main script.

Note: if this running the main script fails, try reinstalling pygame with the requirements above or running python3 main.py instead.

Controls

On the menu, press the down arrow to select the button below, or the up arrow to select the button above. Then, press space to press the button. To get out of a certain part of the menu or the game itself, press the escape key.

Inside the game, press the left and right arrows to move forwards and backwards. You can also press the up arrow to jump. To shoot, press the space bar.

Modifications

Want to change certain aspects this game? No problem!

If you want to change a constant (Like gravity, or how fast you move), this repository makes it incredibly easy to do so!

Instructions:

  • Open the code folder.
  • Then, open the modules folder and open the constants.py file with python idle or a different text editor.
  • You can then change the values next to variable names and these changes will show up in the game.

It is also possible to change an asset, like a texture, animation, sound, text, or even a font.

Instructions:

  • Open the content folder and then find an asset inside any of the folders contained in it.
  • Find the asset you want to replace or edit and place it in the folder you found it in with the same file name.

Note: Some texture changes may require changing the constants file accordingly depending on what it is.

You might also like...
Using this you can control your PC/Laptop volume by Hand Gestures (pinch-in, pinch-out) created with Python.
Using this you can control your PC/Laptop volume by Hand Gestures (pinch-in, pinch-out) created with Python.

Hand Gesture Volume Controller Using this you can control your PC/Laptop volume by Hand Gestures (pinch-in, pinch-out). Code Firstly I have created a

Cave Generation using metaballs in Blender. Originally created by sdfgeoff, Edited by Myself (Archie Jaskowicz).

Blender-Cave-Generation Cave Generation using metaballs in Blender. Originally created by sdfgeoff, Edited by Myself (Archie Jaskowicz). Installation

A flag generation AI created using DeepAIs API

Vex AI or Vexiology AI is an Artifical Intelligence created to generate custom made flag design texts. It uses DeepAIs API. Please be aware that you must include your own DeepAI API key. See instructions below for more information.

Automatically Build Multiple ML Models with a Single Line of Code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.
Automatically Build Multiple ML Models with a Single Line of Code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.

Auto-ViML Automatically Build Variant Interpretable ML models fast! Auto_ViML is pronounced "auto vimal" (autovimal logo created by Sanket Ghanmare) N

An Artificial Intelligence trying to drive a car by itself on a user created map

An Artificial Intelligence trying to drive a car by itself on a user created map

Build tensorflow keras model pipelines in a single line of code. Created by Ram Seshadri. Collaborators welcome. Permission granted upon request.
Build tensorflow keras model pipelines in a single line of code. Created by Ram Seshadri. Collaborators welcome. Permission granted upon request.

deep_autoviml Build keras pipelines and models in a single line of code! Table of Contents Motivation How it works Technology Install Usage API Image

Implementation of the paper All Labels Are Not Created Equal: Enhancing Semi-supervision via Label Grouping and Co-training
Implementation of the paper All Labels Are Not Created Equal: Enhancing Semi-supervision via Label Grouping and Co-training

SemCo The official pytorch implementation of the paper All Labels Are Not Created Equal: Enhancing Semi-supervision via Label Grouping and Co-training

IDA file loader for UF2, created for the DEFCON 29 hardware badge

UF2 Loader for IDA The DEFCON 29 badge uses the UF2 bootloader, which conveniently allows you to dump and flash the firmware over USB as a mass storag

Libraries, tools and tasks created and used at DeepMind Robotics.

Libraries, tools and tasks created and used at DeepMind Robotics.

Owner
null
A3C LSTM Atari with Pytorch plus A3G design

NEWLY ADDED A3G A NEW GPU/CPU ARCHITECTURE OF A3C FOR SUBSTANTIALLY ACCELERATED TRAINING!! RL A3C Pytorch NEWLY ADDED A3G!! New implementation of A3C

David Griffis 532 Jan 2, 2023
Space-invaders - Simple Game created using Python & PyGame, as my Beginner Python Project

Space Invaders This is a simple SPACE INVADER game create using PYGAME whihc hav

Gaurav Pandey 2 Jan 8, 2022
Computer vision - fun segmentation experience using classic and deep tools :)

Computer_Vision_Segmentation_Fun Segmentation of Images and Video. Tools: pytorch Models: Classic model - GrabCut Deep model - Deeplabv3_resnet101 Flo

Mor Ventura 1 Dec 18, 2021
Crab is a flexible, fast recommender engine for Python that integrates classic information filtering recommendation algorithms in the world of scientific Python packages (numpy, scipy, matplotlib).

Crab - A Recommendation Engine library for Python Crab is a flexible, fast recommender engine for Python that integrates classic information filtering r

python-recsys 1.2k Dec 21, 2022
Classic Papers for Beginners and Impact Scope for Authors.

There have been billions of academic papers around the world. However, maybe only 0.0...01% among them are valuable or are worth reading. Since our limited life has never been forever, TopPaper provide a Top Academic Paper Chart for beginners and reseachers to take one step faster.

Qiulin Zhang 228 Dec 18, 2022
some classic model used to segment the medical images like CT、X-ray and so on

github_project This is a project for medical image segmentation. This project includes common medical image segmentation models such as U-net, FCN, De

null 2 Mar 30, 2022
Checking fibonacci - Generating the Fibonacci sequence is a classic recursive problem

Fibonaaci Series Generating the Fibonacci sequence is a classic recursive proble

Moureen Caroline O 1 Feb 15, 2022
A Python library created to assist programmers with complex mathematical functions

libmaths libmaths was created not only as a learning experience for me, but as a way to make mathematical models in seconds for Python users using mat

Simple 73 Oct 2, 2022
Worktory is a python library created with the single purpose of simplifying the inventory management of network automation scripts.

Worktory is a python library created with the single purpose of simplifying the inventory management of network automation scripts.

Renato Almeida de Oliveira 18 Aug 31, 2022
A simple pygame dino game which can also be trained and played by a NEAT KI

Dino Game AI Game The game itself was developed with the Pygame module pip install pygame You can also play it yourself by making the dino jump with t

Kilian Kier 7 Dec 5, 2022