Coding a game in Python. Code published on GitHub

python
python3
pyglet
gaming
puzzle

#41

Beer must ve helped right ! lol

Good job @nwg


#42

Sometimes it does.


#43

lol, good one in there.


#44

I do love this syntax in Python:

image


#45

Coding night 16 - scores

My daughter told me that the game w/o competition (either against the others, or previous own results) won’t be sexy. My wife said that daughter was right. So I had to add tonnes of unexpected code. The criteria will be: how many moves you needed to clear the board on each level. Work in progress.


#46

Coding night 17 - player and scores

Once level completed, the result is being saved as a pickle to ~/.config/puzzle/player.pkl. Same file also stores player’s name and password - for future use. The game at start selects the first not yet accomplished level.


#47

Please, help with the title!

No matter how stupid it looks, I can not move the source to GitHub, having no game title (which would also be the project name). Could anybody help, please?


#48

Nice work in there.


#49

Coding night 18

After many experiments, I gave up on animating the game cells at all. Any animation makes playing very difficult, and impossible at higher levels. I decided on pure geometric shapes inside colorful, rounded squares.

As the board graphics has been simplified, it may be easily changed, by just replacing a single image.

image

I did a massive code cleanup, and it could be published on GitHub any moment. Unfortunately I still have no idea on the game title, which should also be the project name…


#50

Looking good.


#51

Coding night 19

Panel buttons redesigned. Intro under construction. :wink:


#52

Getting there @nwg


#53

Coding night 20 - saving state, more FX

I’ve re-written the part of code which saves the progress. Also added several classes to take care of FX on start and between levels. Animations and sounds themselves are still temporary.


#54

Hard at work again ! Day 20, that s something.


#55

A similar code took me about 2 months previously. And I didn’t have to draw images, which takes me a lot of time. :confused:


#56

wow, too much for me ! lol


#57

Coding night 21 - GitHub

Finally I came up with a more or less stupid name, added an intro animation and published the code in its current state on GitHub.


#58

Nicee, you work too hard ! lol


#59

LOL, I wonder what to do on Friday evening. Probably writing soundtracks goes best with beer. :wink:


#60

lol, some stuff gets better qith beer I guess.