make a game using python to create a game similar to Super Mario Bros. That players will try to complete levels to get to the next level. Facing enemies and collecting power-ups and other items....

1 answer below »

make a game using python to create a game similar to Super Mario Bros. That players will try to complete levels to get to the next level. Facing enemies and collecting power-ups and other items. Players will have a time limit to make it to the end or they’ll lose.



Deliverables:


· Creating a goal to achieve at the end of the level.


· Enemies and the abilities.


· Power-ups and collectables.


· Time and score.

Answered 8 days AfterOct 19, 2021

Answer To: make a game using python to create a game similar to Super Mario Bros. That players will try to...

Sathishkumar answered on Oct 28 2021
120 Votes
pygame-1/audio/grenade.wav
pygame-1/audio/jump.wav
pygame-1/audio/music2.mp3
Grunge Street Game
Eric Matyas
4
Soundtrack
52872.0
eng -
QMAYT1401027�
pygame-1/audio/shot.wav
pygame-1/button.py
import pygame
#button class
class Button():
    def __init__(self,x, y, image, scale):
        width = image.get_width()
        height = image.get_height()
        self.image = pygame.transform.scale(image, (int(width * scale), int(height * scale)))
        self.rect = self.image.get_rect()
        self.rect.topleft = (x, y)
        self.clicked = False
    def draw(self, surface):
        action = False
        #get mouse position
        pos = pygame.mouse.get_pos()
        #check mouseover and clicked conditions
        if self.rect.collidepoint(pos):
            if pygame.mouse.get_pressed()[0] == 1 and self.clicked == False:
                action = True
                self.clicked = True
        if pygame.mouse.get_pressed()[0] == 0:
            self.clicked = False
        #draw button
        surface.blit(self.image, (self.rect.x, self.rect.y))
        return...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here