#game-development

1 messages · Page 100 of 1

desert kernel
#

@next estuary you gained my respect

next estuary
#

👀 bruh this is my second game ever, beginners luck haha, I usually write guis

#

The other one I didn't even finish

#

The shader made by Tusnad does a lot of heavy lifting making it look pretty

#

But I appreciate the complements :)

grand whale
#

Hmm there are many options

grand whale
#

Do you used heightmap for map?

#

Water shader is great

fallow glade
#

Cool

#

Nice sprite anims

next estuary
pallid patio
#

hello, more of a general python question I imagine, but what is generally a good practice for where I should be defining my classes?

for example I have a module named Entity.py, that contains my object class and related functions:

import pygame as pg
import traceback

from DrawScreen import screen,display

class object:
    def __init__(self, img, x, y, scale_x=None, scale_y=None):
        self.img = pg.image.load(img).convert_alpha()

        try:
            self.img = pg.transform.scale(self.img, (scale_x, scale_y))
        except TypeError:
            print('[WARNING] Scale not given or Invalid, ignoring...')
            print(traceback.format_exc())

        self.x = x
        self.y = y
        self.cx = 0
        self.cy = 0

    def set_changeX(self, x):
        self.cx = x

    def set_changeY(self, y):
        self.cy = y

    def apply_changeX(self):
        self.x += self.cx

    def apply_changeY(self):
        self.y += self.cy

    def set_changeXY(self, x, y):
        '''Sets change values for both X and Y coordinates.'''
        self.cx = x
        self.cy = y

    def apply_changeXY(self):
        '''Applies change values for both X and Y coordinates.'''
        self.x += self.cx
        self.y += self.cy

    def blit_obj(self):
        '''Blits object to display.'''
        display.blit(self.img, (self.x, self.y))

    def X(self):
        return self.x

    def Y(self):
        return self.y

    def rect(self):
        '''Retrieve rectangle of object.'''
        return self.img.get_rect()

def init_player():

    pname = object('Window/Pong.png', screen.w/2, screen.h/2, scale_x=100, scale_y=100)
    pname.set_changeXY(.01, -.01)
    #pname_movements(pname)
    return pname 

player1 = init_player()
#

currently I setup player1 in this same module, as you can see at the bottom

#

then when I need to manipulate player1, for example for keyboard inputs:

import pygame as pg

from Entity import player1

def kb_input(running):
    for event in pg.event.get():
            keys = pg.key.get_pressed()
            if event.type == pg.QUIT:
                running = False
            if keys[pg.K_LEFT] or keys[pg.K_a]:
                player1.set_changeX(-.2)
            if keys[pg.K_RIGHT] or keys[pg.K_d]:
                player1.set_changeX(.2)
        
#

should I instead have player1 and other class variables in a seperate module?

fallow glade
#

Just some suggestions, keep module names lowercase, and use some other name than object as that is an inbuilt name

pallid patio
#

I see, thanks for the advice, and the suggestions

acoustic arch
#

I want to convert my game to exe using pyinstaller, but it still gives me this error, i have no idea how to fix it

hidden silo
#

Hi, is there any advantage of use Python to game dev? Unity with visual scripting is not better?

grand whale
grand whale
#
itch.io

A game jam from 2022-02-01 to 2022-02-15 hosted by CubeCry & divi_lol. WELCOME! Asset Jam is a 10-day long jam where you make a game using an art asset! The theme is announced 2-3 days before the jam starts. Remember to k...

#

a game jam where you have to make a game by pre made assets

potent ice
heavy minnow
#

hiya! i need some assistance with the pygame_gui module, specifically with the theme files and how to reference them while creating my buttons.

in the official documentation, the author says, you need to mention the object ID with class ID. i don't really understand how this works.

this is the link for the documentation -
https://pygame-gui.readthedocs.io/en/latest/theme_guide.html#object-ids-in-depth

next estuary
turbid quiver
#

hey guys

#

i just made my first python text-based rpg turn based game

#

We both have HP And Mana

#

and we could damage our mana and hp, and our skills consume mana as well

dawn quiver
grand whale
turbid quiver
#

Thank you so much man

grand whale
#

Np

turbid quiver
#

My first year in programming

#

It isnt required but i just did it for fun

grand whale
#

Cool

warm zephyr
#

hey guys how do you make simple movement actually not glitch? Ive tried moving my cube with

clock.tick(60)
keys = pygame.key.get_pressed()
for event in pygame.event.get():
  if keys[pygame.K_a]:
    x -= 3

but it sometimes goes at a normal speed and then speeds up a ton without a reason

safe spade
#

Add a time delta (it’s the time between two frame) and multiply it to your mouvement

#

Just, anybody know how to generate a grid of square fastly using pyopengl

dawn quiver
#

How would i go about making a light trail(light saber effect) with a shader?

round obsidian
round obsidian
round obsidian
strong furnace
round obsidian
strong furnace
round obsidian
#

No, Python is Python, it's not C#

strong furnace
#

nice

round obsidian
strong furnace
#

i mean is do we can write python code on Unity?

round obsidian
#

At any rate I know nothing about Unity, as I have never used it

strong furnace
#

hmmm:v

next estuary
snow hill
# strong furnace i mean is do we can write python code on Unity?

Who says you need Unity to get modern standards 3D ? Python FTW 🥳
https://www.harfang3d.com/
https://www.youtube.com/watch?v=3aAcWBcU6eQ

HARFANG® 3D

HARFANG® is a software framework for modern multimedia application development. Manage and display complex 3D scenes, play sound and music, access VR devices such as the Oculus Rift and much more.

little dawn
#

dayum

strong furnace
#

;_))

grand whale
#

and raytracing

sharp ruin
#
pygame.init()

# générer la fenetre du jeu
pygame.display.set_caption("Shooter - Samuel Goujon")
pygame.display.set_mode((1080, 720))

running = True

# boucle pour garder la fenetre
while running:

    # si le joueur ferme la fenetre
    for event in pygame.event.get():
        if event.type == pygame.quit():
            running = False
            pygame.quit()```
#

hey i just have a quit problem

#

when i run this code i get an error

#

'video system not initialized'

gentle falcon
sharp ruin
#

solves the problem

#

thanks

#

^^

#

idk why i got this error tho

gentle falcon
bold pewter
dawn quiver
#

is there any way i can add animated gifs in pygame?

grand whale
grand whale
safe spade
dawn quiver
grand whale
#

frame by frame

dawn quiver
gusty wigeon
#

hey all. Been looking trying to figure this out for a while.

What's the best approach/library to watch a section of the screen for changes and get a notification whenever there is a change. It can be pixels or text...but ideally pixels.

next estuary
next estuary
grand whale
dawn quiver
# grand whale ?

its bejeweled clone. Its my progress. The green squares highlight possible swaps

grand whale
#

Ok

dawn quiver
#

i guess you dont know bejeweled

grand whale
#

Hmm ik

#

I have maked one in cpp

#

well i was thinking

dawn quiver
#

im making mine in c and sdl2

grand whale
#

Oh

#

but its a python server

dawn quiver
#

i know ducky_drawing

grand whale
#

Means i can show my cpp project?

dawn quiver
#

i dont mind

grand whale
#

ok

dawn quiver
grand whale
#

Yeah sure

#

Wait lemme record

#

sorry for late reaponse

#

@dawn quiver

#

well art was taken by opengameart assets

dawn quiver
#

cool does mine look good?

grand whale
#

yeah

#

your art is great!

dawn quiver
#

im actually making a bejeweled clone with rpg mechanics

grand whale
#

thats cool!

dawn quiver
#

hmm did you make an algorithm for detecting when there is no possible moves left?

grand whale
#

well its bit complicated

#

you can see this post

dawn quiver
#

oh ill look into it. Ive come up with my own algorithm for it

grand whale
#

if (grid[i][j].kind==grid[i+1][j].kind)
if (grid[i][j].kind==grid[i-1][j].kind)
for(int n=-1;n<=1;n++) grid[i+n][j].match++;

#

a sample code of mine bejeweld

#

@dawn quiver

#

are you just cpp gamedev?

dawn quiver
#

i have done tetris in lua this is my first C game project

grand whale
#

oh

#

well my brother code in lua

#

lua is very similr to python but small

#

and no list

#

just tables!

#

LOL

dawn quiver
dawn quiver
#

this is testing if its a streak of three

#

your checking before the current index and after it

#

i imagine there is more though

#

ill show you my code when i clean it up and comment it

grand whale
#

no its not three streak

#

ok

dawn quiver
#
if (grid[i][j].kind==grid[i+1][j].kind)
    if (grid[i][j].kind==grid[i-1][j].kind)
      // code

this says if the kind behind me is the same as me and the kind in front of me is the same as me run this code

#

oh wait

#

but this is for vertical

grand whale
#

yeah

#
    if (grid[i][j].kind==grid[i][j-1].kind)
     for(int n=-1;n<=1;n++) grid[i][j+n].match++;```
dawn quiver
#

i usually have grid[j][i] becuase i corresponds to columns for me since it comes first

dawn quiver
#
for(int n=-1;n<=1;n++) grid[i][j+n].match++;

whats this line doing? marking the matches?

#

i think its marking the matches for removal.

grand whale
dawn quiver
#

hmm does your code allow for streaks of four or greater?

eternal field
#

need help

dawn quiver
grand whale
dawn quiver
#

snake[-1.] right?

grand whale
dawn quiver
# eternal field need help

list indices only take integers thats a floating point or decimal number that you have. change it to -1

grand whale
#

snake[-1]

eternal field
#

its giving me problem now on if head==food

grand whale
#

@dawn quiver

#

do you do python gamdev?

dawn quiver
grand whale
#

well i am doing gamdev in python

#

thinking to make a studio

#

my current game

eternal field
#

how do i fix this one

dawn quiver
#

if head == food:

grand whale
#

LOL

grand whale
eternal field
grand whale
#

ok

eternal field
dawn quiver
eternal field
dawn quiver
#

just whitespace bullcrap i think you should be fine

#

maybe try fixing them though as an exercise?

grand whale
#

well just backspace the lines that are not written

eternal field
#

i did

#

now this comes

grand whale
#

dont put empty lines

grand whale
#

thats why

eternal field
#

what do i use

grand whale
#

omg

#

you just have not use var variable dont worry

#

will you use var?

dawn quiver
#

wait but they also have another error

grand whale
#

yeah

#

cannot find reference

dawn quiver
#

whats that mean?

grand whale
#

hmm its cant find reference

#

because

dawn quiver
#

are they trying to index a None value?

grand whale
#

snake = [vector(10,0)]

eternal field
#

statement has no effect

dawn quiver
#

oh boy

grand whale
#

omg

#

really

eternal field
#

?

grand whale
#

var = snake.append[-1]

#

first

#

its wrong

#

var = snake.append(-1)

#

do like this

#

and secong it will give you none

#

and third

#

you dont have

#

to take out var

dawn quiver
#

oh now i see

grand whale
#

its just not being used

#

you surely maked all things by your own

#

@eternal field

#

in that code?

dawn quiver
eternal field
dawn quiver
#

gm

grand whale
#

i think snake last

grand whale
dawn quiver
grand whale
#

well here is 2:57 pm

eternal field
#

var value not used

dawn quiver
grand whale
#

idk

#

if she is trying to take snake last

#

she have to use

#

snake[-1]

dawn quiver
grand whale
#

well idk why she is appending -1 LOL

eternal field
#

witch right now should be from squares

grand whale
#

you are watching this tutorial

eternal field
#

no

#

im tryna by myself

#

that is why im here because of so much errors

grand whale
#

bro first

#

show your all code

#

then we can help you

dawn quiver
#

!paste

frank fieldBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

eternal field
grand whale
#

bro

#

if you want to append

#

snake.append()

#

dont make a varible

#

well please paste code

#

i will fix it

#

!paste

frank fieldBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

eternal field
#

from idlelib.configdialog import changes
from turtle import *
from random import randrange

from freegames import square, vector

food: vector = vector(0, 0)
snake: list[vector] = [vector(10, 0)]
aim = vector(0, -10)

def change(x, y):
aim.x = x
aim.y = y

def inside(head):
return -200 < head.x < 190 and -200 < head.y < 190

def move():
head = snake[-1].copy()
head.move(aim)

if not inside(head) or head in snake:
    square(head.x, head.y, 9, 'red')
    update()
    return

var = snake.append()

if head == food:
    print('snake', len(snake))
    food.x = randrange(-15, 15) * 10
    food.y = randrange(-15, 15) * 10

else:
    snake.pop(0)

clear()

for body in snake:
    square(body.x, body.y, 9, 'red')
    update()
    ontimer(move, 100)

    hideturtle()
    tracer(False)
    listen()
    onkey(lambda: changes(10, 0), 'Right')
    onkey(lambda: changes(-10, 0), 'Left')
    onkey(lambda: changes(0, 10), 'Up')
    onkey(lambda: changes(0, -10), 'Down')

    move()
    done()
#

this is it all

grand whale
#

you have to apped snake head

#

snake.append(head)

#

then the snake will grow

#
from turtle import *
from random import randrange

from freegames import square, vector

food: vector = vector(0, 0)
snake: list[vector] = [vector(10, 0)]
aim = vector(0, -10)


def change(x, y):
    aim.x = x
    aim.y = y


def inside(head):
    return -200 < head.x < 190 and -200 < head.y < 190


def move():
    head = snake[-1].copy()
    head.move(aim)

    if not inside(head) or head in snake:
        square(head.x, head.y, 9, 'red')
        update()
        return

    snake.append(head)

    if head == food:
        print('snake', len(snake))
        food.x = randrange(-15, 15) * 10
        food.y = randrange(-15, 15) * 10

    else:
        snake.pop(0)

    clear()

    for body in snake:
        square(body.x, body.y, 9, 'red')
        update()
        ontimer(move, 100)

        hideturtle()
        tracer(False)
        listen()
        onkey(lambda: changes(10, 0), 'Right')
        onkey(lambda: changes(-10, 0), 'Left')
        onkey(lambda: changes(0, 10), 'Up')
        onkey(lambda: changes(0, -10), 'Down')

        move()
        done()```
#

take this code and try

dawn quiver
grand whale
#

well pygame best!

#

and sdl best!

eternal field
#

got this now

grand whale
#

bro its just a warning

dawn quiver
#

thats fine

grand whale
#

not a errror

#

ok

dawn quiver
#

its just a warning about coding style and not something to worry about

eternal field
#

now game does not start

grand whale
#

because

#

seruisly

#

you dont know to assign a variable?

#

no

#

sorry

eternal field
#

im not that good at coding i go and learn every day

#

so im trying chill

grand whale
#

ok

dawn quiver
# eternal field now game does not start

i think itd be best to start off with something simple. Id suggest making hangman(a word guessing game) in python and no other modules. Then maybe try doing stuff in pygame.

grand whale
#

yeah

#

sorry i am being toxic

eternal field
#

it does not let me to run it

dawn quiver
#

i want to make tutorials for python and game making

dawn quiver
grand whale
#

do you maked an channel?

eternal field
#

not sure what to do?

grand whale
#

because

#

move is a function

dawn quiver
grand whale
#

you dont called it

#

just maked a function

#

you have to call it

#

like

#

move()

dawn quiver
dawn quiver
#
x = 0
def move(): # defines a function
  x += 1

move() # calls the function. the value of x is increased to 1
grand whale
#

hideturtle()
tracer(False)
listen()
onkey(lambda: change(10, 0), 'Right')
onkey(lambda: change(-10, 0), 'Left')
onkey(lambda: change(0, 10), 'Up')
onkey(lambda: change(0, -10), 'Down')
move()
done()

#

do this outside the function

#

take this code

#

@eternal field

#
from turtle import *
from random import randrange

from freegames import square, vector

food = vector(0, 0)
snake = [vector(10, 0)]
aim = vector(0, -10)


def change(x, y):
    aim.x = x
    aim.y = y


def inside(head):
    return -200 < head.x < 190 and -200 < head.y < 190


def move():
    head = snake[-1].copy()
    head.move(aim)

    if not inside(head) or head in snake:
        square(head.x, head.y, 9, 'red')
        update()
        return

    snake.append(head)

    if head == food:
        print('snake', len(snake))
        food.x = randrange(-15, 15) * 10
        food.y = randrange(-15, 15) * 10

    else:
        snake.pop(0)

    clear()

    for body in snake:
        square(body.x, body.y, 9, 'green')

    square(food.x, food.y, 9, 'red')
    update()
    ontimer(move, 100)

hideturtle()
tracer(False)
listen()
onkey(lambda: change(10, 0), 'Right')
onkey(lambda: change(-10, 0), 'Left')
onkey(lambda: change(0, 10), 'Up')
onkey(lambda: change(0, -10), 'Down')
move()
done()```
#

take this code

eternal field
#

iw works

#

but when i ate an apple

#

than from nowhere one spawns on top of me and kills me

grand whale
#

show the result

eternal field
#

i have to screenshare

grand whale
#

ok where?

eternal field
#

vc 0

#

cannot share

#

maybe dms ?

dawn quiver
grand whale
#

done

dawn quiver
#

like itd be cool if we could be friends on discord if you want

#

so we can group dm and talk about python and game dev

eternal field
chrome thorn
#

guys I'm planning to do a ML project, where AI plays pong.

#

and I have 0 idea where to start, should I first make the game using pygame or smth

#

is that even possible

dawn thorn
#

why is it that i can load every image/ graphic except my player image

pg.init()
screen = pg.display.set_mode((800,400))
pg.display.set_caption('coole game')
clock = pg.time.Clock() 
test_fond = pg.font.Font('pygame/font/Pixeltype.ttf', 50)

sky_surface = pg.image.load('pygame/graphics/sky.png').convert_alpha()
ground_surface = pg.image.load('pygame/graphics/ground.png').convert_alpha()
text_surface = test_fond.render('My game', False, 'Green')

snail_surface = pg.image.load('pygame/graphics/snail1.png').convert_alpha()
snail_x_pos = 600
player_surface = pg.image.load('pygame/graphics/player_walk_1.png').convert_alpha #this is the graphics load of the player

while True:
    for event in pg.event.get():
        if event.type == pg.QUIT:
            pg.QUIT()
            exit()
    
    screen.blit(sky_surface,(0,0))
    screen.blit(ground_surface,(0,300))
    screen.blit(text_surface,(300,50))
    snail_x_pos -= 4
    if snail_x_pos < -100: snail_x_pos = 800
    screen.blit(snail_surface,(snail_x_pos,250))
    screen.blit(player_surface,(80,200))        #this is somehow defect... IDK WHY!
#If I delete this line than it works but without the player
       
    pg.display.update()
    clock.tick(60)
dawn quiver
chrome thorn
dawn quiver
#

id start there. Use pygame

chrome thorn
#

I'm just wondering if it's possible to integrate machine learning into game created using pygame

dawn quiver
#

sure thats possible

chrome thorn
#

aight, that's all I needed to hear

dawn quiver
#

shouldnt matter what graphics module you use

dawn quiver
chrome thorn
eternal field
#

works fine

dawn quiver
dawn quiver
eternal field
dawn quiver
eternal field
dawn quiver
#

id say first try getting a button to work

#

make a button print out the text hello in the command line when its clicked

dawn quiver
dawn thorn
#

but why does it work with all the other graphics

dawn quiver
#

you are assiging player_surface to a function. instead you want to assign it to the result of calling that function. Your missing parenthesis ()

dawn thorn
#

ah

#

ok

#

thx

humble marsh
#

hi im very new to coding but im creating a state machine for my game, ive created a base class named basestate, this is where the different states will inherit from i think. whenever i try to import this class into a different file for example menu.py it shows this error: ImportError: attempted relative import with no known parent package

#

ive tried so many different things its said online and then when i dont get that error message when i run the main file i get this error: ModuleNotFoundError: No module named 'states.base'

dawn quiver
humble marsh
dawn quiver
#

then you must import base

#

if the files are within the same directory

humble marsh
#

oringinally i had used :
from states.base import BaseState

#

then i tried from .base import BaseSate and from base import BaseState but non have been working

dawn quiver
#

are the files located within the same directory

#

the file that you are importing and the file you are importing into

dawn quiver
#

maybe this will help

humble marsh
dawn quiver
#

what is the file your importing into and what file are you trying to import

humble marsh
dawn quiver
#

i know what the file strucutre looks like i need to know where you are imprting from and what are you importing. Are you trying to import Base.py from game.py?

#

game.py

import base # not working

correct?

#

if so youd write something like from states import Base

#

or from states.Base import basestate

humble marsh
#

i want to import the class Basestate from base.py into menu, splash, login, gameover and gameplay

#

does that make sense ?

grand whale
#

bro

humble marsh
grand whale
#

then dont put states.Base

#

just bse

humble marsh
#

but what do i put instead

grand whale
#

*Baase

#

*Base

dawn quiver
#

try import Base then i guess

grand whale
#

these files is in under states folder

#

menu, splash, login, gameover and gameplay

#

so no need to put states.Base

dawn quiver
humble marsh
#

okay so i put this into menu: from Base import BaseState
then when i run main this shows: ModuleNotFoundError: No module named 'Base'

grand whale
#

menu, splash, login, gameover and gameplay

dawn quiver
humble marsh
dawn quiver
#

try just import Base

grand whale
humble marsh
grand whale
#

oh

#

what

dawn quiver
#

maybe you are forgetting a line somewhere

humble marsh
#

oh sorry ill try upper case

grand whale
#

what

#

i was thinking that was a typo

#

LOL

humble marsh
#

class Menu(BaseState):
NameError: name 'BaseState' is not defined

#

this shows when i run menu

dawn quiver
#

show your code where you define base state

grand whale
#

because

dawn quiver
#

where you made that class

humble marsh
#

import pygame

class BaseState():
def init(self):
self.done = False
self.quit = False
self.next_state = None
self.screen_rect = pygame.display.get_surface().get_rect()
self.persist = {}
self.font = pygame.font.Font(None, 24)

def startup(self, persistent):
    self.persist = persistent

def get_event(self, event):
    pass

def update(self, dt):
    pass

def draw(self, surface):
    pass
grand whale
#

from Base import BaseState

#

try this

dawn quiver
#

^^^

humble marsh
grand whale
#

or from Base import *

humble marsh
grand whale
dawn quiver
#

ah are you importing Base from main?

humble marsh
#

import sys
import pygame
from states.menu import Menu
from states.gameplay import Gameplay
from states.splash import Splash
from game import Game

pygame.init()
screen = pygame.display.set_mode((1920, 1080))#set the window size
states = {
"MENU": Menu(),
"SPLASH": Splash(),
"GAMEPLAY": Gameplay(),
}

game = Game(screen, states, "SPLASH")
game.run()

pygame.quit()
sys.exit()

dawn quiver
#

wait but i dont see BaseState being used

grand whale
#

class Menu(BaseState)

dawn quiver
#

yes but we took care of that error

grand whale
humble marsh
#

yeah i might just delete a few things and retry it in a different approach maybe

#

but tysm for the help appreaciate it

grand whale
#

np

dawn quiver
#

same for functions and variables in the module

#

sorry thats better

#

wish this channel was this active all the time

#

and no im not sleeping sorry lol

#

i should get to bed

humble marsh
#

yeah i was afriad no one would reply lol

#

what time is it for u

dawn quiver
#

5 am

grand whale
humble marsh
#

well then u definatly wont be dreaming tn

#

hialrous joke to do w ur bio

dawn quiver
#

yeah

#

im not sure why that error happens

humble marsh
#

honestly tho its fine dw, it probably got to do with my main file, i get very confused easily so i probably messed something up in there

#

get some sleep my guy

grand whale
#

You playing valo

#

@humble marsh

humble marsh
#

ive become addicted

grand whale
#

I play bloons TD 2

#

Lol

humble marsh
#

monke game

grand whale
#

Yeah

#

I want to back to evolution

#

I want to be monke!

humble marsh
#

reject moderninty

#

my ign is gandawlf#meow if u ever wanna play val

grand whale
#

Ok

eternal field
#

i need help i got error i dont know how to fix this one

pine plinth
#

define name CreditsMenu

round obsidian
#

Fun thing I threw together with Cython: C-accelerated particle effects

#

Normally this would be done with shaders, I know, but doing it in Cython was fun too.

pine plinth
#

implement GoL with shaders brainmon

round obsidian
#

what I'd really like to see someone do is implement GoL hashlife algo in shaders

#

that would be insane

potent ice
#

I have multiple versions of GoL with shaders. Kivy, moderngl arcade etc if you are looking for that

#

Seeing what you can do with cython is also fun.

potent ice
hybrid burrow
#

Have you ever tried to blit an image in pygame on android?

round obsidian
potent ice
#

Ok, so write up som buffer and draw?

round obsidian
#
def move(vertices, vectors: arr.array, size: cython.int):

    if cython.compiled:
        addr: cython.size_t = ctypes.addressof(vertices)
        verts: cython.p_float = cython.cast(cython.p_float, addr)
        vecs: cython.p_float = vectors.data.as_floats
    else:
        vecs = vectors
        verts = vertices

    l: cython.size_t = len(vertices)
    n: cython.size_t
    v: cython.size_t = 0

    x: cython.float
    y: cython.float
    x1: cython.float
    y1: cython.float
    v0: cython.float
    v1: cython.float

    with cython.nogil:
        for n in range(0, l, 8):
            v0 = vecs[v]
            v1 = vecs[v + 1]

            x = (verts[n] + v0) % 960.0
            y = (verts[n + 1] + v1) % 540.0

            x1 = x + size
            y1 = y + size

            verts[n] = x
            verts[n + 1] = y
            verts[n + 2] = x1
            verts[n + 3] = y
            verts[n + 4] = x1
            verts[n + 5] = y1
            verts[n + 6] = x
            verts[n + 7] = y1

            v += 2
potent ice
#

Makes sense. Pretty much the shader way :)

round obsidian
#

vertices is a ctypes array ... actually, hold on

#

probably more efficient to just do this

if cython.compiled:
        _verts: cython.float[::1] = vertices
        verts: cython.p_float = cython.cast(cython.p_float, cython.address(_verts[0]))
#

or just

#

verts: cython.float[::1] = vertices

round obsidian
#

I was building both ways to see which generates the most efficient code

astral heart
#

Or was?

round obsidian
warped parrot
astral heart
#

Can you share with me what that was for? I believe it was for dumping code correct?

modest siren
#

any way to make 3d games with pygame? (new to pygame)

sharp lantern
#

Can anybody say me how did you learn game development though python?

dawn quiver
#

Can we use python for unreal?

#

And i want to know what is chaos physics? Is it a different tool ?

karmic garnet
#

hi

dawn quiver
#

Only with python :p

finite rivet
#

for pygame, you would have to define 3d vertices , and then connect lines, all by your own logic. involves knowledge of 3d matrices for rotation, etc, which even i dont know of 😂

finite rivet
# sharp lantern Thankyou

start by ig making a 2d square move left right, up and down(not filled) and then divide the x and y coordinates by another factor which is z

#

for each point

sharp lantern
#

I will try it

finite rivet
#

so x/z, and y/z

sharp lantern
#

Thankyou

finite rivet
#

but i suggest you look up opengl on YouTube, much better

#

and easier

sharp lantern
#

I was also thinking to refer youtube

#

Thankyou

finite rivet
#

np

pallid patio
#

hello! So I'm trying to make pong and I've been having this really weird issue where the first impact with the ball does this

#

here is my code:

import pygame as pg

from kb_input import kb_input
from ball_physics import ball_all_bounce
from drawscreen import screen
from entities import player1, ball
from posixpath import relpath
from pygame import mixer


# initialize pygame
pg.init()
clock = pg.time.Clock()


def run_game(bool):
    running = bool
    while running:
        screen.bg_fill(20, 30, 50)

        running = kb_input(running)

        player1.apply_changeXY()
        player1.hard_bounds()
        player1.blit_obj()

        hits = ball_all_bounce(.15)
        ball.apply_changeXY()
        ball.blit_obj()
        #print(f'Collision at {hits}')
        pg.display.update()


if __name__ == '__main__':
    run_game(True)

#

ball_physics.py

import pygame as pg
import random

from drawscreen import screen
from entities import ball, player1


def ball_wall_bounce(val):
    if ball.x > (screen.w-ball.w):
        ball.collided = True
        ball.cx = -(val)

    if ball.x < 0:
        ball.collided = True
        ball.cx = (val)

    if ball.y > (screen.h-ball.h):
        ball.collided = True
        ball.cy = -(val)

    if ball.y < 0:
        ball.collided = True
        ball.cy = (val)

    # Initial start for ball
    if ball.collided == False:
        ball.cy = (val)


def ball_spacer_bounce(val):
    if player1.rect.colliderect(ball.rect):
        clip = player1.rect.clip(ball.rect)
        cr = abs(clip.left - player1.rect.right) 
        cl = abs(clip.right - player1.rect.left) 
        if (cl) < (cr):
            ball_bounce_right() 
        if cl == cr:
            val = random.randint(0,1)
            if val == 0:
                ball_bounce_right() 
            else:
                ball_bounce_left()
        else:
            ball_bounce_left()

def ball_bounce_left():
    ball.cy = -(.2)
    ball.cx = -(random.randint(15,60)/ 1000) 

def ball_bounce_right():
    ball.cy = -(.2)
    ball.cx = (random.randint(15,60)/ 1000)

def ball_all_bounce(val):
    ball_wall_bounce(val)
    ball_spacer_bounce(val)

safe dragon
#

Hey does anyone know of any Python-related game jams coming up?

round obsidian
real sage
#

hi was just coding a quick game where im using a loop, at the start its true and im trying to get it to be false but it doesnt seem to work? sending my code

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied mute to @real sage until <t:1643312329:f> (9 minutes and 59 seconds) (reason: discord_emojis rule: sent 30 emojis in 10s).

tropic lantern
#

!unmute 320671092127694848

frank fieldBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @real sage.

tropic lantern
#

!paste

frank fieldBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

tropic lantern
#

hey, use this for large blocks of code

real sage
#

sorry there were emojis in my code

#

and was also using the wrong channel 😅

weak hazel
#

Hey Pythers!

Gonna be on the Global Game Jam this weekend, and want to take the opportunity to learn Python and use it to develop a video game. What route(s) can you show me to have fun in the process, and learn Python and gamedev with it?

halcyon heart
grand whale
#

*cython

round obsidian
stray nebula
#

Does anyone use Python in Unity on here?

wanton lodge
#

hi, looking for an opengl tutorial

#

anyone got recommendations?

#

please ping when respond, thanks a lot

lean cosmos
teal ember
wanton lodge
small cipher
weak hazel
novel wigeon
#

Hey I have a bit of a problem with a player class I made. The framerate is 60 and my computer is average, but the game is still rough with the frames and they arent smooth... I'll senf the player code

potent ice
#

This is a common problem. You need to take delta time into account

normal silo
# novel wigeon Hey I have a bit of a problem with a player class I made. The framerate is 60 an...
dawn quiver
#

Hello!
Ive been into python + JS : web development, Data Scraping, ETL, Selenium process automation... For quiet some time now.
I would like to learn something like game design/development. Is there someone who can suggest a learning path?

small swan
dawn quiver
#

Thanks @small swan ,but I don't know c++
Is there anything I can do in the game Dev field with Python/JS

small swan
#

For sure, look up some resources on technical-artist work. Lots of 3D programs can be scripted for using python. Which is used to make tools and stuff

lean cosmos
frozen knoll
dawn quiver
# lean cosmos

this is based off of a game ive seen before. Your a knight and you go through a castle maze avoiding dragons.

small swan
#

Following the theme of “Becoming a AAA Developer”, this week we welcome three of Epic Games’ top Technical Artists to the stream to discuss their roles at Epic and share their personal journeys to becoming Technical Artists.

Technical artists are in huge demand in every field that uses Unreal, from film and TV to AAA games. However, it can be c...

▶ Play video
dawn quiver
#

Thanks @small swan will check this out !

dire copper
#

Is unreal engine compatible with Python 3

#

I knew that it has visual scripting on it

next estuary
glass wasp
#

Hii guys

#

Can you give me some logic to checkmate king in endgame

#

My bot can't do that

next estuary
lean cosmos
#

I've gotten alot done in 3 and a half days pretty much building everything for the rest of the game dev to go by easy

sharp kernel
#

you should try to recreate Hotline Miami on it

azure atlas
#

thats pretty cool

dawn quiver
#

im wondering if i should swithc to python and pygame.

#

Id be able to share my code with python beginners

#

nah ill just make a small demo

dawn quiver
#

Is anyone there?

dusty forge
dusty forge
#

Pygame can't do 3d sadly

normal silo
dusty forge
lyric niche
#

what would you recommend for gamedev?

rain dome
#

Is Ursina good?

lean cosmos
#

@dusty forge yea that was a problem from the beginning but I will do something what squiggle said wrapping it around a surface that or I will build a 3d wrapper in pygsme

#

@dawn quiver yea but it pretty fun to work on

next estuary
rain dome
next estuary
#

like models?

app = ursina.Ursina()
character = ursina.Entity(model="character.obj")
camera = ursina.EditorCamera(enabled=True, ignore_paused=True, rotation=(55,0,0))
app.run()
fading verge
#

Hi I am making a text-based game on python and I wanted to an XP leveling system. How do I do this?

faint rampart
#

Hi I am making a game for mobile but i don't know what Library need to use ?

unborn egret
#

anyone know if there is a way to move around a sprite on screen, so not in the program or something but on the desktop for example.

dusty forge
#

e

#

h t t p s : / / d i s c o r d . g g / p D 6 t 5 6 h T

#

They can help you much more with ursina than here

next estuary
#

...

next estuary
dusty forge
#

Wrong ping

next estuary
potent ice
#

Can always message @light nest

dusty forge
next estuary
#

yeah

fading whale
potent ice
#

There. I poked and it got whitelisted 🙂

#

So definitely feel free to post Ursina discord server in the future

glass wasp
#

Hii guys

#

Anybody know chess and stuff ?

#

I want to do kvsR n K in endgame programmatically

#

What do you suggest me to do ?

lean trout
#

So say if the player wants to attack and is currently facing right (haven't done the animations yet), how can I create an attack which deals damage to enemies to the right of the player?

I'm using arcade btw, but the method should be the same

normal silo
grim niche
#

how can I upload a pure text based game online

#

i wanna let my friends play it

normal silo
grim niche
#

yes

normal silo
# grim niche yes

There are a couple of options. Do you want them to be able to just download it and play it or do you want them to play it in the webrowser?

grim niche
#

on the web

#

it will be weird to play on the phone

normal silo
# grim niche on the web

That will have some cost and you need to have some web development knowledge. Or you have to self host, in which case you need to run it on your PC or other device that is always running (i'm assuming only your friends will be playing it, in which case it's not such a big deal in terms of security).

#

(Also still needs web development knowledge)

grim niche
#

yea only my friends will be playing it

#

I made it in replit

normal silo
#

You can share replits but that's probably not what you want right?

grim niche
#

no, i dont want to have them go to replit and make accounts and stuff

normal silo
#

Yeah then you will have to make a little website (single page that runs the game) and host it either on your own PC or rent a server.

grim niche
#

I have to rent a server?

normal silo
#

Some computer somewhere hooked up to the internet needs to serve the website.

grim niche
#

do I just make a website code, and then in another file put my code in?

normal silo
#

#web-development It will probably involve Pyodide or Brython (these two things let Python run in the browser / site).

#

Yes, you make a website. And then host it (run it on a computer hooked up to the internet (either your own, or renting someone else's which most websites do)).

#

The program that serves the website pages can also be written in Python so you can ask in #web-development how to make a simple single page website with a Pyodide application running.

#

Getting Python running in the browser is not a beginner thing. So if it looks complicated, that's because it is.

#

I think replit can also host your site.

civic fox
#

I'm working on a game where I've been using continuous, m x n 2D tile maps for my game so far, but I'd like to add some maps that are not rectangular, like a long, jagged hallway. Anyone have advice or know of resources on data structures and file formats for storing the map?

proper peak
#

Seems to me that the most obvious way would be a rectangular 2d map but with a tile type that means "missing" (as in, totally unreachable and not really even part of the map)

#

if the map is very sparse (only a small part of area is real tiles), you could instead use a dictionary mapping tile location to the tile, with missing tiles not present in the dict.

full heath
next estuary
#

Imagine this and you hear a sound and look around and some centipedey creature is skitttering at you

dawn quiver
#

anyone want to make a bejeweled clone with me? Id like to teach beginners how to make their own games.

dawn quiver
#

dont be afraid to send a friend request. Ill see it in the morning and ill be ready to talk and work on stuff with you.

crisp junco
#

oh it's ursina

#

the red dot

#

mhm

#

nice

radiant sage
#

if you guys wanted to compile your code into a game how would you go about doing it?

#

yk how windows always throws a hissy fit and raises security issues when you run a compiled exe

olive parcel
#

You have to use code signing to get around that

radiant sage
olive parcel
#

Yup

round obsidian
radiant sage
round obsidian
light swan
#

Hi guys, I am currently looking for some people to make projects with me using python (aged 13 - 15) if interested please dm me

analog hull
#

Hi dudes, has anyone worked with tkinter before? if someone has, please dm me because I need help understanding some code

dawn quiver
#

me and a buddy of mine did a live coding session and made snake

#

it was pretty fun

#

im gonna try and help beginners make games with pygame

dawn quiver
#

looking to make some fun game projects together, (am 13) dm me if you r around the same age

#

im older poo

dawn quiver
#

alright i guess not.

#

i gotta go to bed anyways

keen mantle
#

(Pygame) I'm trying to add some padding to a text rectangle but it doesn't seem to work. I'm using the draw function twice here, once to draw a pink rectange and another time to draw a blue rectangle with a width of 10, which should grow outside the original boundary but doesn't seem to, since we can't see the blue rectangle.
A gist with my code, in case it's useful https://gist.github.com/Mt-Elvy/07b95ec78c6a579a584eb250ce5cd52f

acoustic herald
#

I'm making a fullscreen game using Python, Pygame for Windows. With some screens the settings for the screen are automatically set to zoom 125% which makes it look different for the people with 125% zoom than people with 100% zoom. How can I fix this? How can I make Pygame fullscreen window responsible? Or how can I change the screen settings using Python? Please ping me.

sinful coral
#

Yee... Sure

#

Uee

pearl panther
#
    font = pygame.font.SysFont("Constantia", 30);
    img = font.render("Wave: " + str(self.wave), True, (255, 255, 255));
    self.screen.blit(img, (0, 50));

This text won't show up on screen and i'm not sure why

dawn quiver
pearl panther
smoky thunder
next estuary
round obsidian
#

oh neat!

keen mantle
dawn quiver
# keen mantle still doesn't work, but ty
import pygame
from pygame.locals import *

window = pygame.display.set_mode((640, 480))

blue_rect = Rect(22, 20, 80, 20)
red_rect = Rect(20, 20, 80, 20)
state = 1
while state:
    for event in pygame.event.get():
        if event.type == QUIT:
            state = 0
    pygame.draw.rect(window, "Blue", blue_rect, width=50)
    pygame.draw.rect(window, "Red", red_rect, width=1)
    pygame.display.update()

pygame.quit()
#

this gave me an insightful look at the problem. The docs may be wrong or confusing.

#

this should render a filled in blue rect behind a red outline rect

#

in particular i dont believe this note



Note

When using width values > 1, the edge lines will grow outside the original boundary of the rect. For more details on how the thickness for edge lines grow, refer to the width notes of the pygame.draw.line()draw a straight line function. 
#

i tested with values above 1 and the all seem to fill the same area

#

just different amounts of inner thickness

#

both rects fill the same space. the red rect just has a small border on the inside of the defined rect

#

so you will probably have to define a bigger rect

#

the width property behaves unexpectedly

finite solar
keen mantle
next estuary
muted monolith
#

If yes cool

#

I have started learning...Python

pearl panther
craggy brook
#

@next estuary Wow! how can you get level in python?

next estuary
#

It's written in python using Ursina

radiant sage
next estuary
#

Not yet but soon :)

feral furnace
#

Hey all I have been working on a very basic raycaster in pygame. Here it is as it stands. I would like to add some shading to the walls like in the second picture to make the 3d effect look a little better but I'm not really sure how I would go about finding that spot mathematically. Any ideas on this?

sinful lodge
next estuary
#

?

#

I've been here for months haha

#

Actually almost 2 years

dawn quiver
#

This might sound usual but, What's the recommended game engine for Python?

round obsidian
dawn quiver
#

Like to make a 2 dimensional games

sinful lodge
#

if you look at my message history i was trolling around so...

sinful lodge
round obsidian
#

See also Arcade

sinful lodge
#

that's less popular

#

would be easier to get support with pygame imo

sinful lodge
sinful lodge
#

yup ursina

zealous void
#

i need help guys

blissful oasis
#

I'm stumped at this point

#

I have tried everything but when I run the code it continues to run the jump trigger even if the povname is not set to the variables listed

#

Usually with RenPy, it will just carry on with the script even without an else but it does what I just said and even if I add a else pass it does the same

frank fieldBOT
#

When checking if something is equal to one thing or another, you might think that this is possible:

if favorite_fruit == 'grapefruit' or 'lemon':
    print("That's a weird favorite fruit to have.")

While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.

So, if you want to check if something is equal to one thing or another, there are two common ways:

# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
    print("That's a weird favorite fruit to have.")

# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
    print("That's a weird favorite fruit to have.")
blissful oasis
#

Already got it lol

carmine nymph
sinful lodge
blissful oasis
#

a very heavily modified version of it

indigo frost
#

hey

#

I wanted help in one thing please suggest me the channel to ask it . it is related to linux 😅

cold storm
zealous void
next estuary
zealous void
#

@carmine nymph i figured it out i had to take out press. so it was wn.onkey(paddle_a_up, "d")

carmine nymph
#

Great job !

#

And sorry I wasn't active this time

cold storm
zealous void
radiant sage
#

i wont even pretend to understand any of that 😄

#

i tried ursina once

#

way too much stuff to comprehend

regal badger
#

What’s a good pygame video to help learn pygame

rain dome
#

How do I put a full folder in an exe file so others can install?

olive parcel
#

You can use something like nsis to build an .exe installer

sinful lodge
sinful lodge
zealous void
sinful lodge
#

pygame is much better for gamedev

zealous void
zealous void
rain dome
#

I got this error I need help. How to fix it I'm using ursina.build

sinful lodge
rain dome
zealous void
sinful lodge
#

oh

sinful lodge
#

just ask in the ursina server

#

nobidy here uses ursina

rain dome
sinful lodge
#

they do

#

lemme grab an invite

rain dome
fast basalt
#

How do I use .blit() on a sprite?

half dune
fast basalt
#

ok, thanks

half dune
#

like so

fast basalt
#

thank you so much

half dune
#

i should say, if there is only one sprite in a group you should use pygame.sprite.GroupSingle

wintry nest
#

My problem was when i was coding a game the game window was not oppening only

#

Bruh

woeful mortar
#

Hey

flat aurora
# zealous void Do you have another one outside of pygame?

There is Ursina for 3D, Arcade is a 2D engine as an alternative to Pygame. There is also Pyglet but that’s a bit lower level and can be a little harder to use, though it’s more flexible. Arcade is built on top of Pyglet for example

sick eagle
#

hey i need something

#

I'm making a game using pygame but I'm not the best scripter, would anyone like to help with the game.

#

this is the game

#

does anyone know how to make the game a application on your desktop?

#

so you can just like double click it to run the project and play it

#

and if you send the file to someone they can play it

zealous void
flat aurora
flat aurora
zealous void
#

@flat aurora just gave out the platform .salute to you brother

grand whale
grand whale
sick eagle
regal badger
#

in pygame how do you make a smooth animation?

zealous void
#

How do i download pip for mac( i know dumb question) ?

#

For pygame

#

Or vice versa

potent ice
teal sage
jovial parrot
#

Hello , I am beginner in python and interested in Game Development. I would like to know are there any 3D or 2D game libraries to work with?

boreal gazelle
#

@torpid meteor what help do you need?

torpid meteor
#

yess

#

i will send the coede

boreal gazelle
#

okay

frank fieldBOT
torpid meteor
#

while i<1:
wn.update()

#actually moving the ball
ball.setx(ball.xcor() +ball.dx)
ball.sety(ball.ycor() +ball.dy)

#borders
if (ball.ycor()>280):
    ball.sety(280)
    ball.dy*=-1
elif (ball.ycor()<-280):
    ball.sety(-280)
    ball.dy*=-1

if(ball.xcor()>500): 
    ball.goto(0,0)
    score_a+=1
    score.clear()
    score.write("Player A: {}  Player B: {}".format(score_a,score_b), align="center", font=("Courier",24,"normal"))
    ball.dx*=-1

elif(ball.xcor()<-500):
    ball.goto(0,0)
    score_b+=1
    score.clear()
    score.write("Player A: {}  Player B: {}".format(score_a,score_b), align="center", font=("Courier",24,"normal"))
    # ball.dy*=-1
    ball.dx*=-1

#collison ball and paddle
#collision for paddle b
if((ball.xcor()>440) and (ball.xcor()<450)) and (ball.ycor()<paddle_b.ycor()+40 and ball.ycor()>paddle_b.ycor()-40):
    ball.setx(440)
    ball.dx*=-1

#collision for paddle a
elif((ball.xcor()<-440) and (ball.xcor()>-450)) and (ball.ycor()<paddle_a.ycor()+50 and ball.ycor()>paddle_a.ycor()-50):
    ball.setx(-440)
    ball.dx*=-1

#game ending
if(score_a==5)or (score_b==5):
    score.clear()
    
    if(score_a>score_b):
        score.write("Player A wins", align="center", font=("Courier",24,"normal"))
    else:
        score.write("Player B wins", align="center", font=("Courier",24,"normal"))
    i+=1
    #again.write("DO YOU WANT TO PLAY AGAIN ENTER ENTER y/n:", align="center", font=("Courier",24,"normal"))
    #wn.onkeypress(again_func,y)
    #wn.onkeypress(quit,n)
boreal gazelle
#

error?

torpid meteor
#

this is the main loop that updates the window over and over

#

it works fine

#

but i wanted the user to have an option to restart the game

boreal gazelle
#

ok

#

wait a min please

torpid meteor
#

i used the turtle library

torpid meteor
boreal gazelle
#

@torpid meteor

torpid meteor
#

yess

boreal gazelle
#

in the if else ladder put an input statement

#

like

torpid meteor
#

yea i thought that

#

but then i felt if i could use
"onkeypress"

boreal gazelle
#
        if next_calculation == "no":
            break```
#

this is my calc code

#

you can use this as reference

torpid meteor
#

yea

#

i will use it

boreal gazelle
#

ight

#

bye

#

if you need any help then dm me

torpid meteor
#

just wanted to know if there was a certain keyword that i could use

boreal gazelle
#

if i could i would help

torpid meteor
#

like i used onkeypress "up" to move the paddle upwards

#

so like a right click would tell the system to restart and a left click would tell the system to close the game and stuff

torpid meteor
boreal gazelle
#

bye

torpid meteor
#

thanku for the help

low folio
#

Hey Guys, I'm learning about argparse or parsers. I'm trying to figure out a use case where i could practice this. Lets say I write a pygame. When I launch it from the CLI, I'd like to give the window size (width and height with argparsing). normally I would keep these numbers as static variables (800,600). this way it would ensure that i dont mix up the height with the width. would i be going in the right direction (beginner)

#

or does that just make no sense what so ever ;P

zealous void
#

How do i download pygame

#

Because when i try to run code i get an error

potent ice
#

Then run your script with python3 stuff.py

zealous cairn
#

So, i've been thinking about a implementation of a main menu system for a while now but havent figured out where to start. There're a couple of articles online i.e from geeksforfreeks but they dont fit my needs. On the image above i quickly draw what i want to archive. I already have a button class that should be good enough. :)

#

Any idea how to implement such a system.

whole agate
#

hi, does someone knows about the creation of a blindtest with tkinter

sick eagle
#

hey i am making team that makes games for fun, 1 game a month, simple games 2d. dm me if interested 😄

zealous void
cold storm
#

upbge 3.2x is good for 3d games

#

it gets better every day

#

(we can use geonodes in conjunction with py)

normal silo
zealous void
#

Question for me to activate my game i have to upload it on GitHub??

#

And pygame won’t work by the way.

#

For some reason when i put in import pygame it won’t upload

cold storm
#
  1. we get new stuff every day @normal silo as we are constantly merging with master
#

openXr - geonodes - bmesh - etc all work in game

#
  1. robust physics system (bullet rigid / soft body / constraints etc)
#
  1. components - (python component system has been upgraded by mysticfall)
#
  1. realtime composition is on the way !
#
  1. the community is amazing
stray nebula
#

Does anyone rate the tool for making UNITY compatible with Python?

real jetty
#

in use of tkinter, instead of using

lambda event:```
 how can i bind 'a' to move left
real jetty
#

yeah idk why it wasnt working before

#

it worked

#

now

#

thanks for the help

carmine nymph
zealous void
carmine nymph
#

Which mean basically frist line

zealous void
carmine nymph
#

Why pip2 ?

carmine nymph
#

Into your script

zealous void
#

Thank you

carmine nymph
#

Also

#

Do you have python basic ?

#

Like variable into Class ?

zealous void
#

I have python 3

carmine nymph
#

No

#

I was saying

#

How much you know about python ?

zealous void
#

I’m learning

carmine nymph
#

The basic are from variables into class

carmine nymph
#

Frist y

zealous void
#

Ok

#

What ever is in pycharm that’s what i have

carmine nymph
#

.... Pycharm is just a text editor with specific tool for python

#

Let's me send you a nice book

zealous void
#

Ok

carmine nymph
#

He will learn you the basic of Python and basic stuff

zealous void
#

I know some basic languages

carmine nymph
#

Like ?

zealous void
#

Print(“hello world”)

#

Print(costco (“food store”))

carmine nymph
#

wait

#

costco ?

#

Let's me check something pls

zealous void
#

The first thing that popped in my head

carmine nymph
#

so

#

print("costco("\Food store"\)

#

Yeah you're just beginning

#

it's fine ;)

zealous void
#

Thats why I’m here asking questions

carmine nymph
#

Yeah but Directly use pygame is like using a shotgun whiout knowing how to reload

zealous void
#

Good analogy

zealous void
alpine shoal
#

I wanna learn some game dev but its hard with pygame lmao

carmine nymph
carmine nymph
alpine shoal
#

Ik

#

I will not give up

frank fieldBOT
#

Hey @carmine nymph!

It looks like you tried to attach file type(s) that we do not allow (). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

carmine nymph
#

Oh

alpine shoal
#

?

carmine nymph
alpine shoal
#

Oh ok

#

Lel

carmine nymph
alpine shoal
#

Yes

carmine nymph
#

Like Variable into OOP

alpine shoal
#

Bruh yes

carmine nymph
#

Ok nice

#

I also got a book for it

alpine shoal
#

I program in python for years

#

Like 2-3

#

I dont remember rlly

#

I just got into fame dev

#

As a side prkject

#

Since im working on a nasa api wrapper

#

Do u have a book bout pygame?

carmine nymph
#

Yup

zealous void
#

Wait @full summit what days do you have lab days besides today for beginners

#

I’m at wrk i can’t key stroke today

viral latch
#

I am creating the main window for my game in pygame but when I click the help button, it doesn't fill the screen on top of the buttons like the play button does. Here is my code:

def help_window():
    win.fill((0,0,0))

def main():
   # The main function

def main_menu():
    title_font = pygame.font.SysFont("comicsans", 70)
    run = True
    win.fill((90, 255, 180))
    while run:
        play_button = Button((0,255,0), WIDTH/2 - 100, HEIGHT/2 - 30, 200, 70, "Play")
        play_button.draw(win, (0,0,0))

        help_button = Button((0,255,0), WIDTH/2 - 100, HEIGHT/2 - play_button.height - 120, 200, 70, "Help")
        help_button.draw(win, (0,0,0))

        pygame.display.update()
        pos = pygame.mouse.get_pos()

        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                run = False
            if event.type == pygame.MOUSEBUTTONDOWN:
                if play_button.isOver(pos):
                    main()
                elif help_button.isOver(pos):
                    help_window()
    pygame.quit()
main_menu()
dawn quiver
#

Has anyone on here heard of XAYA?

dawn quiver
#

Hey i wanted to try making a game. It should be a pixel 2D MMO.

#

but i dont want to do it alone because its boring and not nice
is there anyone who wants to help?

Iam german and 19yr xD

wary sluice
#

Hi I'm trying to make 6x6 SOS game , console based not GUI. Can someone tell me how shall I count the score for each player everytime they successfully make a SOS vetically, horizontally or diagonally?

#

I tried to implement the tic tac toe logic but it failed me

frank fieldBOT
wary sluice
lilac frost
dawn quiver
#

What import module is recommended for using CSS and HTML as an inteface

light cosmos
#

entity system pog

#

running at ~200 fps

#

also tiled level editor support

covert fern
#

OH THIS IS THE PLACE ABOUT PYGAME?

#

Anyone pretty good at python that they can give me the crash course?

#

Or ursuna

#

Please give me a crash course cause I need to know how to :l

halcyon heart
desert umbra
#

!pypi eel

frank fieldBOT
#

For little HTML GUI applications, with easy Python/JS interop

desert umbra
#

It can also interact with Js easily

halcyon heart
desert umbra
#

The animations are so Smooooth

halcyon heart
#

Thanks. I really like how that came out. Full video is on reddit. Personally, I was also surprised and amazed that the animation keeps playing when you move the entire app. Looks even better there, I'd say. If you'd care to upvote there, I'd really appreciate it 🙂 @desert umbra

dawn quiver
#

who's having MSI GE 76 is having a lot of fun

#

it's expensive though

halcyon heart
fluid thistle
#

I am out of ideas

grand whale
fluid thistle
#

What do you mean

grand whale
#

What are you saying?

fluid thistle
#

What you read

grand whale
#

I am out of ideas so what you meant?

#

Are you out ideas for a game?

sage hare
#

Need some help with a clicker game in Pygame

#

Python Play plugin from Replit

grand whale
sage hare
slate wharf
#

i dont really like pygame

#

which is why i challenge myself by using builtins instead of game frameworks/libraries

#

tkinter gaming brainmon

halcyon heart