Live data from Hacker News

A recreation of the first level of Super Mario Bros. in Python

github.com

41–50 of 56 posts

Re: A recreation of the first level of Super Mario Bros. in Python

#41
https://github.com/justinmeister/Mario-Level-1/blob/master/d...

Why on Earth would you create the level like this instead of using something like Tiled[1]? Pretty much everything you can make a game with has support for TMX tilemaps, and if not making basic support yourself shouldn't be too hard either, and ultimately way less effort.

[1] http://www.mapeditor.org/

Re: A recreation of the first level of Super Mario Bros. in Python

#42
post #41

https://github.com/justinmeister/Mario-Level-1/blob/master/d... Why on Earth would you create the level like this instead of using something like Tiled[1]? Pretty much everything you can make a game with has support for TMX tilemaps, and if not making basic support yourself shouldn't be too hard either, and ultimately way less effort. [1] http://www.mapeditor.org/

He talks about it extensively in the video on the site, and I think he agrees with you that tilemaps would be preferable.

Re: A recreation of the first level of Super Mario Bros. in Python

#43
post #2

DMCA takedown in 3, 2, 1... Still a cool project anyway.

The only thing that infringes copyright are the images and music... And those can be sourced very easily. So if he removes those, he should be fine. Those images could easily be replaced with placeholders too.

Re: A recreation of the first level of Super Mario Bros. in Python

#44

Earlier quoted context omitted.

>So you took a game that used to take a few dozen KB of memory and an 8-bit CPU running at less than 2MHz, and turned it into one requiring many orders of magnitude more memory and CPU speed? That's what I thought too. Not sure why it's getting as much attention. Maybe because it's the combination of Python and Super Mario. A very popular language combined with a very popular game and a breeze of nostalgia. However i…

Going the opposite direction would be much more deserving IMHO; e.g. trying to fit a Flappy Birds clone in a few hundred bytes or something like that.

That would require skills. Also it's not "fun". It's not "fun" to be caring about optimizations or type-safety or general correctness and elegance.

Re: A recreation of the first level of Super Mario Bros. in Python

#45

Earlier quoted context omitted.

>So you took a game that used to take a few dozen KB of memory and an 8-bit CPU running at less than 2MHz, and turned it into one requiring many orders of magnitude more memory and CPU speed? That's what I thought too. Not sure why it's getting as much attention. Maybe because it's the combination of Python and Super Mario. A very popular language combined with a very popular game and a breeze of nostalgia. However i…

Going the opposite direction would be much more deserving IMHO; e.g. trying to fit a Flappy Birds clone in a few hundred bytes or something like that.

Not sure about python but there's plenty of those in JavaScript. Here's one

http://js1k.com/2014-dragons/demo/1659

I'm defining a few as 10 :P

Re: A recreation of the first level of Super Mario Bros. in Python

#47

does that huge lag bother anyone? it might just be an out of sync screen recording, but it seems to me like there is an input lag.

The real Super Mario Bros. feels that way as well. This is due to Mario's very shallow acceleration curve. It's one of the main reasons the game is so challenging to play!

Edit: After having watched the video, it appears to be out of sync and dropping frames.

Re: A recreation of the first level of Super Mario Bros. in Python

#48
post #34

So you took a game that used to take a few dozen KB of memory and an 8-bit CPU running at less than 2MHz, and turned it into one requiring many orders of magnitude more memory and CPU speed? I'm impressively disturbed.

It's a shame that you're getting voted down for making a very valid and truthful comment. It really isn't impressive when we see 1980s-era games recreated in JavaScript, for example, and the same should be true when dealing with Python. That's not to say that this effort lacks value. The author likely enjoyed working on it, and maybe learned something while working on it, too. It could be a useful reference work for…

[deleted]

Re: A recreation of the first level of Super Mario Bros. in Python

#49
So I created this project (I just found out this morning someone posted it here).

To answer a few questions:

1) DMCA/Copyright: I have no idea the legal grounds for this sort of project. There is an Javascript/HTML5 version of Mario that is much better and more complete than mine and it still exists on Github. If I get a takedown notice, I suppose the only people who lose out are people other than me who want to check it out. I'm not too concerned either way, to be honest.

2) Memory / CPU issues: Anyone concerned about these issues wouldn't make a game in Python and Pygame. I'm just a hobbyist who enjoys the language and the particular library I used.

3) Audio Latency: That is purely from the screen recording. There is no latency when you play it on your machine (to my knowledge).

4) Purpose of this project: I have been programming for 7 months, 2 of which I spent on this project. I never expected this project to get this much attention, but I suppose the cross-over appeal of Python and Mario is quite high. Fundamentally this was a learning activity to create something I thought was cool. Like I explained here: http://www.youtube.com/watch?v=HBbzYKMfx5Y , I knew basically nothing about making a platformer before this project. I still have a lot to learn.

Re: A recreation of the first level of Super Mario Bros. in Python

#50

Neat project! You should to tutorials - it's a great learning example

I feel like I'm not knowledgeable or experienced enough to write tutorials, but I wrote a list of resources people might use if they want to get into pygame on reddit: http://www.reddit.com/r/Python/comments/1ymn1w/i_recreated_t...
Post reply on HN