Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use python to make Super Mary

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is about how to use python to make Super Mary, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Introduction

Super Mary-how many people remember this classic game? The moustache in the hat and the Mario in the braces!

Take you to review the classic memories, Super Mario saved unhappy! Cool attack.

If you have been brainwashed by magic lights ~ lights in your childhood, then come to nostalgia!

I am the gorgeous dividing line--

In the past, the actual combat of the game has accumulated to more than 30 articles, oh ~ hey, push a wave before, dog head save life. Jpg.

Welcome to get the free game, play ~ the source code can come directly to me to get a drop!

All the big guys here, how many games have you played?

The previous Pygame practice is as follows: childhood Classic: python version of childhood memoirs 4399 eat Doudou Mini Game

The previous Pygame practice is as follows: nanny-level python tutorial to write a gluttonous snake adventure

The previous Pygame actual combat is as follows: the charm of the python game Adventure Island actual combat project

The actual combat of Pygame in the past is as follows: the charm of Tetris in the actual combat project of python game.

Text

Hey! In front of a longer paragraph to push the article I wrote before the game scattered! Let's start now!

Big mushrooms, turtles, cannibals, cacti, gold coins, water pipes. And thump ~ do you remember this familiar scene!

Dangdang ~ Today the editor will take you to write a 100% restored Super Mary Mini Game-super fun!

This article is based on the Pygame module, ha!

Because the code thought too much about whether to paste the code directly or step by step, I chose to go directly to the code without hesitation:

Aung ~ anyway, you all like to look at the code directly, so I'm not welcome! Late stage of lazy cancer. Jpg.

Just post the picture display code at will! What about the rest of you? just come to me and give it to you for free!

The above code means for a moment, posted a little bit may be 1 / 20 of the code! Because after the article is finished, you can go home and lie down on the body, ah ha ha! It's still comfortable to go home and play games.

The effect picture is as follows:

The interface after running the code at the beginning:

Single mode / double mode here is the choice of single person, each Mary plumber 3 lives. Of course, you can also set it yourself.

The plumber can move up and down left and right is the direction key, and then An is to jump up.

There are also bigger mushrooms, gold coins and so on. Explore by yourself later.

The above is how to use python to make Super Mary. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report