Python Retro Game Tutorial

preview_player
Показать описание
In this tutorial we make the classic snake game in Python using the retro game engine Pyxel. This is a long video, but the whole tutorial is contained in this single video.

You will create a full game including sprites, sounds and music.

The new command for the editor is `pyxel edit [PYXEL_RESOURCE_FILE]`

This channel is supported by great people such as you on:

Your support is greatly appreciated.
Рекомендации по теме
Комментарии
Автор

That was so much fun!! Thank you so much for making this tutorial!!

For anyone reading this and are stumped because some things changed in a newer version of pyxel, here are the changes I made (as of pyxel version 1.9.15):

1) the pyxel.init line at the top of the App class should read:
pyxel.init(192, 128, display_scale=8, capture_scale=8, title="Nibbles", fps=60)

2) in the Level class, for some reason I had to set "self.w = 192" and "self.h = 128" otherwise it only displayed the first 3 or 4 tiles

3) when checking for wall collisions, you have to use pget instead of get, so the line should read:
if pyxel.tilemap(0).pget(self.snake[0].x/8, self.snake[0].y/8)[0] == 3:

paulbergel
Автор

This man deserves million just look at his hard work but his supporters ☹️

Edit : btw new sub bro

mythicalgaming
Автор

Thank you very much for this tutorial!

I am glad to find your channel!

SkyFly
Автор

So far really cool, I' m following along with the tutorial

charlesg.smithjr.
Автор

OH! WOW! Retro gaming and retro game programming is amazing. (I do not knew that 'retro' was even a word because English is not my first language). Especially I like sound in retro games.

Well, video was amazing, marvelous, superb, fantastic, etc. (I have written all the words that I knew)

EDIT: (I am 12 years old)

manbirjudge
Автор

this is long, but it's worth it.

grayair
Автор

Thank you for making a pyxel video tutorial, I think it's the first one in English!

Cerealae
Автор

Hey Adam,
I have been following along with your python pyxel tutorial, but when I tried to use caption in my script file Pycharm throws a error. The correct code is title instead of caption, along with capture_scale instead of scale.

charlesg.smithjr.
Автор

Thanks bro. Big appreciation from me!👏

akyberdiew
Автор

Would be great but requires update.
scale now is display_scale, title="Nibbles", tilemap().get - not found - looks like it was changed to class Tiles (actually it was easier with get - no idea why overcomplicate)

volodymyrgorbachov
Автор

Would you be interested/willing to do a few smaller videos that walk through specific bits such as collision? Even if you used the same projects making it as modules would be really helpful. Thank you for making this. It is pretty much the only video tutorial on pyxel I can find.

AutMouseLabs
Автор

Hey! I couldn't scale the image when I tried it on my own how did you manage to do it..? Can you please create a detailed video tutorial on pyxel..?

havren
Автор

Someone can help me? I trying open the pyxel editor, but the command on video nots working, and in github documentation have other command.

lukealves
Автор

hey, im really sorry for question againe but.. what's mean "s.x" and "s.y" in 45:06 ?

itsmeihope
Автор

hello, i have a problem: at 1:22:07, you run the script, collide with the apple then with yourself. But when i run it, if i collide with the apple, it detect the collision and stop the game

jeanzyx
Автор

I keep getting a real dumb error where it says "unexpected keyword argument 'caption' "

GreyFromSpace
Автор

Traceback (most recent call last):
File text\python pyxel\test\testt.py", line 36, in <module>
App()
File text\python pyxel\test\testt.py", line 23, in __init__
pyxel.init(192, 128, scale=8, caption="nekefir1", fps=60)
TypeError: init() got an unexpected keyword argument 'scale'
:(

catkittycatct
Автор

Buenas tardes ¿como puedo hacer los disparos para un juego como 1942?
No consigo que la bala cruce la pantalla

josejaviergonzalez
Автор

pyxeleditor : The term 'pyxeleditor' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again. #how to edit

kittithatmaphon
Автор

Hello, I seem to be having an issue with some things
- the pyxel.bit is throwing an attribute error: 'Module' object has no attribute 'bit'
-self.apple.draw() (I have no idea whats wrong with it, the error didnt tell me, it just gave me an error with no reason why theres an error so I have no idea)

realpiee