【源码好又多】Python超级马里奥源代码

程序运行截图

【源码好又多】Python超级马里奥源代码_第1张图片

【源码好又多】Python超级马里奥源代码_第2张图片

使用Python实现的超级马里奥源程序,程序行入口marrio_level_1.py,本程序可实现单人或双人游戏。运行程序请需安装pygame,data为程序相关文件,其中components为程序中各种组件,resources为资源文件(含字体、声音、图形等)

main.py

__author__ = '源码好又多'
from . import setup,toolsfrom .states import main_menu,load_screen,level1from . import constants as c

def main():    """Add states to control here."""    run_it = tools.Control(setup.ORIGINAL_CAPTION)    state_dict = {c.MAIN_MENU: main_menu.Menu(),                  c.LOAD_SCREEN: load_screen.LoadScreen(),                  c.TIME_OUT: load_screen.TimeOut(),                  c.GAME_OVER: load_screen.GameOver(),                  c.LEVEL1: level1.Level1()}
    run_it.setup_states(state_dict, c.MAIN_MENU)    run_it.main()

你可能感兴趣的:(源码分享,马里奥,python,python,源码,游戏)