Creating a Stardew Valley inspired game in Python

preview_player
Показать описание
A Stardew Valley style game in Python and Pygame. This includes
farming and foraging, a day and night cycle, weather effects
and a merchant. The game was also made in Tiled so you can
expand it yourself.

(You also get lots of perks and all my courses)

Social stuff:

Project files:

Links to related pygame videos:

Timestamps:
0:00:00 - Intro
0:01:53 - Setup
0:10:19 - Creating the basic player
0:29:49 - Importing the player graphics
0:42:59 - Animating the player
0:53:32 - Tool use
1:09:04 - Switching between tools
1:21:27 - Creating the overlay
1:32:20 - Starting the camera and importing the floor
1:50:50 - Importing all elements and faking more 3D
2:18:52 - Collisions
2:42:29 - Working on the trees
3:06:42 - Particles
3:16:32 - Player inventory
3:21:57 - Restarting the day
3:46:00 - Starting the soil
4:12:29 - Soil patch graphics
4:32:51 - Watering logic
4:43:19 - Rain
5:03:36 - Creating the plants
5:24:56 - Harvesting
5:32:53 - Daytime transition
5:41:04 - The merchant
6:23:46 - Audio (+ some final fixes )
Рекомендации по теме
Комментарии
Автор

I've learned more theory and code patterns from your videos than in years of studying textbooks. Thank you so much for your excellent content!

Shanerz
Автор

Thank you so much for these tutorials, they have helped me tremendously.

NotaSWE
Автор

Can't wait to watch this after school's over!

Noob_-fqfw
Автор

Dude seriously, THANK YOU. The fact that you put in all this work to teach us this stuff is amazing. Just goes to show how much you care. I'll support anything you make!

cashtache
Автор

You are the BEST! I can't imagine how much effort you put into this tutorial.
Thank you!

rrahll
Автор

Thank you so much for all the time and effort you must have put in making and preparing this video!!
It was not only helpful in getting to understand pygame, but also more generally how to organize the code with classes. Many thanks, job very well done! :-)

Pronk-uirz
Автор

Can we like the video 3 thousand times in a row? Dude, I work with written documentation, and I know the amount of fucking work that goes into explaining every single little detail. I've done a couple of explanatory videos before. Nothing comes close to the level of detail and the dedication that you put into your videos. They're very helpful! Thank you very much for putting up this kind of content! It's a blessing for people learning Python and game development in general!

pedrenriquegg
Автор

This tutorial is very high quality!! Got to appreciate your work!

johnb
Автор

for those who run into an issue with pygame and mp3 files: from my short dive into it, apparently mp3 is really finnicky on pygame, and some combinations of app versions and OS lead to pygame unable to load mp3s; this was true for my Windows 10 and latest versions of all software. the solution is either skip the mp3s or use/convert to the recommended ogg or wav format (wav didn't cause me no issues).

breach_meidith
Автор

Wow, I just finished your Zeldalike tutorial and was thinking it would be easy enough to try making this exact concept, you sure work fast. Looking forward to checking this out in detail as well. Thank you for providing these!

JokerKizer
Автор

Wow! Stardew valley is one of my favourite games of all time... Just yesterday I was wondering if I'll be making a clone of it in pygame... And here you are with a video today.

Thank you for this!!

tashadurrahman
Автор

and my Patreon: patreon.com/clearcode
<3

ClearCode
Автор

AWESOME! Top quality content! Thank you!

rrahll
Автор

Finished this tutorial today.

Just want to say thank you for a great video. Really learnt a lot of really neat tricks, and I think you have cleared up some of my confusion regarding object interactivity and importing.

Great video...

HoRRoRlets
Автор

Just going to toss this into my watch later list for a rainy weekend! Looks great and can't wait to watch.

pauljaroslawski
Автор

Currently working through your paid course and now I'm excited to finish that to then start on this tutorial. Thanks for the amazing content.

softwaredave
Автор

Really appreciate the fact that you're making all this for FREE. BTW, your paid Udemy course is very good for the price! Keep up the good work, you're a great YTber!

sevenlewdz
Автор

These videos are awesome. Please never stop.

rudyfaile
Автор

Loving it so far! BTW 1:15:15 was such a perfect place to use a modulo (%) :
self.tool_index = (self.tool_index + 1) % len(self.tools)

fphenix
Автор

Hey!
I just finished the whole thing and thought I'd give some feed back as thanks, for the great Tutorial!
First of all, really great Tutorial and it is clear how much effort it must have been!

This tutorial was uplaoded in the right moment for me, because I was looking to refresh my python skills and really didn't just wanna go over the basics or work with a fictional Datascience optimization Example. I was recomended this by chance by the youtube algorithm and saw how long it is and first thought, nah that's insane. A couple days later however I thought this would be the right thing, since I've never done anything like this and it looked like a fun project where I could learn a lot and maybe expaned this whole thing with more tutorials later on.

Since I didn't watch any of your previouse videos or worked with Pygame I expected this to be though, and sometimes it got though to understand the full logic. However I thought you explained everything very well.
I did start getting more and more impatient/unconentraited after the first couple of hours and it did also feel like you started getting slightly impatient as well after like the 3h mark and especially at the end. I did like that you left the mistakes in, where you checked for why the code was not running. It was just minor things like, cuts in the editing of the video, where the code suddenly would change mid writing or you repeating a sentence. Also when you did your fixes in the end I was a bit confused since your first fix, wasn't necessary in my code, so I assume you did fix it before putting the video together and I didn't have the line to delete. Also stuff like, the s21 Files for Daytime were already changed to the state of the next chapter, which confused for a moment when I tried to find a mistake I did. One last thing was the way to loud background music that you added into the game, I had to take down the Video volume to 20% everytime that played, I feel like something went wrong there with the audio editing in the video. Anyway, this is really just nitpicking, especially on a 6h+ Video.

All in all I really loved the Tutorial, the chapters, the explanaitons and all the assets you put in one package so people could work alongside. Everytime I had an issue because I forgot a () somewhere or anything similar I downloaded the Chapter files and went line for line, which really helped. I really would love a part 2 where we learn more about implementing a proper Menu and maybe controler support or just in general build out the programm on this foundation.

I'll definetly will look more into PyGame, Tiled and other things to expaned on this and try to make it my own little game project on which I work on over time. First thing I'll fix is the way to fast night timer which also keeps running when your in the menu with the merchant. That one bugged me a lot while testing.

I thought I'll give a full feedback since really appreciated the work you put in, hope this is not seen as just me complaining!

TA