#game-development

1 messages ยท Page 42 of 1

formal phoenix
#

i sent you a friend request

opaque quest
#

Suggestions and help would be appreciated

#

I kinda wanna make a bot you can play against but I have no idea how to

rare elk
#

I typicaly use pygame or ModernGL depending on what im making

#

sometimes both lol

#

I made this game awhile back

wooden night
#

Can anyone help me with player detection after making a pathfinder?

tight obsidian
#

what should i expect my fps to be drawing 60000 triangles. would the bottle neck the shader or python and how can i test that?

strange knot
#

Hello! I hope this is the right channel for this but I'm wanting to make a game to learn python (using pygame), but I am COMPLETELY lost on WHERE I code (and can use pygame too). I am very new so please don't hate that i don't know ๐Ÿ˜”

cerulean nimbus
#

i think clearcode on youtube has some nice tutorials if im not wrong

strange knot
cerulean nimbus
terse plover
#

yo

vagrant saddle
obtuse rivet
#

ive been coding an ancient game and im losing to 20 lines of code ๐Ÿ’”

#

its fun to do it very bare-bones like im not using pygame or anything, just the "graphics" library

#

the royal game of ur is like the best board game ever its amazing

lavish pulsar
#

i'm kind of new to python still, only been using it for almost a year, but i made this triangle renderer that renders in the output, but i now want to make it 3d in a window.

i was think of making it using pygame, tk or turtle ect. but i wanted to save the triangle vertices in a last as coordinates, and make the pen func draw over the cords to form like a triangle, repeat this every frame and just make it trace over the triangle that has already been printed, and i have my next step to making it 3d.

if anyone could help i'd appreciate it, thanks in advance.

just tell me if you would like to see the source code

cerulean nimbus
lavish pulsar
#

my pc is shit so i can run most game engines, so i left with making a game with no engine, but im trying to use triangles to come together to form 3d shapes and objects

#

for the game

cerulean nimbus
lavish pulsar
#

i think so :]

#

i also think its one the easiest mods to learn

cerulean nimbus
#

You could look up on youtube "turning 2d into 3d turtle python" and you should be able to find some vids

lavish pulsar
#

ok thanks for your help

cerulean nimbus
#

I think with turtle its pretty simple

#

Since you can do this without opengl if im not wrong

lavish pulsar
#

i hate using openGL

#

SO MUCH

cerulean nimbus
lavish pulsar
#

I keep getting this error, i cant remeber it fully coz it was awhile ago, but it was like "gluperspective error... "or whatever (ik i didn't make it look like an actual traceback error)

lavish pulsar
#

panda3D runs, just i havent used it as i dunno if i like it or not, its easy but hard if you get what i mean

normal silo
lavish pulsar
#

yeah ig

#

man i joined this server coz none of my irl friends know py

normal silo
#

Panda3D can also just do the the rendering for you, unlike other engines it's very unopinionated, and leaves things like how to handle game objects up to you.

lavish pulsar
#

fair, ill look into it thanks

normal silo
lavish pulsar
#

i tried ursina before, didn't like the look of the windows, but i could use a tk-ursina hybrid

wooden night
spring zealot
cerulean nimbus
cerulean nimbus
autumn steeple
#

how much foundational knowledge of python does it take to get started with pygame

#

and could it be a solo project or reccomended working with a team

normal silo
limber veldt
#

For pygame, I usually say already knowing or being ready to learn python classes is a good start

autumn steeple
#

I am motivated to start but i feel as though i dont know enough about standard python to make anything decent in pygame without assistance

#

what do you think i should be able to make on python before ill be "ready" for pygame

normal silo
limber veldt
#

At least the basics, types, iterations, conditionals, and so on, all the basics

normal silo
#

To be ready is more about having made a few more simple things of various kinds.

autumn steeple
normal silo
autumn steeple
autumn steeple
normal silo
#

Tic-tac-toe, battle ships, checkers, minesweeper, match 2, tetris (leap into realtime).

limber veldt
#

tic tac toe in the terminal can be educational, learn a bit about 2d lists (for storing the state of the board) and how to work with them, many games use 2d list kind of arrays or structures

autumn steeple
normal silo
autumn steeple
#

okay

#

when i make tetris ill call myself ready

limber veldt
#

Tetris is hard

normal silo
#

A text adventure is another.

autumn steeple
normal silo
#

If you can make Tetris you are beyond ready (consider it advanced).

normal silo
#

Imagine an interactive book.

#

You take actions and it says what is happening.

autumn steeple
normal silo
#

Like a RPG but without visuals.

autumn steeple
#

it doesnt seem hard just very very long

normal silo
#

It can become hard if you want it to.

#

Like you can have an inventory, combat, AI, etc.

autumn steeple
#

ellaborate

#

damn thats so cool

normal silo
#

Or multiplayer, whatever.

#

You can scale it up to whatever you want there.

autumn steeple
#

but its just text based, like in the combat nothing is fighting its just showing you what happens or something like that

autumn steeple
normal silo
#

Kind of.

#

Players are connected over network, and each inputs their action.

#

It waits for everyone to have made their move.

autumn steeple
#

you can do that in a terminal?

normal silo
#

Think like a board game.

autumn steeple
#

i think ill stick to single player for now

normal silo
autumn steeple
#

thanks ill see what i can do

vagrant saddle
#

terminals are more high-level than pixels ( which they can display in vt4xx mode with sixel), it is inputs which are severely limited

eager valve
#

Where is the chat

#

?

spring zealot
cerulean nimbus
#

my model is see trough on the other side eventho the sides are also rendered, im using ursina does anyone know what is going wrong ?

#

nvm the problem was that the model didnt have the other side calculated

#

so easy solution for now is put it on double_sided=True

normal silo
#

If you go into software like Blender you can enable to the feature to show the normals, make sure the normals are pointing outward.

cerulean nimbus
normal silo
#

Default is counter-clockwise.

#

It's used to tell which side of the triangle is front and back side. If the back side is facing the camera, the triangle discarded, since there is nothing to render.

#

The idea is that all triangles of your model should be facing outward. That way when they are in view, they are rendered, but the back side of the model has triangles that are not rendered (facing away), giving performance gains (you can't see them anyhow, so skip them).

limber veldt
#

In Blender, flip the normals. Edit mode, select all, alt+n > Flip

modern flint
high prawn
#

Hallo

river zodiac
spring zealot
proper berry
#

If I make a game using python and kivy I could turn it to .apk with bulldozer right. But what if I want to turn it to an iphone version?

#

Is it possible to do that?

opaque lantern
#

And an apple dev account to post it i think

river zodiac
spring zealot
#

I'm good

river zodiac
#

Do you have a group or community that have hackers

river zodiac
spring zealot
#

If I did I would be an idiot

fast yoke
#

i hope someone makes a game like this
2d or 3d
fully online
pve/pvp (on same area)
japanese weapons (irl sword animations) (no magic)
open world
skill fights (unspammable mechanic) (1lvl can kill 100lvl)
upgrade sword/armor by leveling up
level up by killing on pvp/pve (souls/deaths) lvl down by dying
first u start with basic sword and armor u take 1 shot to die
mechanics: dash/dodge/block/parry/light attack/heavy attack/feint
assasination does 2x damage
trade system
if u are on combat exit=die
no safe zone
survival (eat food to live)

inner steppe
fast yoke
spring zealot
#

U make it

proper berry
#

Does anyone know what the biggest game dev community

#

Maybe I'll just join unity discord and pretend to be using unity when I only use python

merry grove
#

but it was on my college syllabus only and I play a lot of games

#

thats why. but

inner steppe
#

would anyway be able to talk me through how to make a game that i can upload to a website

inner steppe
#

2d

vagrant saddle
vagrant saddle
broken kayak
#

Guys, i wanna make a game that will run on python, and its pretty similar to buckshot roullete, i wanna make it in pixels, so can i have some help to choose the game engine? Its my first game aswell

spring zealot
#

Make pixel shader

#

Make game

spring zealot
merry grove
#

i mean unity use C# though but u can start with either unreal or unity with C++ and C#

merry grove
sweet shard
broken kayak
#

Oh ok ty, whats easier tho

sweet shard
#

Ursina

fast bluff
#

I made this crappy unfinished text adventure game, anyone wanna try it out?

formal phoenix
#

naa bro

#

wth is that. jk decent game

fast bluff
bold socket
#

Are there any 'mainstream' games implemented in mostly python?

vagrant saddle
#

eve online

bold socket
#

Oh wow thats awesome

#

will check it out

raven kernel
bold socket
#

never heard of that one before

#

what's the reason for bigger companies writing these games in python?

#

as opposed to c/c++? which seems more typical for gamedev

raven kernel
#

companies hire people, and its easier to hire people for things that are more common. the reason fuels itself

#

python games that got big are not usually by big companies using them, but rather founders of a company that started out small that new python so decided to use it

bold socket
#

ahh gotcha

raven kernel
#

it doesnt really matter what you use, its more about the team and assets

#

but if you're hiring, it makes sense to look for more common options so its easier to find candidates

bold socket
#

well does it not sacrifice some performance?

raven kernel
#

depends on what you use

#

if you use moderngl and some window context library then no, you can technically create whatever

#

a more fair concern i see is the lack of pre-built game dev utility for python scripting

#

like a game engine which has all the things

#

you CAN script godot with python though
though the popular extension rn is under maintenance

bold socket
#

i see

raven kernel
#

so basically:

  1. its possible to make any game with python. performance is not the concern for scripting the game, the underlying library/framework/tool is probably fast enough
  2. the issue with making games with python has more to do with portability. such as console or mobile ports
  3. another big issue is the lack of a streamlined game engine for it
vagrant saddle
bold socket
#

noob question - but if you're scripting the game with python, how are event-based actions handled?

#

are there just multiple concurrent loops waiting for events

vagrant saddle
#

usually you have an event queue with one dispatch loop so they keep ordered

steady nacelle
#

yo

#

guys

#

im wanting to leanr

#

learn

#

to make a game

#

do u teach that stuff?

vagrant saddle
steady nacelle
#

alr

idle lion
#

Sup guys! looking through this thread to see game dev projects, this is a sweet little channel for starting. I have not built many games outside of school projects really just looking to learn what is going on for this channel.

#

Is there some aggregation of cool projects that have been highlighed in this channel at any point?

high prawn
#

Guys I'm making a new game called pirates cove about a guy called Aten who gets cast out by pirates and wakes up in a dinghy with like two bread for food and a water pot. You then have to check out islands to make your cove and get supplies from there to not starve or die of thirst. You then need to get islands as your own and get crew members from there. You have to fight for the islands. For money, get treasure maps for treasure. You then want to get revenge on the pirates who made you an outcast and go to battle against them with your newly founded crew. (Btw the Minecraft thing is postponed for now cos of... Reasons)

Does anyone have any experience with pixel art? Cos I need it for my game. It would be great if you could do that for me. Thank YOU!

formal phoenix
high prawn
#

tiled 16x16

formal phoenix
#

do you have any art as of now or you need some to get started

formal phoenix
high prawn
#

islands and people

#

and the things in the islands

formal phoenix
high prawn
#

what about now?

fast bluff
broken kayak
#

Guys, can anyone help me make my game? I would rlly appreciate it, i just need to be told how to and ill do the rest

#

I just rlly wanna make the game but idk how to begin it

raven kernel
#

godot should be fine for most indie games

broken kayak
raven kernel
ripe pond
raven kernel
# ripe pond shouldnt one learn a programming lang first

when learning how to use godot you would be simultaneously learning how to use gdscript, which is the scripting language that godot uses. it's highly specialized so it isnt necessary, or rather even possible, to learn it separately. it isnt completely necessary to learn how to use a different programming language first either.

godot's getting started page is good enough
https://docs.godotengine.org/en/stable/getting_started/step_by_step/index.html

drowsy axle
#

Can someone give me any tips or websites to learn the game design aspect of computer science please? I am re-learning the language because i forgot a good chunk of what i learned in school.

#

i'm using vs code but it's still a bit finicky to use sometimes

tranquil lynx
#

Can some one explain me cloud gaming

weak gulch
tall viper
#

Is there likena Python game engine or something like that?

#

Similar to Unity

#

I had like a fever dream that I helped or was the soul creator of L4D3

dawn quiver
sweet shard
wary arrow
#

hey guys, i have a question: can we create mods for minecraft through python?

lavish knoll
raven kernel
#

and colors

lavish knoll
#

the rest of them were mine

#

what's the highest diff you can comfortably play on tho

#

i'd imagine M+?

#

looks pretty awesome

#

though

#

it does kinda rely on discord as something so

#

i kinda just like making games that you can just play without needing to have discord

#

or anything online for that matter

slate tiger
#

welp i was bored and wanted to spice up my profile a bit

#

yess i reached almost 500m on omega difficulty

#

gg

#

i can comfortably play on omega

lavish knoll
slate tiger
#

yea

lavish knoll
#

omega diff is literally 3-pixel wide platforms

#

and it's the only difficulty that BYPASSES THE SPEED LIMIT

#

usually downwards pull is capped at 2.0

#

omega pushes it to 2.1

slate tiger
#

i can still play comfortably tho

#

i'll go to 2k just to prove omega ain't all that

#

halfway there

lavish knoll
slate tiger
#

@lavish knoll this game too easy lah, i'm almost there

#

1.88k omega

#

gg, 2k omega

lavish knoll
slate tiger
#

yea you'd have to make a harder diff than omega to stop me

lavish knoll
#

alright

#

give me like

#

3 minutes

#

i'll brb

#

get ready to be fucked over :3

slate tiger
proven frigate
#

almost

lavish knoll
proven frigate
#

beginner shrug was just going in order to see differences

lavish knoll
proven frigate
#

10

lavish knoll
slate tiger
#

you said theta would be hard :3

lavish knoll
slate tiger
#

what

#

this is so wasy

#

i'll step in

#

to make a harder difficulty

lavish knoll
#

ok what's your idea

#

we can't increase velocity

#

2.2 is the highest theoretically possible speed

#

2.3 will slowly move you downwards no matter what

#

i was thinking a difficulty that would slowly remove HP over time

#

-0.5hp/second

#

and also

#

you start with 1250hp (was 2500)

#

and the ground deals 1200dmg (was 800)

lavish knoll
#

11th difficulty: epsilon

#

same as theta, but you take passive DMG, start with less HP, and take 50% more damage

slate tiger
#

12th difficulty: zeta

#

same as epsilon, but hp generates twice as slowly, and you take 100% more damage instead of 50%

lavish knoll
#

i still want the difficulty to be theoretically possible to survive for an infinite amount of time

slate tiger
#

just 75% then

lavish knoll
#

no like

#

having HP generate twice as slowly

#

would mean

#

in a best-case ideal scenario

#

you will still lose HP over time

slate tiger
#

alright

#

ill try to get 1km on epsilon

lavish knoll
#

so there's effectively a hardcap on time and therefore altitude

lavish knoll
slate tiger
#

this is too easy, not only was it on 1 attempt, i also overshot by 229m

#

@lavish knoll

lavish knoll
#

YOU SCORED HIGHER THAN YOU DID FOR THETA

#

i have officially run out of options

#

unless you have more

slate tiger
slate tiger
#

zeta has velocity parameter 5

#

you start with 1200 health and the platform does 1200 damage

#

so you gotta generate more health if you wanna survive one hit against the platform

lavish knoll
#

btw

#

changing velocity parameter past 4 does nothing because of how i handled velocities but i'll fix it for you

#

i did lower the velocity slightly to 4.8m/s, bc 5m/s is pmuch impossible to do anything with

#

given how bad i am at this i'm impressed with myself...

lavish knoll
#

@slate tiger !

slate tiger
#

hmm

#

i'll try

#

@lavish knoll i'm a literal god

#

2.6km on zeta

lavish knoll
#

FUCKING HOW

slate tiger
#

too easy

#

i'll make yet another diff

#

2 more difficulties

#

5.2 and 5.5 velocity params since idk how to make it harder anymorer

#

fixed one

#

ok this is the final one

lavish knoll
#

i don't want to change this much more

#

i'm just tryna play minecraft ๐Ÿ˜ญ

#

but

#

if you can get a score of 5km on radiant

#

i can try and make you a trophy in blender so you can 3d print it

slate tiger
#

nvm that contains my webhook id

weak gulch
# weak gulch

for context this is working in cmd.exe. got custom fonts working in cmd thanks for nothing guys

bleak trellis
#

my eyes are NOT enjoying this

lavish knoll
#

if not how far have you gotten

slate tiger
lavish knoll
#

you could prolly get 5k radiant soon

tired reef
#

Tell you the truth I've gotten books on Panda 3D and it's not helping but a YouTube video is actually helping more than hindering

normal silo
tired reef
tired reef
lavish knoll
#

all it does is rename difficulties but i will send it over

slate tiger
#

this is my pb

lavish knoll
#

i did change all the difficulty names because even U2 was pretty easy lol

slate tiger
#

slowly, but surely..

bleak trellis
#

is making a game in python hard?

#

ik you have to import pygame or something but is it hard?

bleak trellis
#

how long does it take to learn the basics?

raven kernel
#

might take less if you've done something else with python before

bleak trellis
#

i mean ive been wearning web-dev for like 9 months now

#

i know some non-basic stuff

limber veldt
#

There's really no answer to how long it takes to make a game, too many factors to consider

#

Mainly the game itself, pong takes a week or so, Zelda much longer

bleak trellis
#

i mean like learning the basics

tired reef
#

could some one help me with the problem or the error this is a mincraft clone

raven kernel
#

there arent any game engines that offer as many things as godot, unreal, unity, gamemaker etc. do out of the box. you'll have to build a lot of the components yourself. im yet to see a python based engine with a good particle system like unity's, or even a particle system at all.

also the bindings to the big engines are mostly outdated, like the python binding for godot

#

you will need to learn enough of the code architecture and rendering techniques of the library that you choose to start building the components

#

once you can build components you can invest your time well into your projects

vagrant saddle
tired reef
#

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

this is the video i was following

If youโ€™re a Python developer, you donโ€™t need to worry about learning another programming language like C++ when getting into video game development.

The Python ecosystem has several options for both 2D and 3D game development. CBT Nuggets trainer Shaun Wassell will show you how to use Panda3D to create a simplified version of Minecraft. Pan...

โ–ถ Play video
#

@vagrant saddle

#

im just folowing the tutorial

tired reef
#

How can I apply procedural animation

slate tiger
#

okay @lavish knoll 4.4k grandmaster now

#

i'm getting closer and closer to 5k

lavish knoll
#

ok you're 500 away

#

guess i should get started on the trophy then

slate tiger
#

although itll take me a few days to get to 5k

mellow flint
#

pygame with an "async" event loop is so fire
it lets you do stuff like this without blocking the game loop

        yield from d.say("Just enter it on the keypad above.")
        code = yield from self._keypad.wait_for_code()
        yield from sleep(0.5)
        yield from d.say("Wrong.")
#

i imagine this would be helpful for animations as well

#

here's my implementation, basically you have to instantiate the task queue, add tasks (generators) to it, then call update() every frame to process the tasks

vagrant saddle
vagrant saddle
#

which is the only thread allowed to do graphics

slate tiger
#

@lavish knoll so close, yet so far.. (5k grandmaster choke)

lavish knoll
#

i believe in you

lavish knoll
#

here's a deal

slate tiger
#

what deal

lavish knoll
#

if you can reach 6,500 on GM before july 1st at midnight UTC

#

i'll put you in the itch.io page when that finally happens

#

you did help me figure out extra difficulties

#

so you deserve it

#

you'll still get your trophy no matter what tho

slate tiger
#

i mean i can try

cunning hawk
#

Hello , I need one developer write me PM

shut tulip
#

!rule 9

frank fieldBOT
#

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

formal phoenix
#

im working on a pain in the ass adventure text game

viscid obsidian
#

go ahead

hidden matrix
#

slowly getting to grips with json and json schema for json verification for my text based adventure game. I'm using the modules json and jsonschema to handle json verification, though the way I wanted to do it was modular and had to handle a (potentially) infinite number of entities, rooms and levels. It gave me a headache for a while but I managed to work out a script that went through each file in the set directories and pulled the jsons into python dictionaries for proccessing.
Now I have a way to verify I made the json files correctly now I can work on actually adding the systems

elfin folio
frank fieldBOT
tired reef
#

Does anyone have an idea of how to make a nice 2D map using characters I found the video a long time ago I can't find it

formal phoenix
elfin folio
#

ye

formal phoenix
elfin folio
#

send me them

formal phoenix
elfin folio
#

ok

honest drift
#

vibed a like 2D rigging program, gonna upload to github when better, if anyone has use for this type of thing.

viscid obsidian
white mirage
#

l l l lava
ch ch ch chicken

wintry cedar
#

how can you make images and basically UI just more cleaner in kivy? (im unsure where to ask this question assumed it should be here)

tired reef
#

text_map = ['www...www',
            'w.w.w.w.w',
            'w.......w',
            'wwwwwwwww']

world_map = set()

for j,row in enumerate(text_map):
    for i, char in enumerate(row):
        if char == 'w':
            world_map.add((i * TILE, j * TILE ))```
wooden night
#

@tired reef well I made a function which does the opposite

#

How do u create multiplayer?

wooden night
wooden night
#

Now i think its not the one u r looking for

tired reef
wooden night
#

Its amazing for any player class

#

I made a class like that and added many new things to create a offline multiplayer game with only one class

#

Also it will really help u make the class, pygame.Sprite.sprite, which will help with pixel perfect collition

tired reef
#

I'm not going to use sprites just yet I want to get the bases down for characters etc

tired reef
wooden night
#

What i did for my game was when init I made a color var

tired reef
#

I'm doing it so that when I get into networking at least I can set it up and have people say what color they are eventually I'm going to have a Sprite but for now color seem like the best option

tired reef
wooden night
frank fieldBOT
wooden night
#

this was my player class for my game

#

and I made 4 instance for it for 4 diff players

heady osprey
#

How do I make my code use a terminal without visual studios?

heady osprey
#

Like running the code independently

foggy adder
#

Hello, I am new to python and have been working on a simple number guessing game but i am confused and need help. Can anyone help me with this code?

#

import random
number = random.randint(1,100)
numberGuesse = 0
difficulty = 3
while (numberGuesse > difficulty):
print('Your NUMBERS please!');
guesse = imput()
guesse = int(guesse)
if (guesse == number):
break
print('WIN');
else:
numberGuesse += 1))

heady osprey
#

And what part it is messing up on?

foggy adder
#

nvrmind i litterally just fixed it

heady osprey
#

Ah nice

foggy adder
#

had a mixup with the < and > sings and i misspelled input

#

finished code:

#

import random
number = random.randint(1,100)
numberGuesse = 0
difficulty = 3
while (numberGuesse < difficulty):
print('Your NUMBERS please!');
guesse = input()
guesse = int(guesse)
if (guesse == number):
break
print('WIN');
else:
numberGuesse += 1

unkempt lichen
unkempt lichen
#
           Print( ' u lost')```
heady osprey
coral sparrow
#

I made Death Note in Python :)

#

print("Death Note")
while True:
X = input("Enter first and last name: ")
Y = input("State the cause of death ")
print(f"{X} died by {Y}")
if X == "End":
break

whole garnet
#

I recommend checking if X is End before asking for Y

unkempt lichen
#

if im running a python code its

python bot.py

#

since im running a discord bot

unkempt lichen
#

u can add more things yk

toxic talon
#

if X == "End":
break

#

@unkempt lichen can you explain me this

worn thistle
#

hey guys

unkempt lichen
# toxic talon if X == "End": break

if the user says END the whole thing ends , u can add "try" here is what i builded

from datetime import datetime

bot = 'system'
print(f'{bot}: hello how may i help u')
name = 'ali'
bank_money = 30000
age = 200
password = 'kakalito'
email = 'weekwayz@gmail.com'


def system(name, bank_money, age,):
    while True:
        user: str = input('you: ')
        if user == ('hello'):
            print(f'{bot}: hi {name}')
        elif user == ('whats the time?'):
            print(f'{bot}: the time is', datetime.now())
        elif user == ('good, how much money do i have on my bank acc'):
            print(f'{bot}: u have {bank_money}')
        elif user == ('whats my age'):
            print(f'{bot}: your age is {age}')
        elif user == ('bye'):
            print(f'{bot}: good bye')
        elif user in ['+', 'add']:
            print(f'{bot}: sure lets do math, enter any number below')
            try:
                x: int = int(input('enter first num: '))
                y: int = int(input('enter second num: '))
                z: int = int(input('enter third num: '))
                print(f'{bot}: the sum is {x + y + z}')
            except ValueError as e:
                print(f'{bot}: enter vaild number')
                print()
                print(f'|| {e} ||')
                print()
                print('do "add" or "+" again to continue')```
#
            print(f'{bot}: sure lets do math, enter any number below')
            try:
                x: int = int(input('enter first num: '))
                y: int = int(input('enter second num: '))
                z: int = int(input('enter third num: '))
                print(f'{bot}: the sum is {x * y * z}')
            except ValueError as e:
                print(
                    f'{bot}: enter vaild number , || {e} || do "*" again to start the math ')

        elif user == ('login'):
            print(f'{bot}: okay, enter your password and email down below')

            acc_password = input('password: ')
            acc_email = input('email: ')
            if acc_password == password and acc_email == email:
                print('--------------------------------------------')
                print(f'{bot}:Login successful. here is your acc info')
                print()
                print('--------------------------------------------')
                print(f'name: {name}')
                print('--------------------------------------------')
                print(f'password: {password}')
                print('--------------------------------------------')
                print(f'amount: {bank_money}')
                print('--------------------------------------------')
                print(f'email: {email}')
                print('--------------------------------------------')
                print(f'age: {age}')
            else:
                print(f'{bot}: wrong password or email, try again')


system(name, bank_money, age)```
#

yk play with it

toxic talon
#

thanks @unkempt lichen

unkempt lichen
unkempt lichen
#

u only added two inputs that will never end

toxic talon
#

if we use

#

if X == "End":
break

unkempt lichen
toxic talon
#

if user type End? = exit code?

toxic talon
#

thanks thanks

#

i m new i just start learning

unkempt lichen
toxic talon
unkempt lichen
# toxic talon okay
bot = 'bob'
print(f"this is {death}")
while True:
    user: str = input('you: ').lower()
    if user == ('death'):
        print(f'{bot}: time to use the {death}')
        X = input("Enter first and last name:")
        Y = input("State the cause of death: ")

        print(f"{X} died by {Y}")```
unkempt lichen
#

@toxic talon btw when did u start python?

unkempt lichen
toxic talon
unkempt lichen
toxic talon
unkempt lichen
#

ofc

coral sparrow
unkempt lichen
#

or free ones?

#

i learn from free courses outside yt too

coral sparrow
#

Paid

unkempt lichen
lyric bison
#

Iโ€™ve made two games in Pygame and want to keep going. How can I use the GPU, even with a different library if needed?

raven kernel
#

and arcade too since it uses pyglet under the hood

#

you can utilize the gpu with pygame but its tedious
you can either use moderngl or pygame._sdl2.video

toxic talon
#

game = "Stone Paper Scissor"
print(game)

comp = random.choice([1,2,3])
you = input("choice your move: ")
opt = {"Stone": 1,"Paper": 2,"Scissor": 3}
opt2 = {1:"Stone",2:"Paper",3:"Scissor"}

if you not in opt:
    print("Invalid move! Choose from Stone, Paper, or Scissor.")
    exit()

nopt = opt[you]
print(f"you choose {opt2[nopt]} , computer choose {opt2[comp]}")

if (comp==nopt):
    print("its a draw!")
elif(comp==1 and nopt==2) or \
    (comp==2 and nopt==3) or \
    (comp==3 and nopt==1): 
    print("You Win yay!")
else:
    print("You Lose!")     ```
#

Stone paper scissor game

hidden matrix
red lark
#

guys i need help with making my python game an apk

vagrant saddle
vagrant saddle
#

that depends on where you want to run, window cmd, unix terminals, web ...

#

if you want something that works everywhere check pygame-ce

hearty tapir
#

Modern terminals support uniode characters as far as I am aware, so maybe you could do fancy stuff with emojis or certain other special characters. Even the basic terminal you get with nothing installed on Linux supports them.

wooden night
vagrant saddle
warped ravine
#

i would need help to develop those simple bouncing balls game if anyone knows what im talking abt?

warped ravine
wooden night
#

Oh those thingys

#

Yes

#

I think I can create it

warped ravine
#

fr?

#

i need help to make one like those +3 balls when one escape from the circle

dense monolith
#

Fps

wooden night
dense monolith
#

Like 100 balls bouncing

#

Will make the FPS like 30

wooden night
#

Ya maybe a little morw

#

30-60 is best

warped ravine
#

its around the

dense monolith
#

You can use imageio
To capture every frame and saves it as a video

warped ravine
#

20k or 30k mark that your pc starts to go into rlly low fps

#

i mean for me ig

dense monolith
#

Bas?

wooden night
dense monolith
#

If your gonna post it

#

Use imageio

#

To save every frame without lag

warped ravine
#

i mean im on a laptop and its a chill laptop rtx 3050 and i5 so its a normal laptop ig

dense monolith
#

I think it will be alright

warped ravine
wooden night
#

To make the game u need to know about circle collition

dense monolith
#

Does turtle works_

#

?

warped ravine
wooden night
#

And probably make the x,y value in a list

wooden night
dense monolith
#

Yeah

#

You need to trace every coordination

wooden night
dense monolith
#

Not that hard

#

But

#

It will take time

warped ravine
#

i mean for me i find it really hard this took me a lot of time

#

probably bc im a beginner lol

wooden night
#

How many months?

dense monolith
#

I will not try again

#

Lol

#

It's not moving

wooden night
#

Did u use dictionary in a list to store vals?

warped ravine
#

but how do you even add effects like these

wooden night
#

Cause a used dict in a list in a list to create one of my clone based games

dense monolith
#

I think

#

It's a site not python

wooden night
warped ravine
#

ohh alr i was gonna say lol

wooden night
#

But u could make glow yourself

warped ravine
#

if this got like 2m views i think mine should be good

wooden night
warped ravine
dense monolith
#

Guys

warped ravine
dense monolith
#

I found

#

Someone tried to make it

#

But i can't find the source

warped ravine
#

wait i found some templates

wooden night
warped ravine
warped ravine
wooden night
#

Did u use geek for geek tutorial

warped ravine
wooden night
#

And python

dense monolith
#

Ool

warped ravine
dense monolith
#

Lol

warped ravine
dense monolith
#

Guys it's multiplying without getting out

#

How tf

wooden night
#

Balls are too big ๐Ÿคฃ

dense monolith
#

Do yall see the small holes?

#

Under

#

Lol

wooden night
#

Too small ๐Ÿคฃ

dense monolith
#

Yeah

warped ravine
#

how do you even amke a whole in the circle omd

dense monolith
#

And a smaller half circle

warped ravine
wooden night
#

I found this in my lost realm of code

warped ravine
#

what did you find

wooden night
#

I can't upload it :sad

#

The thing u want

#

Should i put in pastebin?

dense monolith
#

@warped ravine

#

I did it

#

But it's so laggy

#

I tried add bounce sound

#

But I can't

wooden night
#

Riggt

dense monolith
#

Yeah Io

#

Ik

#

Finnaly

#

I did the save thing

#

But I can't make it mp4

wooden night
#

Can i see thecode

dense monolith
#

It's gif fornow

dense monolith
dense monolith
#

@wooden night

#

Can I complete it

#

And add a bounce sound

#

And then i will upload it to pastebin and give yu

wooden night
#

Sure

warped ravine
#

i just came back oopsies

warped ravine
vestal tendon
#

hi

warped ravine
#

bc mine does like some musical thing or wtv

warped ravine
dense monolith
#

With effects

#

And with saving a video

#

Technically it's not

#

It's a gif

warped ravine
#

wait show me rq

dense monolith
#

1 minute

warped ravine
#

yo

#

can you shwo me

dense monolith
pure flint
#

THAT'S IT GUYS

I have a 3D render api, made from absolute scratch, using my own transformation matrices and calculations for all that I need, no OpenGL, just Python boys. I'm so proud

#

and yes I even made a function that reads .obj files. So I just basically can import any model

#

Result3D! And that's not it

#

I'm going for texturing, gui and lighting

dense monolith
warped ravine
dense monolith
#

I did with node js

#

Look

#

It's good right?

#

With canvas

#

It's a discord bot btw

warped ravine
#

the python script itself yea its great but

#

i dont understand what is the discord bot doing or is going to do

#

?

dense monolith
#

Generates a video

#

With config like

#

How many balls

#

Duration

#

Fps

warped ravine
#

ohhhh holy thats great lol

#

so what the bot does for now is only change some variables like balls and stuff

#

you can also make it change the colours ig and the gravity and velocity scale and size scale too

#

but how can you change the fps like the fps of the video like 30 fps or 60 fps

dense monolith
#

I will make a trail now

#

And some new modes like rotating hole
Multi circles with holes

#

The circle shrink every bounce

warped ravine
#

i didnt think of that that could make stuff a lot easier lol

warped ravine
dense monolith
warped ravine
dense monolith
#

Or a dropdown

#

A panel

warped ravine
#

but if you have experience yea go for it

#

could make things easier and give a better experience

dense monolith
#

Canvas

#

I'm using canvas in nodejs

warped ravine
#

yea i have NO idea how to make a gui or anything abt it

dense monolith
#

Trying en

#

Rn

warped ravine
#

what channel is that

dense monolith
#

Wdym

#

It's jn my server

warped ravine
#

im stupid nvm

dense monolith
#

Failure!

#

Lol

#

Video is corrupted

warped ravine
#

what could cause that

#

wait how does the bot even record it i don't have enough knowledge yet for this ๐Ÿ˜‚

dense monolith
#

It render it

#

In the background

#

And capture every frame

#

And then transform it with ffmpeg to a video

warped ravine
#

ohhhhhhh alright get it now thanks

dense monolith
#

One more try

#

It think

#

I think

#

The last solution it's to make it a gif

warped ravine
#

i mean a gif is good too but how could that reduce the problem

#

oh nvm

dense monolith
#

Bacause

warped ravine
#

gif are made out of frames

dense monolith
#

yeah

#

Fingers crossed

#

Wow!

#

I will make it a gif

warped ravine
#

i have really slow wifi one sec

dense monolith
#

Finallyy

#

@warped ravine

#

Done

#

It's not a gif btw

#

The bot captured 60 frames per second

#

Then rendered the video from it

warped ravine
#

yea thats rlly smooth holy thats good

#

theres so many variables that can be added this was smart ngl

dense monolith
#

Yeah

#

But

#

Did you see when it bounced of the hole

#

LOL

#

I will make option for uploading videos and extract their audio to put it in the video of the ball

#

fully automated

warped ravine
#

i didnt realise

dense monolith
#

Yeah look at the video

#

Lol

warped ravine
#

ohh

#

it slipped of my eye lol

dense monolith
#

Lol me too I thought hit the edge

warped ravine
#

i mean its a small issue i think?

#

if you want some ideas of extra options to customise lmk i got a ton lol

dense monolith
dense monolith
#

And I will make so much modes

dense monolith
#

Like the tiktok

warped ravine
#

i know theres a way where you can js send it a mid file for the music you wanna put i think?

dense monolith
#

Story and the ball video

warped ravine
#

for like the music behind it?

dense monolith
#

yeah but I saw some stories instead

#

1 minute

warped ravine
#

i never see stories on tiktok lol

dense monolith
#

Lol

warped ravine
#

OHH story times thing

#

alright i get what your saying

#

i thought like " instagram stories " or stuff like that lol

#

bare with me its a bit late im slow ๐Ÿ˜ญ

dense monolith
#

Lol

#

CPU

78.94%

#

Lol

#

93 rn

#

It's consuming resources

warped ravine
warped ravine
dense monolith
#

Tf

warped ravine
dense monolith
#

It crashed

#

Lol

#

I will make it render slow

#

Do you think this fix it

warped ravine
#

i know nothing about rendering yet ๐Ÿ˜ญ

dense monolith
#

I think the crash bc of the audio thing

warped ravine
#

i mean how much time does it even take to render

#

i mean you can try making it take longer ig see what is it going to give

dense monolith
#

It's not lol

#

Crashed because the vps server can't handle it

#

100.30% cpu

#

How

warped ravine
#

how lol

dense monolith
#

Now it will take every frame slowly

#

And forward it to ffmpeg slowly

#

So the cpu don't die

#

Howww!???!?

#

Ig 5 circles is 5 circles

warped ravine
#

that ball DIRECTLY disapeared lol

warped ravine
dense monolith
warped ravine
dense monolith
#

CPU

101.88%

#

Wow

warped ravine
#

try to make it like two circle and everytime it hits the circles the gap between them becomes bigger until the ball passes threw

dense monolith
#

I think the rotating hole is better

warped ravine
#

what specs do you have

dense monolith
#

NOT MINE

#

Bro

#

If you think at it

#

It's capturing every frame and transform it to a video

warped ravine
#

makes more sense now lol

dense monolith
warped ravine
#

alr yea i get it

#

i think its time for me to get some sleep lol

dense monolith
#

๐Ÿค”

wooden night
dense monolith
#

I made it

#

Finnaly

#

Even you can upload audio

#

Like stories

#

Lol

#

And modes

wooden night
#

Code plz ducky_concerned

dense monolith
wooden night
#

What do u use to create, vscode

dense monolith
#

It render slowly sorry

dense monolith
#

node js

wooden night
#

What

#

Y not vs code

dense monolith
#

Yeah

wooden night
#

How do u run it

dense monolith
#

Lol with music

#

It's buggy but

#

Not a big deal

wooden night
#

Na it ๐Ÿ”ฅ

dense monolith
#

It Freezes when the video end

#

But the music make it freezes

#

Lol

wooden night
#

But i need to see the source code

#

Plzzzzzz

dense monolith
#

DW

wooden night
#

Also make it more bouncy

dense monolith
wooden night
dense monolith
#

There bounce power thing

#

I make it 0.5

#

Must be like 1 or 2

wooden night
#

I just do velocity *= -0.65 for my games

dense monolith
#

It's good right?
But needs more tweaks

dense monolith
#

And canvas

#

I'm building better version

dense monolith
#

LMFAOOOO

#

I forgot the holesss

wooden night
#

PERFECTION

dense monolith
#

LOL

#

Tf was that

wooden night
#

Idk

dense monolith
#

Show me again

wooden night
#

What

dense monolith
#

The link you send

wooden night
#

I have no idea how i did that

dense monolith
#

I think you're hacked bud

wooden night
#

Idk

dense monolith
wooden night
wooden night
dense monolith
#

That's generate

#

Those videos

wooden night
#

Ok

dense monolith
#

Just make a server

#

I will add it in

#

Send it dm

wooden night
dense monolith
#

LOL

#

OKAY I WILL MAKE

wooden night
#

I have to go rn talk layet

dense monolith
#

ok ig

lavish knoll
dense monolith
#

Done
Hit me up for the code!

#

The video background is auto
You can add a video background if you want

slate tiger
#

13K GRANDMASTER. I'M A FUCKING GOD.

#

@lavish knoll

#

kinda sad it wasnt on july 1 tho

lavish knoll
#

13,112.7

#

THE GOAT

#

alright it's like 1:50 am right now, i'll 3d model that in the morning

warped ravine
wooden night
#

Yes

potent grotto
#

Yo does fastapi used in game backend server s

#

If yes then how

wooden night
slate tiger
wooden night
dense monolith
lavish knoll
#

i made a soundtrack for it too

wooden night
lavish knoll
#

@slate tiger can you paste your copy of the game onto python discord pastebin

#

i think i lost the original

lavish knoll
#

the link above me

slate tiger
#

which is the same

lavish knoll
#

oh

#

ok either or

#

either one will work

wooden night
#

I need help... organizing my code

#

Because of my organization skills, there are a lot of bugs and optimization issues

wooden night
#

Ok

knotty field
#

just add more comments mostly and if you are using vscode you can use code folding for classes, functions, if statements, for/whil loops, dictionaties and lists and multline comments.... also use multiple files if your code is longer than approx 200 lines

#

you can also break your logic into functions

#

that should help you debug more effectively

cerulean nimbus
#

i mean like you can have files where there are 1000 lines and still be well readable if the file contains the logic it describes for

#

like you dont want your files to be split up like

|- car_logic_1
|- car_logic_2
|- car_logic_3
``` where then you will have to read 3 seperate files just for one logic
#

if this makes sense

#

i just want to say dont bound yourself to make a file be 'X amount of lines' try to make your file be logic orientated (if that is the right words to use )

#

also if your logic is to "big" split it up in smaller logics

crystal pagoda
#

Great advicr

#

this is perfect

#

I'm surprised more people don't mention this as a quick tip during courses and stuff

bitter marsh
#

hi i was looking for someone who could help me write code. is this the right place for that?

#

Also how do you make text appear like code in chat?

coral knot
#

im making- i know ive said this many times on #python-discussion but i just like to say what im making in pycharm, im making an stickman terminal-based thats also a full text-made game with hp bar, chatting, username, cool guns, animated

#

and its better if you can use ANSI escape codes

knotty field
#

Hi fellow programmers... i just launched my epic pygame snake game engine on gumroad!!
Built in UI
Easy to use and read clean code!
Customizable grid size, speed, and power-ups!
You can build on a working game engine for anyone who would like to try it!
2$ on gumroad
marker2374.gumroad.com/l/mpzkx

shut tulip
#

It's not a place for adverstisement

#

Also how can it be an engine if it is only to make one game ?

#

And finally in your presentation video you claim to be 13 yo. Discord is restricted to 14+ yo (and more in some countries). Also, same for youtube

#

@knotty field

subtle wasp
subtle wasp
#

example:
one backtick:
print:"hello"

#

three backticks
print:"Hello"

#

im not sure it's called that but i looked it up

lyric fjord
#

anyone got an example of a game design document?

bitter marsh
#

How do i write a backtick? I cant find it on my keyboard

vagrant saddle
#

usually altgr+7 here's one to copy : `

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.

subtle wasp
bitter marsh