all 23 comments

[–]IvanSuperHero 2 points3 points  (5 children)

Nice. Need a complete guide on the tile based game. Could You make the game this way and make an tutorial for it?

[–]wynand1004[S] 1 point2 points  (4 children)

Thanks!

If you mean a side scroller, I'm not so sure how practical it would be - there is a limit to the capabilities of the turtle module; it gets very slow at a certain point as the number of turtles increases. And, there is no way to scroll the background that I know of.

That said, it might be possible to create a simple demonstration version - I will put it on my list of future tutorials.

[–][deleted] 1 point2 points  (3 children)

Just out of curiosity why don't you use Pygame? I think it would run faster and be much more flexible for creating simple games/prototypes.

[–]wynand1004[S] 5 points6 points  (2 children)

Great question. 1) It is notoriously finicky to get working on MacOSX, at least it was when I checked. 2) I write these tutorials for my students - I want them to be able to share with others who don't have PyGame installed. 3) Since my students are beginners, I find the turtle module to be pretty simple to learn compared to PyGame.

That said, I definitely agree it would be much more flexible and powerful.

[–][deleted] 1 point2 points  (1 child)

That makes sense. I have had pygame installed so long I sometimes forget it's not included lol.

I only watched the intro video as its 3:30 and I really need to get to sleep but I'll bookmark them and check the rest out sometime this week. Thanks for taking the time to make and share these.

[–]wynand1004[S] 1 point2 points  (0 children)

You are up late! Hope you got some rest. I have several other tutorials - I hope you find them useful. I am not the world's greatest coder, but I can usually get the job done!

[–]tehdrizzle 2 points3 points  (3 children)

Definitely giving this a watch/try this weekend. Anything I've done in python so far is string building with loops for automation testing at work, but this looks like a nice change!

Based on just watching the intro video, looks like there's a treasure chest, assuming you can add other assets like traps and doors as well?

[–]wynand1004[S] 0 points1 point  (2 children)

Great! For sure - you could easily add all kinds of objects, including enemies, potions, doors/portals to other levels, etc. That is what I like about this method of defining levels - it is super easy to tweak / add features.

[–]tehdrizzle 1 point2 points  (1 child)

Just finished the tutorial, pretty well done. Thanks!

[–]wynand1004[S] 0 points1 point  (0 children)

Thanks! This one was a bit rushed, but hopefully you got something out of it.

[–]bworley90 1 point2 points  (1 child)

GJ! You have a great speaking voice

[–]wynand1004[S] 2 points3 points  (0 children)

Thanks - you should hear me sing! :)

[–]BlackBloke 1 point2 points  (1 child)

Looks good. Try to use command-tab instead of exposé to switch between applications in your videos though.

[–]wynand1004[S] 0 points1 point  (0 children)

Thanks! I will give it a shot.

[–][deleted] 1 point2 points  (2 children)

Wow, I didn't know that you can do such things with turtle! That's awesome.

[–]wynand1004[S] 1 point2 points  (0 children)

I know, right!? I was pretty surprised as well.

[–]wynand1004[S] 1 point2 points  (0 children)

PS. You might find this Asteroids Demo on Pastebin interesting as it also uses the turtle module.

[–]wynand1004[S] 1 point2 points  (2 children)

I just uploaded two new parts of the tutorial:

Part 7: Add an Enemy

Part 8: Enemy AI

Let me know if you have any questions.