Giter Site home page Giter Site logo

super-mario-python's Introduction

Super Mario Implementation in Python

This is inspired by Meth-Meth-Method's super mario game

Running

  • $ pip install -r requirements.txt
  • $ python main.py

Standalone windows build

  • $ pip install py2exe
  • $ python compile.py py2exe

Controls

  • Left: Move left
  • Right: Move right
  • Space: Jump
  • Shift: Boost
  • Left/Right Mouseclick: secret

Current state:

Alt text

Dependencies

  • pygame
  • scipy

Contribution

If you have any Improvements/Ideas/Refactors feel free to contact me or make a Pull Request. The code needs still alot of refactoring as it is right now, so I appreciate any kind of Contribution.

super-mario-python's People

Contributors

000nobody avatar aceth8tic avatar acrosman avatar blanky0230 avatar c05cda avatar jackyyzhang03 avatar lonsbio avatar ming060 avatar mitruly avatar morinator avatar mx0c avatar n-kovacevic avatar pntbttrvbs avatar purry03 avatar reece-bennett avatar szymag avatar thomaschr avatar tothzalan avatar veguinho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

super-mario-python's Issues

Soundtrack music plays once

Description
Currently the soundtrack music only plays once when the program is started or the music setting is toggled.

Acceptance Criteria
Loop soundtrack music.

Requirements trouble

I use python 3.10.2 and get some troubles when try to add requirements.txt at my venv. There is source:

image

Then I installed all the dependencies manually and try to start main.py. It works correctly:

image

I understand that specific versions are written in the dependencies so that there are no run problems, but current requirements.txt pygame version returns an error when last pygame version works stably.

Fix CollissionDetection

There are still one or two cases in which the CollissionDetection doesnt work properly. Any Help is welcome!

Double Jump Bug.

Walk ontop of an Enemy, this will make you jump, simply press space (jump) to double jump.

doublejumpbug

Koopa shell only kills Mario

When you step on a Koopa character and make it move, it only kills the player when you hit it, but not the other enemies

Koopa speed is not reset after kicking it

If you jump on a koopa and then kick it, and then jump on it again to stop it from moving, after it's timer thing runs out and it goes back to walking around, it moves at incredible speeds like it would when in shell kick mode. It's speed value is likely not reset after leaving the kicked state.

Syntax error in Input.py

Traceback (most recent call last):
  File "main.py", line 3, in <module>
    from entities.Mario import Mario
  File "C:\Users\reece\Coding\super-mario-python\entities\Mario.py", line 15, in <module>
    from classes.Input import Input
  File "C:\Users\reece\Coding\super-mario-python\classes\Input.py", line 61
    return (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE) or
                                                                             ^
SyntaxError: invalid syntax

One way

Mario shouldn't be able to go backward

Animated coins render with solid white background

Description
The coin animations are currently using a tile that has a solid white background, causing it to appear in the rendered animation.

super_mario_current_coin_tile

Acceptance Criteria
Update the coin tiles so that they are transparent and render properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.