#pyweek-game-jam
1 messages Β· Page 9 of 1
I did not realise that the pyweek actually ovoerlap alakajam
Yes! feel free to do so here, we are all here to learn so don't hesitate to ask
35700 seconds left!
What's this?
@onyx basin this is where the fun's at π
13 more minutes
π
"Castaway" is the theme!
PyWeek 30 has begun and the theme is "Castaway"!
Development time ends at 00:00UTC next Sunday, 27th. You must have registered an entry with the site to upload a game!
Castaway won by a nose: https://pyweek.org/p/34/
Well I actually voted for Castaway as #1 so this is still nice
I did not have something in mind for Castaway. Time to get to brainstorming
i kinda had an idea
How about
goats stranded on an island
Then you try to start a goat civilization
And THEN you enact your plans for world domination
and enslave humans into the hands of goats
Pet goats of a clean cop stranded together on an island with a stranger that he met on a train when living in a dirty town... the game ends at sunrise.
now thats going a bit too far
Some theme interpretations: "stranded on an island" with the twist from the 80's film "intentionally stranded with a random partner"; "going fishing"; "something that has been discarded"; "throwing something". Anyone had any others?
cast away could also just generally mean exile, in order to support non-island settings
Yay castaway was my #1
π’
YESSSSS THE THEME IS WHAT I WANTED
it was my #5.. deja vu, was exactly the same in pyweek28... (also my least favorite)
What was your #1
now I kind of want to make a volleyball sim for some reason π€
here's mine
#1 Goats, Goats, Goats
#2 Sunrise
#3 Castaway
#4 Strangers on a train
#5 Clean Cop, Dirty Town
@woeful tree is the pyweek skellington still a thing?
skellington?
Whatever you're making, dating sim? Add goats. Boom. Goat Dating Simulator. Cooking game? Goats. Cook a goat.
The world is your oyster
or goat
@opaque dawn was a suggested project layout, to help people get some of the basics right
oh
What spot did the goats make it to?
#2
sadly
Castaway won by a nose: https://pyweek.org/p/34/
castaway barely won
Ah yeah
Simiboi, you can still make a platformer with 3 goats... just make them jump up a rocky mountain on a deserted isle while being chased by a starving castaway
Castaway seems like a quite good theme though, even if goats, goats, goats sound a bit more like something that would be a thing on the internet
its a lot more flexible
yeah
it can be flexible but i think a lot pf people will just go towards a game where you're stranded on an island
i suspect the same haha
how far is everyone so far
im working on the sprites, @simple gull and i are on the same team
yeah, ok
Hey @foggy nimbus!
It looks like you tried to attach file type(s) that we do not allow (.piskel). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
oh well
ohai @simple gull
is a main menu required or no
hmmmm... i dont know but it would probaly make it better
i would definetly make time to program one
yep. just focus on the main part.
is it just me or is the arcade documentation... kinda broken? there's references to methods in the examples that don't exist anymore
easy enough to figure out by poking through the code, but, more bumps than i expected for a beginner orientated library
just finished writing the main outline for my game!
i've literally made the player movements and a few sprites. This is bad
yay our first PR to arcade is being written \o/
@simple gull we haven't noticed so much of that, but it's a large API so we probably just haven't gotten there yet π
I made it through the beeware tutorial and got an android build. It's a start
type(obj)
@low tulip inp = input('enter your input',)
print(type(eval(inp)))
i wrote this but its working only for int and float
its showing error for str
hey if anyone is free can u help me with a python program
i need to create a program that as soon as it sees a string goes to dictionary and search if therre is a value for that string and ignores others
from a file btw
dm me if u think u can help
Hi @ancient marlin if you would like help with your homework I suggest you try some of the other channels, this channel is dedicated to the PyWeek competition currently underway and we're all very busy with that
oh ok
no goats democracy failed once again
do we really want 105 games about goats?
Well, that's what you're getting xD
Evidently not
104 games about goats?
The theme is not "goats goats goats", but maybe we'll see some games about castaway goats.
I'm still going with goats
The games will still have goats either way πΏ
Goats was my lowest rated theme, ngl
what is pyweek?
A one week game jam with python. Check the pins ! π
eh C++ is better 100x in game developing
well that depends from person to person
Depends what your criterias are !
you can't completely say that
Check google
google is different
<<< You Kidding ? >>>
google is made by ppl, and everyone has different opinions
Assembly is faster and has better performance too, but good luck making a great game with it
lol
Trust me Python weren't born for game development
Trust me, lots of games were made with python
Eh Assembly ?
You think I am a kid?
well this starts a debate 
Bye
?
Bye!
hmm ok, bye! (weird)
bye
Wow, what's it like up there @zinc bone ?
It looks fun up there with all your semicolons π
Trust me Python weren't born for game development
@zinc bone what if I told you that it is used in most AAA games nowadays β
As much as I love python, packaging games with it kinda sucks tbh lol
@zinc bone I'm fairly certain it's a well-known fact that game development isn't Python's (or at least just pure Python) strongest suit, but there's no need to be a jerk about it. You seem to be misreading the purpose of PyWeek as well; it's not about making games in Python to prove a point, it's a community get-together that allows programmers of all skill levels to improve on their skills. Do be wary that if you'd probably want to drop this type of behaviour in other channels as well, treat this as a fair warning.
lol
All of that only for me
?
@ornate brook You don't have a right to warn me as I said My Opinion/truth
So Yub You didn't warn me
Because You can't in this situation
can we use some absolutely basic funcs we use in other programs that I made eg. func that returns distance between two point
?
or do i need to just write them again
?
@low tulip using the pythagoras formula
or func where u pass two angles and returns angle between them
Would we Close This Topic ???@ornate brook
pls answer mine question
!warn 744136566854909982 For the record i haven't given you a formal warning, but you have one now. It's become clear to me that you're only here to incite childish drama without even acknowledging that the behaviour that you've exhibited is not what expect from you in this server. Contrary to what you believe, the moderation team has the right to apprehend you for your opinions if you're rude about it, in which case you were. If you have anything to appeal feel free to contact @lavish cipher. I'm not gonna ask again.
:incoming_envelope: :ok_hand: applied warning to @zinc bone.
@low tulip wait for a sec
@ornate brook God I told You it weren't rude as I said It is my oppinion You just Give me a warning without rights tell me how were my oppinion rude and remove the warning
I wanna kow
know*
did i just saw admin abuse on a mean guy
!silence
β silenced current channel for 10 minute(s).
I don't like drama, can we please do without it? If you have an issue with people who use Python to develop games, you don't actually have to disrupt an entire channel with that opinion. And, yes, we will moderate if people disrupt channels with messages that don't contribute anything at all. That will be all.
!unsilence
β unsilenced current channel.
@visual glen Ok Would you please remove the warning
I understand
what u said
@ornate brook Would You please Remove the warning? I understand
We just talk about goats here
and the game jam, i guess
How's everyone progressing?
*5 goats
yeah 1 for each breakdown
Each goat may actually be a causing a breakdown
Oh
what if the each goat is a trained therapist?
Amazing, goats isn't even the chosen theme and we're still talking about goats π
lol
Goats are amazing tho
Goats are always funny whereas castaways are barely funny
castaways can be goats
I think thisβll be one will be remember as the PyWeek with goats, even though it isnβt the theme
castaway but you are a goat
Someone needs to redo this as a goat.
I don't doubt there will be at least one castaway goat project
@compact glade I trust you to turn that into a goat
πΆ pweek pweek πΆ
I don't doubt there will be at least one castaway goat project
I don't want to give away our team secretsbut we're definitely doing goats( Ν‘Β° ΝΚ Ν‘Β°)
why did you leak our plans π π€ what are we going to do now
Goatier goats so that even if other teams know we do goats and steal our goats, their goats will be no match for our goats. PS: goat me, I can't goat goating the word goat.
Can someone explain what is pyweek
@onyx basin Hey! I'd recommend having a look at the pins
Yeah I got it.
Its about goats
G.O.A.T
G.O.A.T. = Goat Of All Time
Goat help us all, we are turning into monsters.
I have done it
Wait, really??
It's beautiful
Indeed. Just add the text below
Watches midway through they change the theme to goats cause everyone is making goats
Hahah wouldnβt surprise me
GOAT
GOATS
CASTAWAY
CASTAWAY GOATS
GOAT IN STONE ON CASTAWAY ISLAND
i man, castaway only won by a LITTLE bit
yes
not good
is there a recommended window size for your game
Well I dont want my game to not fit on some peoples screens
so should i try something like that
or just do 1920x1080
sure
1920x1080 doesn't fit on my screen
yeah thats what im worried abou
I mean, I have a 4k screen but I usually run it at Β½ resolution and window decorations take up 50px or so
making it smaller is better than making it too big too where it doesnt fit
So I have about 1800x1000 windowed
mauve is there a resolution you would recommend that would fit on most screens or should I make my window smaller and not overthink it too much
You could scale your screen based on their resolution, or give the users an option for different resolutions
I have done it
@keen geode that is glorious!
instead of stonehedge make goathedge
i actually also head a great idea for the sunrise theme
i'm making 600*600
which is a big step because most of my previous games are like
400*400
π
now i'm working on a pause menu and inventory
imagine the theme turning out to be not GOATS
imagine
yeh
@foggy nimbus our game dev would be going better if you were editing levels and making sprites instead of playing Among Us π
\o/
we are going to have a lot of PRs against arcade and pytiled-parser at the end of this comp π
hii
ok
If I find a bug in a library I'm using, and solve it together with the library's maintainer, can I use the fix in my game? Or do I need to convince the maintainer to join my team?
Yup, part of the whole point of PyWeek is to increase the quality of Python game libraries out there, this week is always good at unearthing these issues (I've already filed a handful of PRs too)
our entry will be vendoring two libraries because we've had to fix bugs π
It's a lot more stressful for me. I have to make everything in the game myself.
From art to game mechanics to music (if I have enough time)
If it is a pure Python library you should just vendor it into your game
If you need fixes that aren't in an upstream release
You should of course send those fixes upstream too
Ik
You could also ask your package manager to fetch it from the upstream and specify the branch or commit you want β
You play as a castaway on OpenGL Island.
Reminds me of Dippin' Dots
@untold lily True
(what's yt
i know yt is youtube but (it didn't much sense to me in that sentence
ppl can post their gameplay on youtube
but it should be judged by downloading others game and actually playing it
ye they judge the jam like that so i asked them to judge the pyweek and make it available in YT
the code jam is judged in YT that's why I asked
but it should be judged by downloading others game and actually playing it
@gusty lodge that's exactly what they do
i think pyweek is peer-judged
@gusty lodge idk
where?
go to pyweek.org and click Previous Challenges on the top bar
ok
also i think it's explained in rules as well
ok let me check
where does it say how it is judged?
oh it is there
in rules
but then it says this in the rules
If the game did not work for a judge, they may mark the game βDid Not Workβ
I thought it was peers, where did judges come from
what is meant by entrant cheated
@royal echo I think basically it means that you have to use art and music that is also available for other contestants publicly(and of course legally), or you have to have the music or art created by yourself or your team within pyweek. You shouldn't use any premade private assets for pyweek.
how i have to find a game i wanna make for pyweek
i see
bc it started right??
how i have to find a game i wanna make for pyweek
@muted cobalt theme
and the public assets have to be available 30days prior to pyweek as well
@royal echo thanks
you can't make something a week before pyweek and use it
i dont understand what u said
and the public assets have to be available 30days priors to pyweek as well
@gusty lodge what does this mean
the date when the asset was made public should be at least 30 days before pyweek commences
yw
@muted cobalt you gotta brainstorm the game you are going to make
the theme for pyweek30 is castaway
Starting coding this night, good luck everyone !
Is the event started yet??
a day ago yes
is it possible to change the entry url later?
No. You either come up with the perfect title now, or put off registering the entry until the last second.
I see thanks, I'll settle with a name now
i usually just do myname-# for url
xD
you can change the game name anytime you want
I've looked into letting you change the entry URL but unfortunately it is used as the primary key in the database, making it very hard to migrate
Every rock on this island is like three lines of code.
How
Me making map boundaries is like 10 lines of code
I'm at 250,and all I have is character movement, a menu, and a map.
I'm working on a pause menu and inventory system right now
Its so pretty! How did you do the bloom? Is it with frag shader?
I love Python but I can never figure out the graphics libraries. So it's a web game with a Python backend and the screenshot is basically JavaScript. I'm using Bloom and DoF from https://vanruesc.github.io/postprocessing/.
The backend implements all the logic, so hopefully it's okay by the rules.
I'm also doing a web game, but using no backend (static site) and brython for the logic (client-side python)
mine is remarkedly more 2D and pixel art though, because that's where my skillset is (not good with OpenGL or WebGL)
pygame probably isn't the best module to use
that game is looking good so far btw
amazing looking games so far!
Thats a nice library! Been wanting to get into three.js myself soon, maybe after this jam I could try it out
;-;
@gusty lodge
took me 775 lines to get here
@gusty lodge
#pyweek-game-jam message Share code pls
ye it will be all open-sourced on git at release
(but pretty sure no one enjoys looking at my ultra messy code
π
π
Hello gents, what exactly is pyweek?
Nvm, sorry for bothering i just read the pin messages
a working messy code is better than an organized code which doesn't work.
I've looked into letting you change the entry URL but unfortunately it is used as the primary key in the database, making it very hard to migrate
@woeful tree really need to just random generate those URL bits π¦
it was a bad design from the start, I'm so sorry
The fourth or so iteration of the look of our game, feeling pretty good about this one though. Working title in title bar π
We have significant amounts of game code now in ECS. Time for lunch now tho!
ECS is sooo good. This is the first time I've worked on a game really going all out with it. We're using esper from pypi.
I haven't even started yet π©
@royal echo you are stuck on an island with a million π . You can name it "HERD THEM"

lool
@novel storm is it a custom shader?
Which one? π The two post-processing effects are from https://vanruesc.github.io/postprocessing/. But there is a simple custom shader on the water. Just to ensure that I spend half a day figuring out that 1 is invalid in GLSL and you have to write 1.0.
"bees working as expected" https://www.youtube.com/watch?v=vJjiudDo3c0
This is a work in progress, part of an entry to the PyWeek 30 challenge currently underway (pyweek.org)
"bees working as expected"
Are those
.... worker bees?
what are some ideas yall have for pyweek
secret goat!

beside that
hmmm, secret || π π ||
beside that
well, you are a ship that crashes on an island and you fight dinosauras over there and you have π as your friends
and all others are 
ye
what are some ideas yall have for pyweek
||You crash your boat on a giant goat||
||You are also a (much smaller) goat||
I'm probably missing something incredibly obvious but what is pyweek?
it's py4days now if you start
C'est parti pour py4days !!
WHOA A PYGAME CHAMPION.
πββοΈ
Not everything meets its full potential on our humble island.
I have rounded corners at least, so that's a start.
Lol
rounded corners are the basis of perfection, that's why Apple wanted to apply for trademark protection for squares with rounded corners
I think we all would want to trademark that, just to be able to say "I trademarked rectangles with rounded corners"
Hey PyWeek, short question about the rules
Are we allowed to use discord.ext.menus (https://github.com/Rapptz/discord-ext-menus) because on the readme it says
There are no front-facing docs for this and it's not on PyPI. As this is meant to be a repository for testing
but it also provides examples on how to create menus in a "getting started" section
We're wondering if this meets the conditions in 2.c
You may use libraries that were created before the competition if and only if...
...the index page (eg. README/PyPI page) contains, or links to, a documentation resource that describes the features of the library and contains thorough API documentation; and,
We're presuming not but are unsure
@manic sedge I think that looks borderline, because the README probably isn't sufficient documentation to actually get going with the library, though it isn't far off
But I'm not going to be the one judging
hello, friends. Reading the pyweek rules, the answer seems obviously a "no"
but is it allowed to use paid assets with commercial license? I have thousands of assets from humble bundle for the type of game we are making (with appropriate license to use for a commercial project), but it appears this violates pyweek rules. Can anyone confirm for me?
@exotic lava It isn't allowed, because we want to create a level playing field for people who can't afford to buy commercial assets
tyvm, yes I figured. I wanted to confirm before I decided not to use all those juicy assets π’
I have also bought some commercial asset packs from Humble Bundle
But I knew that I wouldn't be able to use them in a PyWeek entry
You also can't use them in open source projects, FWIW
I think the rule is right and exists for the right reason, but it is a big drawback that it rules out things you could use any other time you're writing a game
@woeful tree can you clarify what the following part of the rules means?
you use only the files published. For example, you may not publish only PNG files but use source SVG files in your game.
@twilit canopy If you had SVG files, and you render them to PNGs, and you publish the PNGs, but keep the SVGs to yourself, you can't use the SVG files in your game
by "had" do you mean for ones that we acquired from somewhere?
SVGs being more editable/remixable than PNG files
also, by published do you mean released as a downloadable zip?
But "had" I'm supposing that you created the files
my understanding is that "publishing" here means the final submission as specified here https://pyweek.readthedocs.io/en/latest/rules.html#final-submission
Ah, so then it is a requirement that the files that we release as part of the game be remixable
is that correct?
I'm still confused by how you would manage to violate the rule when releasing the game then
I don't think there is a rule that says that your game or its graphics need to be under a remixable license
That's rule 8, in fact
That's for anything you create during the contest
Anything that existed before the contest and which you use, needs to be under a remixable license
So
to make sure I understand this correctly
if we render SVG to png, then to be in full compliance with the rules, we should also ship the SVG files?
or are we expected to load from SVG files directly?
No, you're mixing up inputs and outputs.
The output of PyWeek - your submission - can include whatever materials you want
The rules about art and sound cover inputs to your game: preexisting files that you want to use in your game.
Anything you create during the week is not an input
Ok, that helps a little bit
I spent almost 3 hours animating this today. At this rate, I'll be done with art and ready to code by about Saturday. The other enemies are going to have to be half-baked.
I'm still not sure I entirely understand 2.c
@pulsar seal you might be able to generate some of it programmatically if the enemies are abstract like this one
I thought about that for this one, but didn't expect manual to take 3 hours lol
I was thinking "oh, it'll be like 8 animation frames... nope, 16.
Ok, say I have some data x. And I have some process that alters it, f, so y = f(x). Then I can't upload y to freegameart.org before the competition and during the competition actually use x.
ahhh
ok, i see what you mean
about this entirely being about pre-existing materials, ok
I think that makes sense in the context of having pre-existing source versions of assets.
ok, ty
I don't think it applies to our group then, ty for clarifying.
To be sure I understand fully, assume someone else made a source SVG or 3d model under CC(A) or as public domain 30 days or more before the competition. Are we free to render that to PNG and use it in the game as long as we cite it?
@woeful tree
if I could have just as easily made the png for my game of that asset as you, then yeah
wip
last 3 art pieces in here have had 0 goats, for a rate of 0%. You neutral pronoun in the plural form gotta step up your π game if you wanna win this.
I don't know what to do with this lol
looks like texture ig
yooo I got tile adjacency to work
that looks real nice
Fling! https://youtu.be/6Jzc13IVf60
(yay, we officially have "cast away" in our game now π )
wher was that thing caste awayed to?
SPIN
@woeful tree pushes are sometimes reported under the wrong person; https://pyweek.org/latest/ "WIP Pie menu" wasn't committed or pushed by me
@lusty wasp I think it is just collapsing "rdb and Unknown user" to "rdb"
@woeful tree I'll ask my teammates to add their GitHub name to their profile, but this seems like a bug
@woeful tree spam? https://pyweek.org/d/7088/
There are three of those threads
@lusty wasp thanks for your stubborn goat award π
oh no i missed 3 days
i missed the announcement
now i have to grind lol
did i miss the start deadline?
i can't see anything on the site about registering a github repo or making a diary
It's okay, I haven't done anything yet either π
@onyx basin you have to register an entry on the site, click your name in top-right and Register Entry
oh ok, i thought that was only for teams
You just register as a 1-person team
yes you can
I think
does anyone have any resource for learning how to program pygame games using tilemaps?
@onyx basin yes, but depends on the license
hey rdb, can you share a link in which last year someone made a good project with arcade for pyweek
pls π₯Ί
I have no idea which projects used Arcade, sorry
I can show you some good past Panda3D projects though
yes, you made one!
A few π
well if anyone finds one please ping me and put it here
you had made the hobbet's ascend with panda 3d
it was really nice
can we use discord emojis?
like as in is there a license or anything?
like if I want to use πΈ or anything?
you can use twitter emojis, you won't find pngs, svgs of this
There are Twemojis (what discord uses, at least on desktop). Theyβre open source, so you can check out the GH repo for it. Svgs and everything is there
Youβll have to take a look at the exact license, though
Emoji for everyone. https://twemoji.twitter.com/. Contribute to twitter/twemoji development by creating an account on GitHub.
@daring sleet
how long does it take for the pyweek website to update?
okay thanks @pearl oxide @vapid owl
also, does anyone here know how to make one sprite appear behind another in arcade?
Just draw them one over the other.
They will be drawn in the order that they are in the code.
Like if you draw a ground layer, and on top of that the player layer, and a foundation layer... the player will simply be shown above the ground.
alright, thanks
I guess the more precise answer is if you want it to appear behind.... draw it first π
Then whatever you want in front.
it worked, thank you!
Made asteroid shape randomisation with perlin noise
how are the entries judged?
is pygame a good module for pyweek??
yes
how are the entries judged?
@stuck ginkgo by other entrants
I used pygame for pyweek for most of the 15 years I've done it, it was very fun to work with. it's so simple but you still have to do all the things. you can get good performance if you keep the resolution low
ohh thank you
lil map
:DDDDDD
I used pygame for every pyweek entry as well, it's simple but you will need to write a lot of structural stuffs by yourself.
arcade is nice
I'm working on VSC live share and the person who's hosting the live share causes my screen to scroll to them whenever they move their cursor or type or anything. How do I disable this
nvm
How did you implement the raft building mechanic?
@keen geode i literally used an if statement for every possible way of expanding the raft
pretty sure there are better ways
lol
Lol Iβm trying to implement a raft building mechanic as well buts its more of a ship with guns and stuff
Was going to use pymunk so I can have rotation but I keep running into problems using it 
How do I edit a diary entry in the pyweek website?
@tender raptor scroll to your diary entry, click add comment, scroll down
yw, it was pretty hard to find
how often does pyweek happen?
twice a year
wait whats pyweek??
@toxic osprey see pins and website
okioki
In short, a semiannual week-long game jam that requires games to be written in Python
I see some people are using the new low level rendering api in arcade. Fun π
Goodluck guys!
I made the terrible choice of trying to do ragdolls.
It took ages, but it's the funniest thing to debug. I added the nose and it started falling on its face. I realized the nose weighed as much as the whole thing. I fixed that, but it's still falling on the face.
Turns out I had the ears on the bottom by accident.
Haha
A Crocohen approaches!
Needless to say I'm writing these characters as dicts and lists. Not learning Blender was a bad idea.
I forgot to participate in it
@weary plaza same, I only started yesterday
I've spent all day on the frontend code but my teammates are writing a lot of Python code. I see classes have attributes like inspiration, loyalty, default_hankering, attention. Wonder what is going on over there...
hahahahah nose physics
Needless to say I'm writing these characters as dicts and lists. Not learning Blender was a bad idea.
@novel storm by this do you mean that all the dimensions, colors and positions are in dicts and lists and then they're dunamically rendered based on those lists at runtime?
Yes π
What you see above is written like this:
{
'size': [0.8, 0.8, 1.5],
'color': '#691',
'children': [
{ 'size': [0.1, 0.3, 0.3], 'dir': 'up', 'color': '#900' },
{ 'size': [0.4, 0.2, 0.2], 'dir': 'left' },
{ 'size': [0.4, 0.2, 0.2], 'dir': 'right' },
{
'size': [0.5, 0.5, 0.5],
'dir': 'back',
'offset': [0, 0, -0.25],
'children': [
{
'size': [0.4, 0.5, 0.4],
'dir': 'back',
'children': [{ 'size': [0.3, 0.5, 0.3], 'dir': 'back' }],
},
],
},
],
}
ouch
Maybe you could make a use for that, like making them explode or dismembering them
my game is constantly performing expensive calculations for each bullet and each spider
and it's quite slow
am I allowed to use C/C++ to speed up calculations?
i'm not writing the entire game in C
just that calculation
is that allowed?
I think its alright as long as the game is mainly python
huh
let me look in the pyweek rules
you may include code written in supporting languages (eg. C/C++ or Rust libraries, Javascript/HTML in web pages, and so on), if that code does not implement βgame logicβ.
i think i'm good then
because this doesn't count as game logic right?
it's just calculating the angle of movement
Yes, whatβs the calculation you are doing in C/C++?
i want to calculate the angle between my player and the mouse
It's absolutely allowed but bear in mind that many users will not have a compiler
I dont think calculating the angle of movement should take that much processing
yeah but i'm running it a lot
math.atan2() is implemented in C
oh, then i won't need it then
thanks!
also it's not processing power but rather the speed
i want the calculation to be faster
i'll just keep it on the python side then
Keep in mind that math.atan2()takes y, x not x, y
How many times per frame are you running this?
If you needed to go faster, I imagine there's a numpy.atan2(ys, xs)
every time that arcade.Window.on_update() is called
whcih is ~60 times per second IIRC
numpy.arctan2 seems cool, i'll check it out
So its only once per update, that doesnt take much to run. Your performance problem could be somewhere else
hmm
it takes 0.13 seconds on my PC to perform 1 million atan2
>>> timeit.timeit('math.atan2(1.1, 2.2)', 'import math')
0.12952388898702338
What framework are you using?
Yeah, that should all be fast.
You can always benchmark something like @sacred marsh showed.
YES GOATS π
When it comes to goats, I do not falter
I honestly canβt wait to see all goat cast away games
@lusty wasp ^ π https://pyweek.org/e/chrisyan2000-30/ π
so... hands up for everyone of the 115 entries actually planning to upload a final entry? I spent like 10+ hours on testing the 23 a year ago... not sure I can spend an entire workweek just testing pyweek entries this time around π
The website was built to randomise the order of entries with the assumption that you wouldn't rate all of them
Not sure whether the newer ratings dashboard is as random
I seem to recall that it originally sorted it by fewest ratings first
I would give yarolig the Stubborn Goat award if their goat didn't look more like a catβ¦
It's called goat.png, I guess that's good enough
what happens if i dont submit entry??
@muted cobalt pretty much nothing.. other than nobody being able to enjoy your game and rate it afterwards
just don't put pressure on yourself. If you get it done, great, otherwise there'll be another PyWeek in 6 months π€·
It gets marked as "DNF" if you don't have a submission marked "final"
It will not participate in the judging and you just have it listed as "DNF" on your profile
I don't really like the DNFs on the profile
In the sense of being like you failed if you didn't submit a final entry
Maybe it should pull split the table into "Challenge Entries" and "Unfinished Projects"
I've been spending most of the week fixing ios bugs for beeware instead of working on the game part of my game, so DNF looks to be in my future
well... another DNF
Well I was busy at school and started mine a few hours ago... if you have time on the weekend, you can still make something you like π
haven't done anything yesterday so trying to catch up
yours already functional I'm still trying to implement the collision lol π
its supposed to have rotation but pymunk is giving me a headache so i decided not to
do you allow non rectangular shapes in your raft?
I'm trying to go over how i would do the collision since its not rectangular
sadly i can't do that if I want my ship to be not rect :(((
I think I have to check each tile unless I figure out another way
um pretty sure you can still use grid collision if your ship is consist of tiles
make the grid so that the empty ones aren't considered for the collision
what do you mean by grid collision?
i store my tiles in a 2d array
and i just figure out which tiles is it on by integer division
you do that for each corner of the raft tile, right?
and check if there's stuff on that tile
xD
depends
i made my islands in such a way that only a few corners need to be checked
as for the player I just used two points at the player's feet
ohh i see
it looks awesome @keen geode @gusty lodge
thank you :DDD
π thanks but he has goats so π
uh oh
YES GOAT
hah so goes pyweek π it's all a learning experience (this week has been no different)
which lib did u use?
pyweek finished?
pyweek runs for another 36 hours or so
@pearl oxide we're using arcade, which has had its moments
we're also using esper, and the ECS approach has been really interesting to use (first time for me)
@tiny mesa At the start you said Esper is awesome. Did it hold up?
it's really good, and the ECS architecture has made the game so much better and less a total mess than my previous games
Thanks. I'll try it one day. I couldn't sell it to the team this time.
haha, too bad, better luck next time π
They love adding new libraries at work, so my argument for Esper was, "look a new library!" I don't know how I failed...
hello
I guess ill admit i bit more than i could chew, so giving up on pyweek for now :/, hopefully i can do better next time
jkndnjl
whaaat pyweek doesn't end sunday π±
It does... at midnight UTC π
@urban violet that's also a very important thing to learn and what game jams are good for. the more you try the better you get at judging what can be achieved in a limited amount of time. another good learning experience that you could apply now, would be to cut down your project you started to a minimal viable product in the time you got left. see if you can't make a (much) smaller version of what you had planned... There's usually always a handful of participants that manage to submit an entry with only a single day left
Yep, but we have about 0 seconds sunday to code π
Dude, thats some good encouragement, I guess I'll trim down the bigger features like you said, thanks a lot! @sacred marsh
had other people doing that for me in the past, just balancing the scales π
now for the biggest challenge of the week: seeing if I can get the game packaged (beyond the source zip, that's easy)
Yep, but we have about 0 seconds sunday to code π
That depends on your time zone lol. In Honolulu, you have -10 hours from Sunday. If you're in Auckland, you have 12 hours π€
i don't think anyone can pull an all-nighter from 12am to 8am
Youβd be surprised
Deadlines would like to speak with you
git commit global_warming
We're making a hero collecting ("gatcha") game. But until today we just built the framework and just had a single hero, "cube". Now we're rushing to build the actual heroes.
At the start of the week we had very imaginative ideas for hero abilities. But now that implementation is upon us and time is short, our ideas are like "this hero can hit" or "this hero moves slowly".
i love gacha games!
What's your favorite?
nice
Your work is very impressive chris 
:333 thank you
What library are you using for your project?
I don't know if there's a way to quit I guess just don't submit anything
What library are you using for your project?
@strong juniper ye i'm using pygame only );
that is some great work @gusty lodge
All I have been able to achieve is some blinking dots on a map lol
it looks pretty cool :DDD
π thanks but it isn't really that cool π
does anyone know how to make a sprite partially transparent?
i'm making it so that my character can swim
i want the water to be part transparent
ik how to do that in pygame only
you blit it on a transparent surface then blit that surface
finally got it finished in time, now it's bug testing );
Damn, that's one sexy looking goat game
Yooo that looks great!
In arcade, there's the alpha variable in the Sprite class, it takes a number from 0 - 255
rip my framerate π π’
Can shoot arrows now!
woooa
all of you guys have flashy start screens with animations
meanwhile i just have
this
you guys have screens?
lol
pygame can't rotate images like that );
how is the guy walking on water
oh yeah transform.rotate makes a copy of the Surface and modifies it
is he jesus?
he's the messiah
rafts are pretty cool
...oh
i didn;t want to have to apply a speprate slowdown for each spider so i just made the water kill spiders
it's somewhat scientifically acurate
Youβre all making some truly great things. A big, big wow to you
I don't think that's true, there is a Pygame surface rotation function that works just fine, without distortion
We use it in pygame zero
but it copies the Surface and returns a new one doesn't it?
ooo i will try it out
@gusty lodge make a copy of the image before transforming it so that you dont do the transformations on the distorted image but the original one, it'll prevent unpredictable morphing
i usually make my image square shaped if i want to use pygame's rotate
woo
It's my pyweek 30 entry~
for more info please check the pyweek site:
https://pyweek.org/e/chrisyan2000-30/
That looks amazing
This is a first play through of our entry to PyWeek 30...
Still a bit buggy, but we're really happy with what our team was able to accomplish in such short time!!
Check it out and check out our entry here: https://pyweek.org/e/space-e/
oh.. we forgot to put a goat in our entry π©
I can still hide one somewhere
It's pyday
whoops. our github repos was private, derp. it's public now https://github.com/r1chardj0n3s/masa-01
Probably a bit later for this PyWeek, but if you have late-stage performance problems in your game, I have made a vector library that might be helpful: https://github.com/lordmauve/wasabigeom
The vec2 class is optimised and very fast; everything else just a bit faster than pure Python.
I didn't have time to participate in PyWeek but I'm happy I found a few moments to hack
@woeful tree can we use assets from unity store?
No, looks like the license requires you to have a Unity license
π¦ and if we have a unity license then?
then are we allowed to use them @woeful tree ?
The licence is probably bound to only allow the assets to be used in Unity
No, see rule 6.2.b: https://pyweek.readthedocs.io/en/latest/rules.html
yes i saw that, that's why i was asking
yeah, the spirit of that rule is to level the playing field a bit: we don't want cashed-up folks to be able to buy amazing assets that others won't be able to.
briefly stops adding easter eggs to the game, in order to cook his dinner
No, see rule 6.2.b: https://pyweek.readthedocs.io/en/latest/rules.html
Would be nice to allow assets that are not under an OSI license (in the future) ... a lot of great free assets onitch.iothat you can use in games, but not redistribute as assets.
Kind of takes away the focus on python if you need to also find an artist :p
So I would be in favour of loosening the restrictions.... but is just an idea π
When submitting the final solution. Should it just be a zip file with all the files or should we compile it to an exe file? π
@woeful tree is MIT license allowed?
Yes, that's OSI approved
what is meant b liscense
or you could learn to make your own assets of course π
and another option for artwork I chose in the past was to have my game generate the assets at runtime itself... you could learn to write a generator... π
hehe should be an added rule, all art must be generated by python
please no, I'm just kidding.. I love the art our artists have created during this week too much
Agreed. Then I might actually have a chance π
I kinda dislike jams allowing you to use downloaded premade assets, it's annoying to have to mention you made everything from scratch yourself. If you're halfway decent at art/sound people will think sooner you've downloaded everything. (or at least score about the same in production/presentation)
but it's the world we live in
@solid star in december there's procjam, "create something that creates something" if you're interested in that sort of thing though
Thanks. I'll check it out
For a week project I think premade assets is ok. As long as you follow the rules. pyweek have restrictions around that
Hello everyone please i need help. I am not exactly sure if i can use this song, because it is not on the pyweek site and free license does include only YouTube videos etc. https://www.bensound.com/royalty-free-music/track/ofelias-dream
can anybody help me with this? Thanks
i know about this, but i am not sure about license on this page
hmm. It's certainly not public domain or creative commons
so i cant use it. ok thank you.
I would have liked to make the restrictions on art and sound looser, but I couldn't think of a definition of "free" that holds up to the level playing field goal. If something isn't under a proper free license then you're free to add any kind of conditional constraint. "Here's an asset, it costs nothing, but you're only allowed to use it if you're a British man over the age of 40"
The Bensound Free license looks pretty free: https://www.bensound.com/licensing but I can't see the exact terms
Bensound Licensing
The written terms are very permissive
Then they try to roll it back in a table
They would struggle to enforce their terms in court I imagine
Python has finally gained the upper hand!
(The game logic is in Python, but in the first 5 days we focused on presentation...)
This one has really large horns. Download the Cute Mountain Goat Icon and thousands others from IconBug.com
is this ok to use?
@woeful tree
JavaScript please die #seriously
Hey guys, im trying to convert my game to exe but whenever I open it, it opens up the screen and after a second or so dies. what could be the problem?
what does the error say ?
Hey guys, im trying to convert my game to exe but whenever I open it, it opens up the screen and after a second or so dies. what could be the problem?
I hope you publish a.zipand not just an.exe....
Definitely not. "Your entry must include all code and data required for running, and instructions about how to run the entry." https://pyweek.readthedocs.io/en/latest/rules.html#your-final-submission
umm did you copy your image into your exe directory?
having an executable is better imo because it's easier for ppl to play your game
but a src zip is required of course
Yeah, the exe is very nice to have. But e.g. I won't be able to run it. (I'm on a Mac.)
having an executable is better imo because it's easier for ppl to play your game
I am on Linux. I am not installing Wine just to play your games, no offense lol
But there is no reason to compile it for Mac or Linux π
Best idea is just providing source and then everything else is a bonus
true
Done same
What should I put in the "Github repo" field? It just gives me "Enter a valid value." when I put a link there or format it like the example
like the example
karx1/spider-island
not
I entered pokepetter/pyweek_28_castaway and it doesn't work
https://github.com/pokepetter/pyweek_28_castaway
that's weird
I'm sad to say this island map is too awesome big and not our final game world π¦
Screenshot from tiled with massive zoom-out, if you're wondering why it looks so weird.
lol
So, do we have to bundle the game into an executable file?
No
Zip is file necessary... .exe is not portable to Mac, or Linux.
You can bundle an exe for Windows users if you want, but it is not necessary.
but you gotta put a README in your src zip that have running instructions
and according to the rules you need a run_game.py
and the zip should be zip of a folder, to prevent tar bombs
@keen geode just make sure to write down instructions on how to get it to run. something like: ```
pip install -r requirements.txt
python run_game.py
virtual env preference shouldn't technically matter. even though there are some strange bugs out there that are particular env related, it should be enough to give clear instructions and maybe adding a "Developed and tested on/with" section in your description, so anyone not using the same venv type and running into problems can try if using the same setup as described there helps
do i upload the zip file to my Pyweek entry page or do i just put it in the git repo?
i'm pretty sure you upload it and mark it as final but this is my first pyweek so i could be wrong
We're running out of todo items, looks like we might actually make it!
nice nice nice
@onyx basin the last upload you did on the pyweek site and marked as final (you can mark multiple uploads as final) will count as your entry. keep in mind, that you don't have to upload your final version at UTC 00:00 today but tomorrow. So take your time to polish the game until pyweek officially ends tonight/today/depending on timezone (in a few hours)... and worry about your entry page, final upload, etc. tomorrow. the additional day at the end isn't for coding but to upload your final entry and finish up with your presentation on your entries' page
How about virtual envs?
@keen geode be sure to exclude those from your zip archive.venv(python -m venv) is a good choice IMO, as it is included in standard python.... at least on Linux.
unlike e.g. pipenv or poetry that require third-party package installation.
I see now, thanks for the info. I'll put both pipenv and requirements.txt for installation
good morning pyweek'ers!
this fine Sunday morning my darned power is being turned off for half the day, starting in a few minutes :P
I'm on my laptop, tethering, so I'll be able to lurk tho π
FWIW asking judging co-challengers to make a venv and then install requirements to run your game is perfectly acceptabkle
requirements.txt with venv instructions are great.... At least for Linux users π
people typically only upload exe or app if they want to show it off to their family and friends
@graceful dust why for Linux users? those instructions work for everyone
Windows users who are not as experienced with python may struggle with it.
not so, it's just as easy on Windows to do that thing
(Generally speaking)
1 hour and 59 minutes to go \o/
looks like about 19 entries have submission uploads so far, niiice
aaand there goes my power, 8:02am π
We have just under 26 hours to upload though, right?
(hopefully it'll come back on before 1pm)
@graceful dust yes, you have a window of 24 hours to upload in, but it's really not a good idea to stretch into that too far as your entry might be overlooked by early judges
it was leeway introduced very early into pyweek because uploading to the challenge website could be difficult for some people - these days the upload goes to a much more capable system \o/
Still pretty useful when your team is spread all over the globe and may not be around at 0:00 UTC π
for me it's just 2 am and i'm polishing some last thiings
how do we upload the final project ? we link the github repo in a diary ?
@modest tapir use the "upload file" option in your pyweek entry page
and also mark it as final
ok ty
Just submitted my final! https://pyweek.org/e/gaming32/
just under an hour to go...
yep
Just uploaded my final too ! https://pyweek.org/e/scotchgames/
<1 minute to go!!
are you guys packaging any libraries with the submission or just letting people do pip install -r?
Almost done!
TIMES UP π
Well done, everyone!
Here's what you have to do now:
- Ensure you have a README file. If you used Python 2, make that clear; otherwise people will assume Python 3. Also detail other libraries you used (and their versions).
- Zip up your entry. Please include source code. Avoid creating a tarbomb by ensuring all your files are in a subdirectory in the ZIP file.
- Upload your entry using the entry page. Be sure to mark it as final or it will not count.
- Make sure your game title is correct.
- Add a description, including anything you want to the judges to know.
- Upload a representative screenshot. The last screenshot you upload will be shown on your entry page.
yay @woeful tree
L A S T M I N U T E M E R G E C O N F L I C T S
Good work everyone!
You can resolve merge conflicts on upload day, that seems fine, given that pushing to a repo is a kind of uploading π
we have time to submit but it does cause great fear in my heart
There's no requirement to push anything to a repo, anyway.
:)
The only requirement is that you upload it to the PyWeek site within 24 hours of the challenge end.
try again in a bit
Yay, I can eat dinner now. Brython was a blast to use for this. I'm still not sure if I'm the first one to do a browser game in a pyweek, but I managed to finish something that vaguely looks like a game π
don't stress, there's a generous upload grace period built into the challenge π
@daring sleet I think that happens when your upload takes too long and times out
yes, it is taking too long
Brython huh! That's very interesting.
that's entirely reasonable
If all else fails, DM me a link to the tarball and I'll get it uploaded
@pulsar seal nope, not the first one.
half of our upload size is the 25MB libBLAS π¦
okay thanks @woeful tree
(we tried removing it but something in the lib spaghetti needs it)
Yeah, we decided to ditch the numpy dependency because of that
we couldn't figure how to remove it π¦
someone said something about 24 hours left to submit?
indeed @daring sleet
You're uploading a copy of numpy?
don't push it though - people will start looking to review games immediately, and if you upload really late you might not get reviews
@woeful tree in the built exes
Wait, people can review games on upload day?
Ohhh
I thought they only open up on Monday
@lusty wasp I would be reviewing right now except my power is out so I'm tethered to muy phone
I think that is correct
Anyway, early reviewers can check ours out from GitHub, I guess
I don't remember if you can rate via the entry pages
But I suspect it's all on the same schedule
oh. hmm. maybe the schedule code got tweaked. I can't see review links fro entry pages either.
You can probably pip install pyweek and download the current entries already though
mea culpa if I'm out of date
I don't think that's a change I made
heh maybe I changed the schedule code ages ago and completely forgot π
the schedule-generated table definitely says that judging is underway tho π
Just got done! https://pyweek.org/e/throwaways/
Ran out of time didn't get to finish it to a working state with proper game loop π’
one nice thing about doing a browser game... I uploaded source distribution, but also just threw up a gitlab pages static site for anyone that doesn't want to run it locally
congrats anyway @keen geode !
Are those
