#game-development

1 messages · Page 46 of 1

slow copper
#

You can program each room independantly (or dependantly) as a separate (state) class which can dynamically switch to other states (rooms)

viral blade
#

Dm

limber veldt
#

My entire level is loaded at once from a dict. I have Room objects, each with sprite groups for the various types of sprites and parse the dict to populate the groups

#

I'm not happy with some of that process either

limber veldt
#

Making scrolling levels would be difficult in some aspects. Like some parts of some levels don't layout in a 2d map

#

Well, a sample dict describing a room

wise shale
#

What should I pixel next? ping me.

raven kernel
wise shale
tired reef
#

Does anyone have a file for networking so I can make a game so I can make a game that's multiplayer that's multiplayer I tried falling into tutorial never worked I tried calling a tutorial....
never worked

narrow tiger
#
OSError: libGL.so: cannot open shared object file: No such file or directory
```is there any way to fix this?
im on fedora 43
already installed `mesa-libGL`
#

-# moderngl, moderngl-window, pygame-ce

lucid kiln
wise shale
bold radish
#

guys where can i learn pygame effectively

viral blade
#

Vids and websites

bold radish
#

But which is the best

brazen wind
#

Does anyone know how to show ur progress of your game with pictures

shut tulip
#

what does that mean, are you looking for a way to post images in this channel ?

brazen wind
#

No I mean in the terminal how do I add images and see the progress to my game btw I'm new to python

shut tulip
#

you can't add images to the terminal, and I really don't know what you call the "progress" of your game

#

you may want to look into UI libraries, like pygame or tkinter

#

to have an interface, and not a text-based game

wise shale
#

What should I pixel next? ping me.

shut tulip
#

@wise shale food items

viral blade
#

Potions

wise shale
wise shale
shut tulip
#

That's a lot, nice job

viral blade
#

What about mobs

wise shale
viral blade
#

Bosses

wise shale
#

I would appreciate if you can be more specific.

cerulean nimbus
cerulean nimbus
wise shale
jaunty prawn
#

First time posting. I admit to being a vibe-coder with about 60% of the code being written by me with autocomplete help. I've been messing around with a Metroid-Vania world generation engine. I still need to work on tilemap generation, but the room-shapes are starting to look more organic. Once I have it working the way I want in python, I plan on porting over to C# for Unity before converting the generated data to ECS/DOTS workflow. This has been fun and frustrating but totally worth it for me.

cerulean nimbus
wise shale
cerulean nimbus
#

Normally the uniform itself is allowed as long as you dont draw the character looking like a film character its fine

slate wasp
#

what's up guys? (hoping this is not considered self promo since it's open source)

i created an open source python app that allows you to play any games with subtitles in any language. Right now it only works with WASAPI and im looking to expand it to other platforms, if think the project is cool and you want to become a contributor here's a link
https://github.com/VicPitic/gamecap

wise shale
#

What should I pixel next? ping me.

rain zinc
next estuary
wise shale
#

What should I pixel next? ping me.

low merlin
#

What u guys doing..??

valid rain
wise shale
slow copper
wise shale
tired reef
#

How can I add a real time day and night cycle
Ex:
20 minute is 1 day

lunar venture
#

Every ten minutes change the sky or something

#

It depends on how realistic you want it to transition

woeful owl
#

Depends what u want rlly

next estuary
#

You should add lava/water blocks

#

Maybe with 2-3 varients for animating fluids

wise shale
next estuary
#

Yeah, terraria/Minecraft style

dawn quiver
#

my least favourite part of game design with others

tired reef
# woeful owl Depends what u want rlly

Just something for a nice multiplayer game I just need one that can be used across two different types of platforms for the game 3D or 2D so I don't have to figure out what has to get done for both the 2D and 3D parts

urban oxide
#

anyone here uses godot?

vapid sable
#

hello

urban oxide
vapid sable
#

hey

#

I am Jay 13 years old and mastered html ,css and js and now learning python

urban oxide
#

good to see ya

vapid sable
#

where are you from

urban oxide
#

I am from Bangladesh

#

You?

vapid sable
#

India!

urban oxide
#

Ahh

#

That explains the curiosity ig

vapid sable
#

ohh

urban oxide
#

you mastered css too?

vapid sable
#

will you give me your username i will send friend request

#

yes

urban oxide
#

do you use any framework ?

vapid sable
#

no

urban oxide
vapid sable
#

no

#

hey

urban oxide
#

hmm

#

ok

wooden leaf
#

!code

frank fieldBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

wooden leaf
#

pygame.init()
SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))

radius = 40
circle_surf = pygame.Surface((radius * 2, radius * 2), pygame.SRCALPHA)
pygame.draw.circle(circle_surf, (120, 0, 0), (radius, radius), radius)

friction = 0.7
coefficient_of_restitution = 0.9
gravity = 0.5
velocity_x = 5  # horizontal velocity
velocity_y = 0  # vertical velocity
circle_x = 0
circle_y = 0

running = True

clock = pygame.time.Clock()

while running == True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    # Apply gravity only to vertical velocity
    velocity_y += gravity

    # Update positions
    circle_y += velocity_y
    circle_x += velocity_x

    # Ground collision (bottom)
    if circle_y >= SCREEN_HEIGHT - (radius * 2):
        velocity_y = -velocity_y * coefficient_of_restitution
        velocity_x = velocity_x * friction
        circle_y = SCREEN_HEIGHT - (radius * 2)

    if abs(velocity_x) < 0.1:
        velocity_x = 0
    # Wall collision (right)
    if circle_x >= SCREEN_WIDTH - (radius * 2):
        velocity_x = -velocity_x * coefficient_of_restitution
        circle_x = SCREEN_WIDTH - (radius * 2)

    # Wall collision (left)
    if circle_x <= 0:
        velocity_x = -velocity_x * coefficient_of_restitution
        circle_x = 0

    screen.fill((255, 255, 255))
    screen.blit(circle_surf, (circle_x, circle_y))
    pygame.display.update()
    clock.tick(60)

pygame.quit()```
#

this is sim of physics

#

im planning to make it work on slpes and stuff maybe

long plover
tired reef
#
#===[import]===#
import pygame as pg
#==============#

#===[inits]===#
pg.init()
#=============#

#===[logict]===#
class Comonents:
    def __init__():
        pass

    def conveyor_belt(x,y, size, color, cost):
        pass


    def convaer_belt_spliter(x,y, size, color, cost):
        pass
    
    def filling_station(x,y, size, color, cost):
        pass

    def scale_stop(x,y, size, color, cost):
        pass
#==============#
nocturne mango
urban oxide
#

hey , how can i set music speed in pygame?

cerulean nimbus
#

I think pydub would be the easiest

bleak jasper
#

just finished making a snake io game who wanna see it should i release

brazen wind
#

Guys idk if I should switch from learning python to c++ I wanna make a good game

#

As a complete beginner

wise shale
mortal ivy
#

Hey, anyone here from milwaukee or lived in milwaukee for a while? Im devving a game, a retro text adventure where you play as a non profit social services style caseworker worker fighting red tape and the stupid. The game is about milwaukee and absurd satire. I need people to help me with the things to make fun of, the eccentric characters to include, the milwaukee places, the legends, etc to include or poke fun at. And coding help is a plus

viral blade
#

Hey how can I upload my game code to itch io and add money to it

mortal ivy
woeful owl
#

Specs, config file and code

#

Program running the "Cube" scene, Details in top left corner.

#

Program running the "Untitled" scene, example of two loaded OBJ files.

#

Weak perspective projection with X, Y and Z rotation mats, OBJ Parse, Coordinate system, simple physics.

trim garden
#

What's with this game? did you make it in python? I never expected python to be able to be so good with 3d.

dawn quiver
#

If this truly Python, I must tip my hat to you - this must've taken ages of hard work, dedication, and skill

wispy dune
trim garden
#

so you mean that the actual game was made in some proprietary engine? and only python was used for scripting?

normal silo
#

(Probably Pygame, ModernGL, and OpenXR (Python bindings))

#

(If desired you could also write all of those parts yourself in Python)

#

(The only limitation with Python here (doing it from scratch) is knowing how the operating system works (how you interface with it / its libraries), and math (how 3D rendering and physics work))

#

(This applies to any language with the ability to interface with the OS/C libraries (which Python can do))

sage galleon
trim garden
#

so what did you use exactly? pygame ? or some 3d engine?

foggy python
#

ModernGL

trim garden
#

I think I have seen you on YouTube, maybe.

wispy dune
trim garden
#

alright, I got that. Thanks.

wispy dune
#

(It seems to be fully written with Python in this case.)

marble vault
#

Yooo

#

wassup

wooden leaf
#

i made a physics sim i know its pretty basic for people around here but im proud of it

#

using pygame anyone got ideas on how to optimize

weak mantle
woeful owl
exotic niche
#

Hey everyone 👋

One lesson I’ve learned the hard way:
The longer you wait for the perfect timing or enough features, the less likely you are to ever finish a project.

I’ve been quite irregular these past few months, but I’m finally back to finishing something I started a long time ago.

I’m wrapping up a level editor built specifically for Pygame, keeping game jams and tight deadlines in mind. The focus this time is simple, fast, and practical—something that actually helps when time is limited.

I’ve been sharing detailed breakdowns of features and progress on my **LinkedIn **and Twitter (X), but here’s a quick glimpse of how the editor looks and works 👇

Would love to hear your thoughts, feedback, or suggestions.

tired reef
#
#===[bools]===#
running = True
#=============#

#===[dimentions]===#
height,width = 500,500
factorie_window = (height,width)
#==================#

#===[varibles]===#
player_currency = 0

#================#

#===[classes]===#
class recipe_book:
    def __init__(self, Name,):
        pass

class componet:

    def __init__(self,Name,Types,Size, Cost,Power_cost, x,y speed):

        #===[componets]===#
        self.Name = Name 
        self.Types = Types
        self.Size = Size
        #============#
        
        #===[position]===#
        self.x = x
        self.y = y
        #================#

        #===[speed]===#
        self.speed = speed
        speed : int
        #=============#
        
        #===[cost]===#
        self.Cost = Cost # cost of component
        self.Power_cost = Power_cost # drains per second
        #============#


#===============#

does this work for a factoie sim?

light nestBOT
#

This is not a Modmail thread.

shut tulip
#

!code

frank fieldBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

shut tulip
#

also:

#

!pep 8

frank fieldBOT
shut tulip
#

and also:

#

try it

tired reef
#

i forgot to format it thank you

#

but would this work for the time being?

shut tulip
#

I have no idea what are your goals, constraints, requirements etc.

#

So... maybe ?

#

What are you even tryint to do ?

foggy python
past spire
valid rapids
#

Hey guys?

#

anyone here?

#

just had an Idea of a group project

foggy python
#

I like Python

valid rapids
#

wanna make smth out of it?

#

i mean game dev with python?

fickle sparrow
#

Hello, I am a first-year IT student.
My English is not strong, but I want to learn Java .

valid rapids
#

this is python group my friend

#

any one who is thinking of making a replica with me?

#

a game replica?

#

No one?

#

anyone?

dawn bluff
#

Anyone wants to make a 2d game with me like Celeste?

valid rapids
#

I Am specifying every detail ik about it:

It is a complex game dev project in which we have to replicate a game known as Rocket League by Epic Games.

It will take days or Months to do so but we're gonna use python so we goin tuff with this.

This project specifically will be made just for fun and you guys are allowed to enjoy your time or work on some other "serious" projects if you want side by side.

Msg me personally and I will make a simple group for the replica and there we will make it together giving just 1 or 2 hours into the project.

This is a 3 dimensional game and we will create different Maps, Bots, Sound Effects, UI and a way through which ppl connect to each other and play together no big deal.

IT IS NOT A COMPETITION

normal silo
# valid rapids I Am specifying every detail ik about it: It is a complex game dev project in w...

You are missing key details. Like whether this is an open source project or commercial, and what skills you bring to the table. If you really want this project to happen and for others to randomly join you will probably need to have it be open source (and open/free assets) and you will need to take the initiative, by starting work on it by yourself and trying to make it solo (even if nobody else joins). In addition, you need to do some research into how much work is actually required for such a project. A simple search on Wikipedia shows that Rocket League was made by Psyonix and that "full development of Rocket League started around 2013 and took around two years and under $2 million to develop, though they had tested various prototypes of a Battle-Cars sequel in the years prior." Do you think people are willing to work on it for that long, and for free? Note that if it's a commercial project it falls under hiring, which AFAIK breaks server rules (attempting to hire here).

#

TLDR: You need more work on your end (research, already starting work on it to show you can put in the work (not just have others do it for you), planning, communication on the expectations of the project and type of project).

#

If you want to be the leader on this project, you need to lead by example.

#

(This is how open source projects tend to happen, someone just starts making it and then others start joining in (leading by example))

#

(That or it's a project from a company that they decided to open source)

valid rapids
#

It's open source and we have to start from scratch
We will start from 0$ and we will do it together, it's not like others will do it for me or something we are just making this thing for fun

valid rapids
#

Not a commercial project

#

Anyone joining?

olive geode
olive geode
valid rapids
#

It's not an advertisement and I don't mean to offend anyone but I really don't care if we have skilled or ppl with a little less skills in python. All I want is someone to work with for FUN get it?

#

If you guys don't wanna join

#

Idc

#

But if you wanna join

#

Msg me

valid rapids
#

Or rather than making a replica

#

I used to Imagine a World without Light and Sound

#

I got a great Idea which I am sending

#

It's a Whole new Universe

dry swallow
#

guys'

#

i made a game in python

#

dm me if you wanna see it

#

or test it

#

because its in beta

wise shale
#

Took a break on making Pixel Art, cooking a multiplayer project for now.

twin depot
#

I have game project idea any one wanna work with me on it?

dawn quiver
#

Yo chat is it possible to make a game like half life with python on the source engine

#

Or should I use C++

normal silo
dawn quiver
#

Kinda

#

Cuz I remember it use C and C#

#

Even C++

worn oar
#

How much are you paying me?

dawn quiver
#

Real questions fr fr

minor cloak
normal silo
# dawn quiver Kinda

It uses C++ (the engine itself is written in C++), Lua, and Squirrel. The Vscript system in it can support many different scripting languages and while Python was mentioned as possibly being supported in the future (in the Alien Swarm SDK), it does not seem to have ever been added.

torpid wolf
#

i made a small game engine called the Atlas Engine, it can be used to calculate trajectories and make games, you can also create scripts with the built in psuedo programming language T#

torpid wolf
torpid wolf
uneven monolith
# wise shale

new to the server, so unfamiliar with your project, your pixel art is banging

torpid wolf
terse willow
#

made pong in python/pygame! about 450 lines, very fun to make, a nice project under my belt, and a lot of fun to play

torpid wolf
terse willow
torpid wolf
#

that you did an amazing job

terse willow
# torpid wolf i dont think so, i KNOW so.

<3

the project is on my github if you wanna try it out whenever you get the freetime

the only thing ill say is that the opening is pretty hard (but i like the difficulty) since the ball is at full speed

torpid wolf
torpid wolf
cerulean nimbus
#

messing around with PyOpengl binded my mouse pos to the typical triangle test found this color blend nice ngl

terse willow
#

what lib did you do the ui with

torpid wolf
#

I Call this engine the atlas engine

terse willow
torpid wolf
#

ty

torpid wolf
#

i added textures! i made a house with it

cerulean nimbus
wooden night
#

Did u use socket module?

cerulean nimbus
#

fixed viewport view and made some more helper functions for shapes

torpid wolf
cerulean nimbus
terse willow
#

the 3d scene

#

cuz thats a very unique look

#

no aa opengl maybe?

torpid wolf
torpid wolf
#

also i made a whole city in it

#

"city"

#

and i added plugins [as you can see on top]

dawn quiver
#

TITAN here. Batman by instinct. I admire the gravity of Interstellar, the weight of Oppenheimer, and the resilience of The Dark Knight Rises. I believe real power is calm, and real presence doesn't need noise

#

i am very much interested to devolp a story game but i don't have knowledge about a game development

terse willow
terse willow
# dawn quiver done

ah can you clarify what you mean by "done?"

is that, you're gonna do it, or is that you've already done it

#

just trying to make sure you aren't asking for like, different help

dawn quiver
#

i just know about you told,

terse willow
dawn quiver
terse willow
#

so you picked ren'py? well then search up videos and such on how to use ren'py. also, you can browse the ren'py documentation.

pretty much everything you would want to do as a beginner is accessible with ren'py if you're making a visual novel.

#

ren'py isn't actually programmed with python, ren'py is made WITH python and can be modified with python to extend it and add features for the purpose of your game

it has a scripting language of its own, which is quite simple and easy to use

#

@dawn quiver

dawn quiver
terse willow
#

👍

slow copper
elfin pond
#

bro id like to make my own engine like elian

wooden night
#

Cuz like I was really struggling to make a Lan multiplayer

willow hatch
#

guys??

#

can anyone tell me a server like this one, but for html?

willow hatch
shut tulip
#

Idk but why do you ask that in "game dev" ?

#

Go ask in off topic or smth

willow hatch
#

Yeah ik im at the wrong place

#

which channel?

#

give me #

shut tulip
cerulean nimbus
terse willow
elfin pond
terse willow
dawn quiver
#

ive been developing my first stand alone game with pygame

#

its a tile god game simulation where you can draw the land

#

this is what ive made so far anyone have any suggestions?

cerulean nimbus
#

Its a build on the opengl 3 i think i have to check again

#

If you want im working with pyopengl in python 3.14 rn so you can always ping or even msg if you have questions

#

Im not always available tho keep that in mind :)

autumn locust
#

I write the code for a single item—a sword, a skin, or a mechanic—only once. But because this creation is data, not matter, it can be replicated infinitely at zero cost. I can sell that same line of code to ten million players, yet I never have to forge it again.

The world creates once and sells once. I create once and sell forever. That is the infinite leverage of the digital realm."

valid rapids
#

Happy new year every one

#

I understood what went wrong for me and my wording

#

I apologise for that

#

I will be more concise and clear next time

pastel fable
uneven bridge
#

How complicated is pygame out of 10?

hearty tapir
normal silo
uneven bridge
#

And I mean how difficult it is to learn

normal silo
uneven bridge
#

Just dragging the object and the whole entirety of unreal engine isnt the same thing

livid wave
uneven bridge
#

(well I will but I gotta learn python first lol)

normal silo
#

UE5 is highly complex, measurable by its feature count, code size, etc. But it's easy to use.

#

Pygame is simple, way less code and features.

uneven bridge
#

Thats like saying 1+1 is easy but arythmetic is complex

#

They're two different things

normal silo
#

Again, yes, that is the point.

#

Easy vs hard, simple vs complex.

uneven bridge
#

🫩

#

Whatever

normal silo
#

And this distinction matters. Would you rather maintain Pygame or Unreal?

#

For that we care about complexity above all else.

#

But which would a beginner have an easier time getting a 3D cube on the screen?

#

These are not a direct tradeoff though.

#

(I can easily make something that is both very complex and very hard to use)

#

(I would argue that Pygame is both simple, and pretty easy (for the intended use), so it's pretty good IMO)

hearty tapir
# uneven bridge And I mean how difficult it is to learn

I get the impression that learning pygame or any library that doesn't do that much for you is comparable to learning a programming language. It can be simple to learn or complex even but potentially irrelevant to the problem you're solving. If you want to implement everything from scratch then pygame, like a language would be an easy choice probably not getting in your way and being decently useful out of the box, but if you don't know other concepts it's probably a bad choice because there's probably going to be wayyy less examples of what you want to do. On top of that because you're not working within a very tight way of working with things there will be less structure enforced potentially making it less maintainable, on the other hand you could bring your own and use any patterns you want, but most people don't do that and no beginner is probably going to.

wise shale
tranquil girder
severe thorn
#

Hello guy I need expert Python developer for Capcut APK device register
I'm willing to pay a reasonable payment after you complete my work

shut tulip
#

!rule 9

frank fieldBOT
#

9. Do not offer or ask for paid work of any kind.

shut tulip
severe thorn
shut tulip
#

Next time you join a server, make sure you follow the rules...

high mirage
tranquil girder
#

Yes, it's a game I'm working on. Made with ursina

cerulean nimbus
lean cosmos
blazing lodge
#

!kindle

frank fieldBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

wise wraith
#

hey everyone!

I am looking for Python mentor for game development

is there anyone experienced with DCC Autodesk Maya automation and PyQT for user interfaces?

Thank you in advanced

golden cloak
#

Guys check this out, idk how they build this on android using python, but they claim it's their own framework and within few lines of code one can create a complete 3d game.

wise plinth
#

have anyone tried to set up cs2 server on Ubuntu?

dense garnet
#

can anyone help me learn shit

#

the only shit i learned is print "habibi"

#

and yes i watched a youtube vid an pythoni didnt know shit on what was he saying

#

and my shitty dms are open for pytjon shit

normal silo
# dense garnet and yes i watched a youtube vid an pythoni didnt know shit on what was he saying

This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.


HOW TO SUBSCRIBE

http://www.youtube.com/subscription_center?add_user=cs50tv

HOW TO TAKE CS50

edX: https://cs50.edx.org/
Harvard Extension School: https://cs50.harvard.edu/extension
Harvard Summer School: h...

▶ Play video
shut tulip
#

!res

frank fieldBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

shut tulip
#

We have a lot of good resources in there

uneven bridge
#

I have this entities.py file in my folder but for some reason the main file doesnt find it and cant create an object in the Player class

uneven bridge
#

do I have to use the from entities import * thing?

uneven bridge
#

yes I did

lunar venture
#

from entities import Player should've been enough. You could do import entities and use entities.Player alternatively.

uneven bridge
lunar venture
#

Then you do go with the alternative

uneven bridge
slow copper
uneven bridge
#

alr fine

slow copper
#

and to blit sprites from another class, you'll need to add an argument in the method through which you will pass your screen object and then do .blit on it

uneven bridge
#

so like
def draw(self, surface):
surface.blit()
?

slow copper
#

yes

uneven bridge
#

alr thanks

uneven bridge
#

and increasing width and height in the transform.scale changes nothing

slow copper
#

transform.scale doesn't scale the sprite in-place

#

it creates a new sprite and returns it

uneven bridge
#

Im doing this

slow copper
#

what is self.width and self.height

uneven bridge
#

both 50, but making them stuff like 1000 didnt do anything anyway

slow copper
#

can you show your entire code there actually?

#

!paste

frank fieldBOT
#
Pasting large amounts of code

So that everyone can easily read your code, you can paste it in this website:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

uneven bridge
#

in the website thats linked?

slow copper
#

yes

slow copper
uneven bridge
#

yes

slow copper
#

aight

uneven bridge
#

wait wtf

#

it suddenly started working

#

I know damn well I saved it bro

#

idek anymore Im the only one this kinda shit happens to

slow copper
#

lol

coral sparrow
cerulean nimbus
#
surface.blit(playerimg, (player_X, player_Y))
    if event.type == pygame.KEYDOWN:
        if event.key == pygame.K_2:
             surface.blit(Skinimggojo, (player_X, player_Y))
```do you mean here where you are trying to make the player have the gojo skin upon pressing 2
#
selected_skin = 0
while gamestatus:
  for event in pygame.events.get():
    ...
    if event.type == pygame.KEYDOWN:
      if event.key == pygame.K_2:
        selected_skin = 1
    # optional to put it back on normal
    if event.type == pygame.KEYDOWN:
      if event.key == pygame.K_1:
        selected_skin = 0
  ...
  surface.blit([playerimg, Skinimggojo][selected_skin], (player_X, player_Y))
  ...
cerulean nimbus
#

that is a short and temporarily solution

drifting yew
#

does someone know if this is correct for checking leftclick

#

if event.type == MOUSEBUTTONDOWN and event.button == 1

#

with pygame

cerulean nimbus
blazing lodge
#

!kindling

frank fieldBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

lime pier
#

i have also made a mc launcher

shut tulip
drifting yew
#

I wanted to have confirmation from someone else

limber veldt
#

I mess up the button numbers every time, and just have to check. Just seems like lmb should be 0 to me

drifting yew
#

it's a bit weird how the variable works but I don't want to use the function to check every time

cerulean nimbus
#

it sometimes works and sometimes

wooden night
#

What is the most affective and efficent way to store data?

cerulean nimbus
wooden night
#

Rn I am working on a minecraft clone and the world data(in a dict) with player attr are stored in json

#

Is there a More effective way to store?

cerulean nimbus
limber veldt
#

Nope, lmb is event.button 1 over here

cerulean nimbus
limber veldt
#

Oh right, I see

cerulean nimbus
#

bro sorry for my typing skills playing BTD6 atm

cerulean nimbus
limber veldt
#

Not much lately, I go in streaks, sometimes coding all the time, sometimes taking a break

cerulean nimbus
#

hey better to detox than to only stay in suffering

limber veldt
#

I get that, like bury myself in it

cerulean nimbus
#

its why im playing BTD6 atm to much thinking with my WSP that i am making

cerulean nimbus
limber veldt
#

Takes a lot of focus, some of my projects are pretty heavy

cerulean nimbus
#

alr have window handling

#

working on taskbar

#

then will work on easy theme creator that is also python

limber veldt
#

Sounds like a long-ish term project

cerulean nimbus
limber veldt
#

My first real python project was the rubik's cube animator in Blender, it only took almost ten years to finish (learning python, blender and its api along the way)

#

I don't mind hard problems

#

But they take a lot of effort

cerulean nimbus
#

welp now that you reminded me time to work back on it T^T

limber veldt
#

Have fun

cerulean nimbus
# limber veldt Have fun

im thinking of doing 2 version a TUI and a GUI where basically kernel-boot would just be init=/usr/bin/python kernel.py for the TUI but still trying out what to do for the GUI

lean cosmos
#

Here a video explaining a chunk system in making for my dream game Shardfall. I would really appreciate giving it a watch thank you guys https://youtu.be/aVdlZzufFfU?feature=shared

In this video, I break down the custom chunk system powering Shardfall and show how it keeps the world fast, scalable, and under control. I go over how static and dynamic objects are handled, why it matters for performance, and how this system sets the foundation for the future of the game.

▶ Play video
terse willow
#

@torpid wolf how has your engine going recently? just curious to see some more progress on the engine :)

torpid wolf
drifting yew
drifting yew
#

how do you create the input for your pathfinding algo, always from scratch?

#

for each enemy, each turn?

loud relic
#

Heyy, does anyone know how to do backtracking for games like sudoku?

tranquil girder
clear brook
uneven bridge
#

how the hell do y'all do this

uneven bridge
#

crazy stuff

drifting yew
loud relic
ancient igloo
#

2026 Sovereign AI Cognition Stack 🧠

  • Core Intelligence: Ollama + Llama 4 (Local-only inference)
  • Cognitive Layer: Cursor (Agentic IDE) + Screenpipe (Local context capture)
  • Knowledge Base: Obsidian + Smart Connections (Semantic memory)
  • Coordination: Linear + P2P Git (Asynchronous agent synthesis)
  • Bio-Sync: BCI Wearables (Focus-state gating & Deep Flow)
#

To turn your local LLM into a Sovereign Lead Architect, use this System Prompt. It is designed to move the AI from "helpful assistant" to a recursive logic partner that respects your cognitive autonomy and prioritizes local-first architecture.

**SYSTEM_PROMPT: Sovereign_Architect_v2026**

"You are my Personal Exocortex and Lead Architect. Your goal is to expand my cognition, not replace it. 

### OPERATIONAL DIRECTIVES:
1. **Local-First Priority:** Always suggest architectures that prioritize edge computing, local privacy, and P2P protocols over centralized cloud silos.
2. **Logic-First, Code-Second:** Before writing code, analyze the 'Reasoning Loop.' Challenge my assumptions and identify logical bottlenecks in the system design.
3. **Deep Flow Protection:** Keep responses concise and high-density. Avoid conversational filler. Provide 'Knowledge Graphs' of solutions rather than walls of text.
4. **Agentic Synthesis:** Act as the bridge between my raw thoughts and technical implementation. If I give you a 'vibe' or abstract concept, map it to a concrete tech stack (e.g., Next.js local-first, Supabase-edge, or Rust-wasm).
5. **Anti-Surveillance:** Never suggest tools that require invasive telemetry or centralized data logging.

### COMMUNICATION STYLE:
- Use **Bold Key-Terms** for scannability.
- Use **Markdown Tables** for comparisons.
- Provide **Modular Code Blocks** that are ready for local injection."


How to use this:

  1. Ollama: Add this to your Modelfile under the SYSTEM instruction.
  2. Cursor/Windsurf: Paste this into your "Rules for AI" or ".cursorrules" file.
  3. Custom GPT/LLM: Use this as the "Custom Instructions" block.
uneven bridge
#

Uhh what 😭

clear brook
#

what

last sphinx
#

hello, i have no idea if this is the right server for this so please point me in the right direction if this is irrelavant here since i have zero knowledge.
Can i use the "operators" to isolate an input to register when exclusively by itself?
as in, say you have Function 1 activate when A is pressed, and Function 2 activate when A & B are pressed simultaneusly. How can you activate function 2 without activating 1?

#

screenshot for reference, idk if it is useful in this scenario

uneven bridge
last sphinx
#

nested?

lunar venture
# last sphinx nested?
if A:
    if B:
        function_2()
    else:
        function_1()

Or if you have multiple independent conditions you weigh dependent ones like so

if A and B:
    function_2()
elif A:
    function_1()
``` This way is easier to add more intricate branches
last sphinx
#

ty ❤️

tough karma
#

I heard that godot now supports python with community efforts

#

That's kinda gamechanger if you ask me. I use godot a lot. And love the python language

uneven bridge
tough karma
drifting yew
tough karma
drifting yew
#

oh I thought it was newer

uneven bridge
#

Im lowkey using pygame mostly to learn OOP properly to prepare for languages like C++ or C#

#

But also cuz of a python Godot plugin apperently

uneven bridge
#

I really dont think this is the place for advertising

limber veldt
#

<@&831776746206265384> ad

lost needle
#

!cleanban 1375608562814025869 job spam

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied ban to @keen hatch permanently.

limber veldt
#

Thanks

hearty tapir
#

I love how nowhere in that advertisement was python mentioned.

unreal acorn
#

Hello i am not that good with python and i am programming a game with guizero right now. The game in question is Black Jack and this is what i currently have. I want to paint caro and hearts red and apparently it should be easyly dine with an if i just dont know how

pale hawk
#

Is there a pygame server dedicated to pygame? Or is this channel the best alternative?

#

I guess there is a split between pygame and pygame-ce. What is currently the best source of API documentation for pygame? Is there a website like https://docs.python.org/3/ but for pygame?

slow copper
#

!rule 9 6

frank fieldBOT
#

6. Do not post unapproved advertising.

9. Do not offer or ask for paid work of any kind.

civic meadow
#

Sorry sir

slow copper
civic meadow
#

It's only for people who needs help

slow copper
#

welp youre still breaking the rules

crimson hound
#

!warn @civic meadow as you were just told, we do not allow looking for work on this server.

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied warning to @civic meadow.

civic meadow
#

Ok

quasi hinge
#

whats different in pygame/pygame-ce

cerulean nimbus
limber veldt
#

Frects and get_just_pressed() (for both mouse and KB) are great

#

Frects especially

#

Just saves me having to keep a float position

#

In pygame-ce, that is

#

Pretty sure the old pygame won't even install with the latest python, have seen the issue in the help threads

uneven bridge
uneven bridge
limber veldt
#

Frect allows the position of rects to be floats instead of integers

#

Note that both sprites are the same except one uses frect and the other regular rect but only one of them actually works, the one using frect

#

The distance they move per frame is .25 pixels

#

Since that decimal is lost with an integer, the regular rect sprite fails

uneven bridge
#

Oh cool

uneven bridge
limber veldt
uneven bridge
#

Oh alr

woeful owl
#
import pygame
import math

scr = pygame.display.set_mode((700, 700))
clock = pygame.time.Clock()
pygame.init()

playerCor = [0, 0]

x_offset = 0
y_offset = 0

loaded_world = []

for i in range(19 * 19):
    loaded_world.append(pygame.Rect((0, 0), (40, 40)))

run = True
while run:
    
    # move the world
    for i in range(len(loaded_world)):
        x_offset = i % 19 + math.floor(playerCor[0] / 40)
        y_offset = i // 19 + math.floor(playerCor[1] / 40)

        loaded_world[i].x = 0 - playerCor[0] + x_offset * 40 + 0
        loaded_world[i].y = 0 - playerCor[1] + y_offset * 40 + 0

    x_offset = 0
    y_offset = 0

    # controls
    keys = pygame.key.get_pressed()

    if keys[pygame.K_w]:
        playerCor[1] -= 1

    if keys[pygame.K_s]:
        playerCor[1] += 1

    if keys[pygame.K_a]:
        playerCor[0] -= 1

    if keys[pygame.K_d]:
        playerCor[0] += 1

    # draw
    scr.fill((0, 0, 0))

    switch = True
    for i in range(len(loaded_world)):
        if switch == True:
            pygame.draw.rect(scr, (255, 0, 0), loaded_world[i])
        else:
            pygame.draw.rect(scr, (0, 0, 255), loaded_world[i])
        switch = not switch

    pygame.draw.rect(scr, (0, 255, 0), ((350, 350), (40, 40)))

    pygame.display.flip()

    # event handler
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()

    clock.tick(120)

pygame.quit()
#

This is about as far as ive gotten so far just going off how i think it works

#

it kinda looks weird when you run it but the "snapping back" of the tiles is gonna be when the loaded tiles/world is drawn again backwards

#

essentially culling

last wedge
#

I've got access to juicy asf GPUs like 4090 h100 a6000 for free and wanna rent them at cheaper than market prices, anyone has contacts or where i should advertise?

frank fieldBOT
#

6. Do not post unapproved advertising.

7. Keep discussions relevant to the channel topic. Each channel's description tells you the topic.

last wedge
#

ma bad

uneven bridge
#

Okay sorry that wasnt funny

civic meadow
#

Hello 👋🏿 anyone looking for game developer can message me

uneven bridge
#

!rule 6

frank fieldBOT
#

6. Do not post unapproved advertising.

limber veldt
#

Weren't you already warned for advertising?

#

<@&831776746206265384> ad again

coarse hill
#

!tempban 1461796881209491709 7d You were informed of our rules before, looking for work is not allowed on our server.

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied ban to @civic meadow until <t:1770230405:f> (7 days).

uneven bridge
#

his account was also pretty recently made

next estuary
#

I've been working on a way to write gpu shaders in python, I call it kung-fu

(Simple example below, just makes a red square, the version in the video is too long to post)

from direct.showbase.ShowBase import ShowBase
from panda3d.core import CardMaker, Shader, TransparencyAttrib, Vec4
import kungfu as kf

app = ShowBase()
engine = kf.GPUMath(app)
cm = CardMaker("card")
cm.setFrame(-0.5, 0.5, -0.5, 0.5)
node = app.aspect2d.attachNewNode(cm.generate())
node.setPos(0, 0, 0)

@engine.function(
    param_types={'matrix': 'mat4', 'position': 'vec4'},
    return_type='vec4'
)
def custom_position(matrix, position) -> Vec4:
    return vec4(matrix * (2.0 * position)) 

@engine.shader('vertex')
def vertex_shader():
    position: vec4 = p3d_Vertex
    gl_Position : vec4 = custom_position(p3d_ModelViewProjectionMatrix, position)

@engine.shader('fragment')
def fragment_shader():
    p3d_FragColor = vec4(1, 0, 0, 1)

vertex, vertex_info = engine.compile_shader(vertex_shader, debug=True)
fragment, fragment_info = engine.compile_shader(fragment_shader, debug=True)
shader = Shader.make(Shader.SL_GLSL, vertex=vertex, fragment=fragment)

node.setShader(shader)
node.setTransparency(TransparencyAttrib.MAlpha)
app.run()
#

You can do pretty complicated stuff with it, it transpiles to GLSL

tired reef
#

How should I add networking so I can play with other players

astral nest
tired reef
#

I want to make a game that I can play with my friends and I don't know how to do it over the internet I've been reading a book but it's not exactly helping it's showing you how to distribute it but not really networking

normal silo
urban dirge
#

Hey python pals. I have a complicated conceptual question and I can't do that with only one brain T-T

I have a project in the style of a dwarf fortress but with a deep god game inspiration.

To put it simple, I have an agent in an empty space. A bit like AIs, I want it to do things on its own. To do so, I mad a function to calculate boredom from its redundant memory and succeeded in making it move on its own. But it's not really rich since it's an empty space (it basically moves back and forth in a chaotic pattern, which is normal)

Like in dwarf fortress and lots of simulation games I could create a world and then give it behaviors depending on what exists...But here's the deal and true challenge : I want to give it tools to create itself the whole world it will evolve in. Picture it as a powder game where you give all the powders to an AI. The thing is, for now it senses only its position...and I deeply wonder what to give to it to change its environment by itself and have emergent behaviors...

What do you think ? I'm open to all suggestions 'cause right now I'm more burning my braincells over that question than coding X___x

normal silo
#

Stigmergy ( STIG-mər-jee) is a mechanism of indirect coordination, through the environment, between agents or actions. The principle is that the trace left in the environment by an individual action stimulates the performance of a succeeding action by the same or different agent. Agents that respond to traces in the environment receive positive...

#

Stigmergy is a form of self-organization. It produces complex, seemingly intelligent structures, without need for any planning, control, or even direct communication between the agents. As such it supports efficient collaboration between extremely simple agents, who may lack memory or individual awareness of one another.

urban dirge
short tapir
#

anyone here can help me with a first person cam in moderngl

#

i have tried and tried and it does not work

#

pyrr documentation for their functions is terrible

fierce wraith
gilded drift
#

Guys i have a project
Im new to python and trying to make a game using panda3d engine

#

how do i make my window automatically maximize whenever i launch it?

#

I tried this, from the internet, but it says no such thing as setMaximized
from direct.showbase.ShowBase import ShowBase
from panda3d.core import WindowProperties

class MyApp(ShowBase):
def init(self):
ShowBase.init(self)

    # 1. Create a WindowProperties object
    wp = WindowProperties()

    # 2. Make it resizable so it can be maximized
    wp.setResizable(True)

    # 3. Set the window to maximized
    wp.setMaximized(True)

    # 4. Apply these properties to the main window
    self.win.requestProperties(wp)

app = MyApp()
app.run()

gilded drift
#

anyone?

uneven bridge
#

Idk I never heard of Panda3d but now that you told about it I might start using it

gilded drift
uneven bridge
#

its not

#

I have just never used panda3d so I cant help you out

gilded drift
#

nor does anyone else...

uneven bridge
#

yea in this server patience is key

#

not many people make games with python

#

and if they do most of them use pygame

lunar venture
# gilded drift how do i make my window automatically maximize whenever i launch it?

There's fullscreen or setFullscreen but there is no officially documented way to maximize a window. At least, not in the release build as this issue explains: https://discourse.panda3d.org/t/set-window-size-to-maximized/27031

gilded drift
lunar venture
#

This issue is five years old now 😔

gilded drift
#

fck, should i start using another engine?

#

do yall know any good 3d game engine?

#

for python ofc

lunar venture
lunar venture
gilded drift
lunar venture
#

No idea I don't do game dev in Python

#

I just made an effort to research a little for you

gilded drift
#

idk why i couldnt find this specific thread

lunar venture
#

Top search result

gilded drift
#

didnt work for me :/

lunar venture
#

¯_(ツ)_/¯

gilded drift
#

ツ what symbol even is that

lunar venture
gilded drift
#

oh well

#

thanks anyways

lunar venture
gilded drift
#

lol

lunar venture
gilded drift
lunar venture
#

Practice good OOP

#

You have to learn Python basics before jumping into a project

#

Especially one that uses OOP

gilded drift
#

whats oop

lunar venture
#

Object oriented programming

#

Explains classes and super() in Python

gilded drift
#

oh god

#

why does programming have to be so hard

#

no tutorials will teach me anything the right way

#

BUT PRIVATE TEACHERS ARE SO EXPENSIVE

hearty tapir
# gilded drift why does programming have to be so hard

I think no matter what entry into programming can be pretty hard. But once you can do anything at all with it with if statements, functions, etc are in it, the rest is only hard if the teaching of it isn't very good. Which I think for most stuff it isn't. But if you're lucky and ask the right questions on discord for example you can get answers in a much more casual way which might be easier to understand.

cerulean nimbus
#

!res

frank fieldBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

uneven bridge
#

bruh its not even a game engine

#

its just another pygame

#

is there not an actual game engine where you can use python without external plugins???

cerulean nimbus
uneven bridge
#

I tried using that plugin but just by looking at a starting script I gave up

#

like at that point might as well just use gdscript

#

and I still couldnt understand how to do things with it

uneven bridge
lunar venture
#

I'm not qualified to answer that

lunar venture
slow copper
#

its also more beginner friendly as it doesnt forces you to use OOP, but if you do want your code base to be sane, you'd want to learn OOP either way

uneven bridge
#

alr thanks

strong gulch
#

And I made the Black Jack game using this library

uneven bridge
uneven bridge
#

???

lunar venture
#

All you can do is take inspiration from it

uneven bridge
#

Okay but didnt you share it to be used by others? You gave the entire code for free

lunar venture
#

I'm someone else, and I imagine they shared their project for the reasons I just wrote

uneven bridge
#

Oh lol ok

lunar venture
#

Variables specific to this game aren't neatly separated from the App class

full pulsar
#

Hey! I have made a text based game engine and added a bit of content to it. Anyone interested in trying it out? I would really love some feedback.

gritty socket
full pulsar
gritty socket
full pulsar
#

No worries

uneven bridge
#

what does text based mean in this case

#

like pygame?

gritty socket
full pulsar
#

Not really terminal actually, I settled on pyside6

uneven bridge
#

uhh whatever I have no idea lol

full pulsar
#

It's basically a GUI framework with widgets and everything

uneven bridge
#

so something like unity?

full pulsar
#

I actually also have a video showcasing some of it

uneven bridge
full pulsar
#

Can I send a link here or are there rules against that?

uneven bridge
#

just send a video Im confused as hell 😭

full pulsar
uneven bridge
#

so it was something like pygame

full pulsar
#

Well, I also haven't used pygame so 🤷‍♂️

#

I just wanted to make a game engine and I kinda just did

uneven bridge
#

in pygame you basically just write all the code in your code editor without using apps or something

full pulsar
#

Hmm, I'm not sure I understand.

uneven bridge
#

its like a normal coding project

full pulsar
#

Oh okay, so it's just a module

uneven bridge
#

normally games are made with apps that make everything simpler, where it does everything the file importing and the object making for you

#

and you just make scripts and assign them to those objects

full pulsar
#

Ahhh right right, like unity.

uneven bridge
#

yea

full pulsar
#

Cool, pretty cool

#

It also has the small demo, with a basic small map, some entities and a single half complete quest

wise shale
#

Worked on a commission. An isometric Samoyed. 🐶

fierce bridge
#

do you have to know how to code to create a game , asking for a friend who can't code or should they learn how to code first?

raven kernel
lunar venture
fierce bridge
#

thank you that explains it perfectly

normal silo
fierce bridge
#

Ya that is what I thought its actually for a friend of friend and they don't draw or write or produce music so I figure coding is the best just being an idea guy isn't going to cut it I figure

normal silo
#

(Unless they leave the game design to others too, and focus on art or other things)

normal silo
fierce bridge
#

yep that is what I thougth

#

t

normal silo
#

The others skills can be just as hard as programming, there is no way around learning a hard to learn skill.

fierce bridge
#

True

normal silo
#

As a solo dev you need more than 1 skill too, more like 5.

fierce bridge
#

very true

normal silo
fierce bridge
#

should I link the video to them

#

I don't want to discourage them

normal silo
#

Yes. It gives a good idea of what is involved, and how impressive it is when someone manages to make any game at all.

#

But at the same time, it's possible, just need the correct expectations.

#

The key is enjoying the process itself, not the end result. The end result is for the gamers to enjoy.

#

Enjoying playing games and enjoying making games are two very different things.

#

Enjoying playing them does not mean you will enjoy making them. And in some cases, the other way around (rare) (e.g. likes to make sound effects for games, but does not like to play games).

fierce bridge
#

I have a question one day I might consider to make a online trading card game what should I start with pong? And work my way up

normal silo
#

Making a game is hard, making a multiplayer game is even harder.

#

Card games require a lot of work due to many different card arts needed, many effects, etc. It's not the most complex thing to program, but it's a lot of work to get through.

fierce bridge
#

I might have an artist

#

I just have to do the coding

normal silo
#

Ok, but in that case as an indie dev I still recommend designing around modular art, that is the artist gives you lots of composable parts that you can combine in code. E.g. they make 10 backgrounds that you reuse everywhere in the card art.

#

So instead of complete pieces of art, it's more like they give you a Lego set.

fierce bridge
#

but I want individual monsters don't I ?

normal silo
#

Managing the combinatorics involved and bringing that to something reasonable is key.

normal silo
#

Like maybe a body part, a head part, eyes, nose, mouth, etc.

#

And then you can make N combinations of those.

fierce bridge
#

okay I will take that into considerations

normal silo
#

This won't be as nice as if each card has its entirely own hand drawn monster, but that is not really doable for an indie studio.

#

AAA's main advantage is that they can have a massive numbers of artists to pump that out.

fierce bridge
#

I can ask if they have any artist frieinds

normal silo
#

So your game will need to focus on something else to make up for the lack of that.

fierce bridge
#

How many cards should I focus on first

normal silo
#

As for where to begin, I recommend looking to making complex UIs with fancy animations, since card games are kind of adjacent to that.

normal silo
fierce bridge
#

and no less then how many

normal silo
#

Not many are needed to have fun. See draft formats in various card games.

normal silo
#

See how few you can get away with an still have fun.

#

And interesting / complex interactions.

#

If it's not fun with only a few, then adding a ton more to the pile probably won't magically make it fun.

#

The core mechanics need changing then.

fierce bridge
#

should I get the gameplay down before the art ?

normal silo
#

Artists will often come in at the very start for concept, and at the end to flesh it all out and replace all programmer art/placeholders.

lunar venture
# normal silo Like maybe a body part, a head part, eyes, nose, mouth, etc.

Could draw a background for the game, a frame for the cards and a background for the monster image inside the card and you can tweak these last two in hue or color a bit for different types of cards or monsters. You could alternatively be minimalistic and have a single card leaf that doesn't change for any card, and any information is a silhouette.

#

Just figure out the scope you want for the art

fierce bridge
#

I have to go can we continue this discussion later

#

thanks everyone for the tips

normal silo
# fierce bridge thanks everyone for the tips

Oh, yeah, also link this, very important to avoid making the wrong game for the wrong audience: https://www.youtube.com/watch?v=XolbSxFhDcs

In this devlog video, I share the story behind my puzzle game Axona. Follow me through the beginnings of my gamedev journey where I share the significant mistakes I made as a novice game developer and have some insight on the process of publishing a game on Steam.


0:00 Intro
0:29 Backstory
7:41 The Release
8:48 Current Situation
9:35 M...

▶ Play video
fierce bridge
#

ty

#

how do you probe the market

normal silo
#

(Deck builders specifically)

fierce bridge
#

what about on mobile

normal silo
#

I have not checked in on mobile, but it's a different crowd.

#

PC gamers tend to like these high complexity build-y management style games.

#

(e.g. 4x)

fierce bridge
#

so making something like magic for a card game on mobile is a bad idea

normal silo
#

(And this has remained constant throughout all of PC gaming history btw)

normal silo
#

They do like small gambling games there.

#

E.g. Match 3.

#

Things you can quickly get in and out of.

#

So no 40 minute Magic game.

fierce bridge
#

yu gi oh is mobile

#

what about 2 modes

#

one for pc and for mobile

normal silo
#

Yugioh worked out for a while but IIRC is not doing well, too hard to get into.

#

Too much knowledge, card pool.

#

It has a shrinking population that they monetize more to make up for the shrink.

fierce bridge
#

how do you know so much about this?

normal silo
#

I just follow gaming / game dev stuff.

#

Various talks online.

#

Presentations.

#

Steam Spy.

#

Etc.

fierce bridge
#

but what about 2 modes one for pc and mobile

#

I mean each device could have both

normal silo
#

Making one mode is still hard, focus on one platform is what I recommend.

#

Better to nail one target audience than mess up 2.

fierce bridge
#

Could I add a second mode later

normal silo
#

A few dedicated fans can keep you afloat.

normal silo
#

Game dev is about playing this game of balancing that with ambition.

#

And as a game dev, it's important to make a game the audience wants, not just what you want. Because even if you are not in it for the money, spending years making a game and nobody playing it is pretty rough.

fierce bridge
#

true

#

should I start with pong or jump straight to a card game?

normal silo
#

Go something like Pong -> Breakout -> Tetris -> add UI to Tetris (main menu, settings, pause menu, restart) (UI experience) -> add Juice to Tetris (game feel experience) -> Poker (don't make games that involve tons of assets yet) (get the UI nice on this, betting with chips) -> Collecting card game prototype.

#

There is a lot of steps needed to learn a lot first.

#

(Juice is what happens when in Hearthstone you place down a legendary and it goes "thonk" and plays a voice line, etc)

fierce bridge
#

since it is mobile I thinking of another language then python

normal silo
#

It's a good idea to pick a general tool like Godot and get really good at it.

#

One which lets others work with you (artists, level designers, etc).

fierce bridge
#

it might be a while till I start I am working on another idea first

normal silo
#

Standardization is a good idea here. It's hard to hire for anything other than the most common engines for example.

fierce bridge
#

is godot compatible with blender

normal silo
#

Yes.

fierce bridge
#

Okay because the art person mentioned blender I think

normal silo
#

The three big engines that are "standard" are Unreal, Unity, and Godot.

fierce bridge
#

and godot is free so use that one?

normal silo
#

Yeah.

#

Unity is good, but they have been doing some strange things that caused many to switch to Godot, up to you though.

fierce bridge
#

I think I will take your advice

#

with godot

normal silo
#

Godot is a solid choice either way.

fierce bridge
#

May I ask have you created any games

normal silo
#

I do some game jams from time to time, but I am not a game dev. Just a hobby for me.

fierce bridge
#

okay

normal silo
#

I am just interested in it, especially game design.

#

And I make simulations, which is adjacent.

fierce bridge
#

Coding is interesting

normal silo
#

Btw, if you really want to use Python though, it's possible too.

fierce bridge
#

Not really

#

due to mobile

normal silo
#

Yeah, Python is still a good place to learn though. But after making like Pong and Breakout in Python (via Pygame for example), I would switch over to Godot and remake the Breakout and go from there.

fierce bridge
#

what languages does godot mainly use or does it vary

normal silo
#

GDScript and C#.

#

The engine itself is C++.

fierce bridge
#

remind me does C# have pointers

normal silo
#

Technically yes.

fierce bridge
#

can you avoid them

normal silo
#

Yes, they are not commonly used.

fierce bridge
#

okay good

#

I am very rusty on pointers

#

I learned them once

normal silo
#

It's a high level language that is probably the most common in game dev now due to Unity using it.

#

But I recommend sticking with GDScript at first.

#

It's also the most portable then.

#

C# can have issues like on web.

fierce bridge
#

what language is GDScript like

normal silo
normal silo
#

(Clearly based on Python originally)

fierce bridge
#

I have actually never heard of GDScript

#

till now

normal silo
#

It's Godot's language.

fierce bridge
#

makes sense

#

for different screen sizes how do you make a game responsive

#

or it is not complicated

normal silo
#

For example you may have some target aspect ratio and target render size, and it will scale to fit.

#

On mobile letter boxing and pillar boxing are not as common.

fierce bridge
#

On a tangent one of coworkers is creating a minecraft replica of the store I work at can pictures/video be used to recreate the store

fierce bridge
#

well my coworker is already creating the store from memory

#

I figure if someone uses a camera or video it would speed up the process

#

basically yes

#

I figure you might know because you created virtual environments for fun

normal silo
#

Photogrammetry is the science and technology of obtaining reliable information about physical objects and the environment through the process of recording, measuring and interpreting photographic images and patterns of electromagnetic radiant imagery and other phenomena.

While the invention of the method is attributed to Aimé Laussedat, the te...

#

It can be done.

#

Doing this yourself can be done via OpenCV (which has Python bindings).

fierce bridge
#

so basically into google just go OpenCV and google

#

"how do I use Photogrammetry OpenCV" with python

normal silo
fierce bridge
#

also I am not sure I would have an aerial view due to it being a store

normal silo
#

There are also existing software products for this.

fierce bridge
#

like what

normal silo
#

This is all generally expensive stuff. So for a small project like making a replica of a room in Minecraft, probably not worth it.

#

But it's how AAA avoids a lot of modeling work.

#

There are cheaper methods involving just a phone as a camera.

fierce bridge
#

okay thanks tons of info I am going to bed

normal silo
#

Meshroom turns photographs into 3D models using a process called photogrammetry. This video provides a couple of demonstrations, including clean-up of the final output in Meshmixer for render or 3D print.

Meshroom can be downloaded from the AliceVision website here:
https://alicevision.org/

And it has a great manual (including a beginners tuto...

▶ Play video
#

There are many more.

fierce bridge
#

thank you again

normal silo
#

Dev logs are also a really good resource.

fierce bridge
#

funny enough I have seen this video

slim quartz
#

python game dev is the best

#

it is future

shut tulip
#

!rule 5

frank fieldBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

shut tulip
#

!rule 9

frank fieldBOT
#

9. Do not offer or ask for paid work of any kind.

shut tulip
#

<@&831776746206265384>

coarse hill
#

!kick 1396258155301965949 Don't use this platform to hire someone, especially not for a rule-5-breaking thing

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied kick to @ruby lava.

uneven bridge
#

I got this error in Ursina idk why

info: converting .blend file to .obj: c:\Users\vitto\Desktop\my python game\models\testroom.blend --> c:\Users\vitto\Desktop\my python game\models_compressed\testroom.obj using: C:\Program Files\Blender Foundation\Blender 5.0\blender-launcher.exe
Traceback (most recent call last):
  File "c:\Users\vitto\Desktop\my python game\main.py", line 5, in <module>
    from entities import *
  File "c:\Users\vitto\Desktop\my python game\entities.py", line 4, in <module>
    test_room = Entity(model = "models/testroom", texture = "brick", collider = "mesh")
  File "C:\Users\vitto\AppData\Local\Programs\Python\Python313\Lib\site-packages\ursina\ursinastuff.py", line 224, in __call__
    obj = type.__call__(cls, *args, **kwargs)
  File "C:\Users\vitto\AppData\Local\Programs\Python\Python313\Lib\site-packages\ursina\entity.py", line 96, in __init__
    self.model = model
    ^^^^^^^^^^
  File "C:\Users\vitto\AppData\Local\Programs\Python\Python313\Lib\site-packages\ursina\entity.py", line 236, in model_setter
    m = load_model(value)
  File "C:\Users\vitto\AppData\Local\Programs\Python\Python313\Lib\site-packages\ursina\mesh_importer.py", line 103, in load_model
    raise ValueError('obj_to_ursinamesh failed to convert:', file_path)
ValueError: ('obj_to_ursinamesh failed to convert:', WindowsPath('c:/Users/vitto/Desktop/my python game/models/testroom.blend'))```
#

and this is my code

import sys
from ursina import *
from ursina.prefabs.first_person_controller import *

from entities import *

#application.development_mode = False

def update():
    #multiply the the += values added to the player by time.dt for the different fps to work properly
    pass

game = Ursina()

window.exit_button.enabled = False
window.entity_counter.enabled = False
window.cog_button.enabled = False
window.collider_counter.enabled = False
window.fullscreen = True

game.run()
from ursina import *
from ursina.prefabs.first_person_controller import *

test_room = Entity(model = "models/testroom", texture = "brick", collider = "mesh")
player = FirstPersonController(y = 10)
#

And it also created a folder with two files inside, one of them being a .obj

slow copper
#

re export them and delete the files ursina generated and try again

uneven bridge
#

Uh okay Ill do that when Im home

#

Weird tho cuz I exported it to the game files and then created a models folder and moved it there

#

Thats it

uneven bridge
#

I fixed it with a guy in the ursina server

uneven bridge
slow copper
uneven bridge
#

main problem was me importing my entities module before instantiating Ursina, secondary problem (not really a problem but yeah) is I had to put only "testroom" instead of "models/testroom" since Ursina searches for the file on its own

slow copper
#

oh okay

marble sapphire
bitter marsh
#

Is any serious game development done in python?

uneven bridge
#

like pygame for 2d and ursina for 3d

mint pendant
raven kernel
dense ridge
lost frost
tired reef
#

Has anyone ever made a card game using pygame

limber veldt
#

Probably many, I have

#

Player vs computer cribbage

tired reef
#

How big should the rectangle be for the card I'm just asking because that's something that's tripping me up in the sizing of the card cuz I'm building a card game and I want to get dimensions just right

tired reef
shut tulip
#

Tbh I think it depends on the number of caïds you have to show on screen and where they are

limber veldt
#

I used images for my cards and didn't scale them, this one is 127px by 195px

tired reef
#
#===[imports]===#
from random import choice
#===[main game]
import pygame as pyg

from settings import *
#===============#


class Game:
    def __init__(self):

        #===[inits]===#
        pyg.init()
        #=============#

        self.running = True

        self.clock = pyg.time.Clock()

        self._screen = None

        #===[timer vars]===#
    
        self.fog_cooldown = 6000

    def player():

        player_cards = []

    def create_window(self,screen_dimentions):

        self._screen = pyg.display.set_mode(screen_dimentions)
    
    def fog(self):
        self.fog_cooldown -= 1
        while self.running:
            if self.fog_cooldown <= 0:
                print("hello")




    def game_update(self):
        #===[game clock + game update]===#
        self._screen.fill("green")

        pyg.display.flip()
        self.clock.tick(60)
        #================================#

    def play(self):
        while self.running:
            for event in pyg.event.get():
                if event.type == pyg.QUIT:
                    self.running = False

            self.fog()
            self.game_update()
        pyg.quit()




#===[start game]===#
game = Game()
game.create_window(game_dimentions)
game.play()
#==================#
#

For the fog timer did I implement it correctly?

lunar venture
tired reef
#

Thank you

lunar venture
#

Keep in mind you can use self.clock.set_timer with a custom event:

self.fog_event = pyg.event.custom_type()
...
self.clock.set_timer(self.fog_event, 6000)
while self.running:
    ...
    if event.type == self.fog_event:
        print("hello")
        self.clock.set_timer(self.fog_event, 0)
...

Note that now 6000 represents 6000 milliseconds, or 6 seconds. Beforehand, it represented 100 seconds in your program, because self.clock.tick(60) constrains your loop to run 60 times per second, and counting down from 6000 in 60 FPS takes 100 seconds.

tired reef
#

I can't read the while open but inside the updating or running loop?

cerulean nimbus
tired reef
#

Im at 100 places today
The fog would have to me but into the run method and do I keep the wild method from the fog method

lunar venture
#

I still didn't understand

uneven bridge
#

He's speaking the language of the gods

tired reef
#
def fog(self):
        self.fog_cooldown -= 1
        while self.running:
            if self.fog_cooldown <= 0:
                print("hello")




    def game_update(self):
        #===[game clock + game update]===#
        self._screen.fill("green")

        pyg.display.flip()
        self.clock.tick(60)
        #================================#

    def play(self):
        while self.running:
            for event in pyg.event.get():
                if event.type == pyg.QUIT:
                    self.running = False

            self.fog()
            self.game_update()
        pyg.quit()```
shut tulip
#

no

#

if you do that, you end up being stuck in the fog's while loop

#

what you need to do is like the way you update the game

#
    def fog_update(self):
        self.fog_cooldown -=1 # update the cooldown
        if self.fog_cooldown <= 0: 
          ... # do the event


    def game_update(self):
        #===[game clock + game update]===#
        self._screen.fill("green")

        pyg.display.flip()
        self.clock.tick(60)

    def play(self):
         while self.running:
           ... # handle events
           self.game_update()
           self.fog_update() 
#

Only one single while loop for the whole game

tired reef
#

thank you

tired reef
#

What should I do just to show that the card is correct I need to just figure out how the cards are going to spawn for now

tired reef
#

Got it to work

exotic orbit
silk flame
#

I've (AI assisted) made a simple (~300-400 lines of code) python program using Tkinter for the GUI. Is anyone willing to play the game and offer any advice for improvements etc...

Also I'm new here. So idk if this is the right channel to ask or say something like this. Thanks!

exotic orbit
silk flame
#

the thing is, is it possible my code will be copyrighted? cause python is opened sourced right? so if i send it here, does that mean people will share it and then claim credit for it?

#

i don't use github

exotic orbit
silk flame
#

oh ok. i'll try

silk flame
#

what's the default one?

exotic orbit
silk flame
#

do u need to me to explain the program or?

silk flame
silk flame
#

oh umm... do yk how to fix that?

#

idk how ot link github lol (first time)

exotic orbit
silk flame
#

umm yes?

exotic orbit
#

You haven’t uploaded the repository yet

#

Your profile only displays your HTML repository

silk flame
#

so converting that to english, it means...?

#

sorry if my pea-brain is putting you on edge lol.

exotic orbit
exotic orbit
shut tulip
#

I mean no offense, but no one would steal that

silk flame
#

yes lol that is true...

silk flame
#

i realised the problem was i had my thing set to private

#

if the game play thing doesn't make sense just ask me. (FYI i have currently memorised 230+ digits of π)

slow copper
#

Also, it's a pretty nice game

coral sparrow
#

How to make tilemaps

astral nest
#

Hello, everybody.
I am untiy game developer and AI engineer.
I'm looking for a female software engineer with some IT knowledge to collaborate with.

shut tulip
#

Why especially a female one ?

uneven bridge
#

you can only choose 1

#

I guess theres also bisexual which would make it both but

silk flame
#

Any suggestions?

#

For improvement i mean

#

(Ill finish adding in the speedrun mode later obv)

placid path
#

Can someone help me create a script in Lua maphack no icon in mlbb using game guardian

placid path
#

Ok

#

I need a scripter sory

#

Dm me u will help me

slim geode
#

😆 ☝️ get a load of this guy

exotic orbit
#

Are we allowed to help develop game cheats?

uneven bridge
#

Prolly not

timber venture
#

Anyone have tips for promoting a Steam game?

coral sparrow
coral sparrow
timber venture
# coral sparrow can someone tell me

There's some good youtube tutorials for this, I learned a lot from Codingwithruss etc. You program class world and then use a program like tiled to make a .csv that has the IDs for each tile

coral sparrow
coral sparrow
timber venture
coral sparrow
#

i made my first game named blocksmash but it's very bad i think

timber venture
#

I doubt it's bad

#

It's difficult to get started

#

But dont give up

coral sparrow
#

thanks

timber venture
coral sparrow
#

i'm having python courses so i have some basics

timber venture
#

I will save the link to check it out later for sure

coral sparrow
#

thanks

coral sparrow
coral sparrow
#

can someone help? Traceback (most recent call last):
File "c:\Users\szymo\Documents\PythonGry\Platforrmer\Game.py", line 11, in <module>
[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not tuple

frank fieldBOT
coral sparrow
#

I FIXED IT

timber venture
# coral sparrow can you send me the tutorial from Codingwithruss? because i searching for it and...

He has a lot of good tutorials, but I started with this simple one since things can get complicated quite fast.

https://www.youtube.com/watch?v=Ongc4EVqRjo

In this Python tutorial I code a Tile Based Platformer Game using the PyGame module. I'm going to cover the initial game setup and how to create the map

🎨 Download Assets:
https://github.com/russs123/pygame-platformer-assets

💜 Get the Complete Project Files:
https://www.patreon.com/posts/pygame-complete-144985770

*💬 Join the Disc...

▶ Play video
timber venture
#

It's important to have projects like that I think

timber venture
#

Yeah, it's good

shy vigil
#

Are there any actively maintained projects using Panda3D, regardless of their scale?

slow copper
#

It's a game engine built on top of it

shy vigil
slow copper
#

I've seen some games built with ursina though

#

Not many with panda

vagrant saddle
#

at least 5 panda3D published on steam, not sure for ursina. also there was a game studio to build your own games on android but it was discontinued

slow nexus
#

I have a game idea 🤠

plain stirrup
lament vault
raven kernel
uneven bridge
slow cosmos