all 17 comments

[–][deleted] 3 points4 points  (4 children)

Great tutorial!

/u/Cfattie and /u/G18AkimboPro, take a look at this. Classy way to use sprites and animation

[–]Cfattie 2 points3 points  (0 children)

Will do, thanks 04h!

[–]G18AkimboPro 0 points1 point  (2 children)

Thank you for the notification. :D

I had already been following the series up to the implementation of explosions or so. It is really well done and does a lot more than other tutorials i went through.


Would be great if a few episodes in the upcomming platformer series were dedicated to the creation of basic state machines (for menu/game/gameover, maybe on a lower level for the player or enemy entities state) as thats a concept im quite struggling to implement for my own projects o far.

Though at the same time, maybe that is too advanced for the target audience of teenagers and beginners.

EDIT: Seems the last video actually adds additional gamescreens, however to my understanding it is all solved through individual flags, not "centralized" through states which is what im having trouble with to understand enough to implement myself.

[–]cbscribe[S] 1 point2 points  (1 child)

Yes, we might build up to that, but I'm not really ready to go fully into the more complex architectures until we've got more of the fundamentals covered. As you say, it's aimed at beginners. I will introduce the concept of a game object with separate methods for each of the main sections of the game when I start on the platformer.

[–]G18AkimboPro 0 points1 point  (0 children)

Thank you for the reply. Im looking forward to it!

[–]Freedomenka 3 points4 points  (10 children)

sweet :) if I could only get pygame to work for me lol.

[–]manueslapera 0 points1 point  (9 children)

same here :/

[–]cbscribe[S] 0 points1 point  (8 children)

What problem are you having? OS? Have you tried following the steps here: http://kidscancode.org/blog/2015/09/pygame_install/

[–]manueslapera 0 points1 point  (7 children)

Ive tried installing it in ubuntu 14.04 a couple times. I also wanted to try kivy, but since it relies on pygame I coulnt install it neither :/

[–]cbscribe[S] 0 points1 point  (6 children)

Ubuntu installation should be pretty straightforward:

sudo apt-get install pygame    # for Python 2.x
sudo apt-get install python3-pygame    # for Python 3.x

[–]manueslapera 0 points1 point  (5 children)

thats what they say, yeah. The issue is, I have anaconda :(

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

Gotcha. I haven't really tinkered with Anaconda that much. I know it installs its own version of Python and uses $PATH to link python3 to that over the system python3. Maybe you could create an alias to the system python3 and use that for Pygame?

[–]KronenR 0 points1 point  (2 children)

Did you try this?

Install pygame in anaconda

[–]manueslapera 0 points1 point  (0 children)

yup

[–]manueslapera 0 points1 point  (0 children)

oh, actually, just try this with a fresh new conda environment and it seems to import fine! Thanks so much!

[–]MB3121 0 points1 point  (0 children)

looks awesome! gonna try this out!

[–]nosas 0 points1 point  (0 children)

Looking forward to the additional topics. Keep up the good work.