#game-development
1 messages ยท Page 42 of 1
https://github.com/Vatsal-srivastav/Custom_board_game.git
Guys I tried making my own board game
Contribute to Vatsal-srivastav/Custom_board_game development by creating an account on GitHub.
Suggestions and help would be appreciated
I kinda wanna make a bot you can play against but I have no idea how to
I typicaly use pygame or ModernGL depending on what im making
sometimes both lol
I made this game awhile back
Can anyone help me with player detection after making a pathfinder?
How do you mean?
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?
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 ๐
first pick out an editor you want (vscode, sublime, pycharm CE) then install the package
i think clearcode on youtube has some nice tutorials if im not wrong
Thank you!!!
I'll check them out :D
no worries if you need more questions just ask
yo
you can also run directly from github.dev if you have a github account, eg fork https://github.dev/pmp-p/pong-game and press "." to edit and then you will find your game running at https://<your_github_username>.github.io/pong-game/ like https://pmp-p.github.io/pong-game/
works on bolt too https://stackblitz.com/edit/pygame-script?file=module%2Fmain.py , unsure with firefox though
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
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
So if im correct you can make 2d triangles? What are you using for this (its just to help decide on how you can aproach the 3d ) ?
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
I would say use pygame-ce or turtle since if im not wrong turtle is pre installed
You could look up on youtube "turning 2d into 3d turtle python" and you should be able to find some vids
ok thanks for your help
I think with turtle its pretty simple
Since you can do this without opengl if im not wrong
Why?
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)
Even Panda3D?
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
Yeah I get what you mean, but it's certainly easier than using OpenGL directly.
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.
fair, ill look into it thanks
If you want something that makes things even easier, then you can look into Ursina (which is built on top of Panda3D and can interoperate with it).
i tried ursina before, didn't like the look of the windows, but i could use a tk-ursina hybrid
@lost kindle how will the enemy detect player?
Depends how you've implemented the game
maybe ursina might be the thing than for you
you can fully costumize the window to make it look like an normal window again
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
Not much, the knowledge needed for making games is more about the general structure of games (they run in an infinite loop which is very different from the kinds of programs beginners are making). In addition you need math knowledge as is relevant to making games (trigonometry, linear algebra, calculus (depends on type of game)).
For pygame, I usually say already knowing or being ready to learn python classes is a good start
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
I recommend making a game in the terminal, and before that, something like a shopping cart program in the terminal, where you have a menu of options, can add things to your cart, checkout, get a total.
At least the basics, types, iterations, conditionals, and so on, all the basics
To be ready is more about having made a few more simple things of various kinds.
hmmm... Ive made Rock, Paper, Scissors and a "guess the number" game but thats pretty much it
ill try out the shopping cart thing
Try more fancy things in the terminal still.
do you have ideas
i know basics but i dont know if i know enough of them
Tic-tac-toe, battle ships, checkers, minesweeper, match 2, tetris (leap into realtime).
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
i find it hard to believe these can be done in the terminal ๐ญ
Tetris is the most complicated because it's realtime, but all of them can be.
Tetris is hard
A text adventure is another.
i dont understand
If you can make Tetris you are beyond ready (consider it advanced).
Text adventures are games that used to be (and still are) played in the terminal.
Imagine an interactive book.
You take actions and it says what is happening.
okay yeah ive had that type of thing before
Like a RPG but without visuals.
it doesnt seem hard just very very long
It can become hard if you want it to.
Like you can have an inventory, combat, AI, etc.
but its just text based, like in the combat nothing is fighting its just showing you what happens or something like that
2 players in one terminal?
Kind of.
Players are connected over network, and each inputs their action.
It waits for everyone to have made their move.
you can do that in a terminal?
Think like a board game.
i think ill stick to single player for now
Yeah terminal is only a limitation on the visuals, nothing else.
thanks ill see what i can do
terminals are more high-level than pixels ( which they can display in vt4xx mode with sixel), it is inputs which are severely limited
When I started doing python in school we for a final project was told to do a text adventure game, I thought it was boring so I made a shitty pokemon game. Definitely makes text based games harder
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
Your model's triangle winding is wrong on the other side. Flip them in a model editing program such as Blender. Double sided is not the way to fix this.
If you go into software like Blender you can enable to the feature to show the normals, make sure the normals are pointing outward.
yeah i told the person that made them cause im working together with someone on this but for now ill just use double_sided
For more info on triangle winding: https://www.khronos.org/opengl/wiki/Face_Culling
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).
In Blender, flip the normals. Edit mode, select all, alt+n > Flip
This is interesting, I didn't know that's how it worked. I love learning random stuff like this here
Hallo
Hello
Hello
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?
Youd have to do it from a macos machine
And an apple dev account to post it i think
How are you and can I ask something
Do you have a group or community that have hackers
Do you have a group or community that have hackers
If I did I would be an idiot
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)
#1383454297886560316 pls help ๐ฅฒ
U make it
no u make it
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
just start learning c++ I also started to do that
but it was on my college syllabus only and I play a lot of games
thats why. but
would anyway be able to talk me through how to make a game that i can upload to a website
2D or 3D ?
2d
pygame-ce can be easily published to web, eg https://itch.io/c/2563651/pygame-wasm
or even simpler from a single static html file ( if you use no asset ) like https://pygame-web.github.io/showroom/pygame-scripts/org.pygame.touchpong.html
you need to fill in the PEP 723 block at the top of your main.py , for pytmx it could be eg ```
/// script
dependencies = [
"pygame-ce",
"pytmx",
"pyscroll",
]
///
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
Get pyopengl and learn shaders
Make pixel shader
Make game
Does unity use c++ ?
i mean unity use C# though but u can start with either unreal or unity with C++ and C#
no they use C#
Look into either Ursina or Panda3D. They both have 2d support.
I want pixelart
Oh ok ty, whats easier tho
Ursina
I made this crappy unfinished text adventure game, anyone wanna try it out?
thx im updating it daily what should i change
Are there any 'mainstream' games implemented in mostly python?
eve online
doki doki literature club
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
C is not typical for gamedev
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
ahh gotcha
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
well does it not sacrifice some performance?
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
i see
so basically:
- 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
- the issue with making games with python has more to do with portability. such as console or mobile ports
- another big issue is the lack of a streamlined game engine for it
Check out https://brilliant.org/DaFluffyPotato/ to start your free 30 day trial of Brilliant and receive 20% off a premium subscription.
The most important feature in Minecraft shaders are the dynamic shadows. While I was working on a game engine for a future project of mine, I decided to take a quick stop to create Minecraft along with some fa...
and portability can be solved the web way eg 2D https://itch.io/c/2563651/pygame-wasm 3D https://itch.io/c/3724091/panda3d-wasm
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
usually you have an event queue with one dispatch loop so they keep ordered
yo
guys
im wanting to leanr
learn
to make a game
do u teach that stuff?
you could start here https://pyga.me/docs/#tutorials
alr
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?
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!
what do you have as of now? what type of art? is it tiled? 16x16?
tiled 16x16
do you have any art as of now or you need some to get started
what you need?
i dm you soon
what about now?
https://drive.google.com/file/d/1aWI2r53sJBoZAnhfWqaQwgvntmoxoRqV/view?usp=sharing here is my update text adventure game, I would add it to git hub but honestly have no idea how to update the github page, could i get any thoughts on the added content
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
you can start by learning the basics of how to use a game engine
godot should be fine for most indie games
I hear about pygame mkre
i mean its a fine choice if you're a python user but if you arent yet and your only goal is to make games then id really suggest godot
ok then
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
This series builds upon the Introduction to Godot and will get you started with the editor and the engine. You will learn more about nodes and scenes, code your first classes with GDScript, use sig...
ohh ic
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
Can some one explain me cloud gaming
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
godot is kind of like python
Ursina Engine or Panda3D. Both are code not editor based though, unlike Unity.
hey guys, i have a question: can we create mods for minecraft through python?
so i made a game, i would appreciate feedback on how to make it better or if there's any bugs
https://paste.pythondiscord.com/F7VA
lol i like the difficulty setting names
and colors
the first three were stolen from celeste
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
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
1.06k OMEGA DIFF??
yea
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
i can still play comfortably tho
i'll go to 2k just to prove omega ain't all that
halfway there
sad pb choke ๐ญ
holy shit you're #goated
yea you'd have to make a harder diff than omega to stop me
finally
what difficulty...
beginner
was just going in order to see differences
hold on does your copy of the game have 9 or 10 difficulties
10
ok good you have the right one
you said theta would be hard :3
fucking how
you know
what
this is so wasy
i'll step in
to make a harder difficulty
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)
https://paste.pythondiscord.com/RTVQ
alright here
11th difficulty: epsilon
same as theta, but you take passive DMG, start with less HP, and take 50% more damage
12th difficulty: zeta
same as epsilon, but hp generates twice as slowly, and you take 100% more damage instead of 50%
i think that would legitimately make it impossible to survive
i still want the difficulty to be theoretically possible to survive for an infinite amount of time
ohh
just 75% then
no like
having HP generate twice as slowly
would mean
in a best-case ideal scenario
you will still lose HP over time
so there's effectively a hardcap on time and therefore altitude
if you can then kudos to you lol
this is too easy, not only was it on 1 attempt, i also overshot by 229m
@lavish knoll
jesus
YOU SCORED HIGHER THAN YOU DID FOR THETA
i have officially run out of options
unless you have more
https://paste.pythondiscord.com/NAMQ @lavish knoll here
oh god
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
nice one
btw
changing velocity parameter past 4 does nothing because of how i handled velocities but i'll fix it for you
@slate tiger fixed https://paste.pythondiscord.com/EIZQ
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...
@slate tiger !
too easy
i'll make yet another diff
https://paste.pythondiscord.com/AAKA @lavish knoll
2 more difficulties
5.2 and 5.5 velocity params since idk how to make it harder anymorer
fixed one
https://paste.pythondiscord.com/CTEQ latest one so far
ok this is the final one
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
OH BET
nvm that contains my webhook id
for context this is working in cmd.exe. got custom fonts working in cmd thanks for nothing guys
my eyes are NOT enjoying this
2k so far
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
Have you read through the Panda3D manual?
I'm trying I'm trying looking on the online documentation gives me a headache problem is right now I'm trying to capture the mouse and release the mouse and it's not working
btw i do have a new version of the game
all it does is rename difficulties but i will send it over
this is my pb
not bad
i did change all the difficulty names because even U2 was pretty easy lol
is making a game in python hard?
ik you have to import pygame or something but is it hard?
yeah
how long does it take to learn the basics?
a couple months
might take less if you've done something else with python before
i mean ive been wearning web-dev for like 9 months now
i know some non-basic stuff
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
i mean like learning the basics
it will still take some time
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
looks like a bad remix of https://github.com/shaunwa/cbt-panda3d-minecraft/blob/main/main.py. globalClock is a global boject and set_hpr takes floats as parameters not int
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...
@vagrant saddle
im just folowing the tutorial
How can I apply procedural animation
oh.
ok you're 500 away
guess i should get started on the trophy then
although itll take me a few days to get to 5k
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
a nice feature is adding the stock asyncio console so launcher terminal still have python REPL running while game is running. pygame-ce on web uses that and more here https://glyph.twistedmatrix.com/2022/02/a-better-pygame-mainloop.html
it also allow to stay on main thread on android https://pmp-p.github.io/aiodemo_webview.mp4
holy cow this is cool
which is the only thread allowed to do graphics
@lavish knoll so close, yet so far.. (5k grandmaster choke)
f
i believe in you
also
here's a deal
what deal
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
i mean i can try
Hello , I need one developer write me PM
This is not a place for recruitement
!rule 9
im working on a pain in the ass adventure text game
go ahead
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
hey send me the full code pls
ts is a random game ive made with pygame
Click here to see this code in our pastebin.
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
you wana try it?
ye
sure
send me them
check dm
ok
vibed a like 2D rigging program, gonna upload to github when better, if anyone has use for this type of thing.
it's good but you can do the colors in pygame without do
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
BLUE = (0, 0, 255)
RED = (255, 0, 0)
GRAY = (100, 100, 100)
like screen.fill("red")
l l l lava
ch ch ch chicken
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)
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 ))```
@tired reef well I made a function which does the opposite
How do u create multiplayer?
@tired reef good stuff
I can show the code if u want
Now i think its not the one u r looking for
Is it okay?
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
I'm not going to use sprites just yet I want to get the bases down for characters etc
I'm generating random colors so when I'm doing networking at least I can tell players apart you know they can say I'm yellow or I'm blue or red or black etc
What i did for my game was when init I made a color var
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
I'm planning on making stages of infection each changing player to a specific class of infected in my game
For that i will either make a function for update in which u can change thw attributes for more than one thing or make a function to change only the color
Click here to see this code in our pastebin.
this was my player class for my game
and I made 4 instance for it for 4 diff players
How do I make my code use a terminal without visual studios?
Cmd.....
I ain't smart plus I'm new to the coding stuff
Like running the code independently
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))
Doesn't it have to be
While
ECT.
Or no because I think that what my code is
And what part it is messing up on?
nvrmind i litterally just fixed it
Ah nice
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
Whats the code lang?
Guesse = input('guesse: '):
Print( ' u lost')```
Lang? Language?
o ty
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
I recommend checking if X is End before asking for Y
yh , it depends
if im running a python code its
python bot.py
since im running a discord bot
bot = 'bob'
print(f"this is {death}")
while True:
user: str = input('you: ')
if user == ('death'):
print(f'{bot}: time to use the {death}')
try:
X = input("Enter first and last name:")
Y = input("State the cause of death: ")
print(f"{X} died by {Y}")
else:
print("game has end")
u can add more things yk
hey guys
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
thanks @unkempt lichen
np
add ifs
u only added two inputs that will never end
the code will just skip that
ohh ok now i get it
thanks thanks
i m new i just start learning
wait im gonna give u a better one rq
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}")```
@toxic talon btw when did u start python?
yesterday
i started five days ago lol
where are you from btw
australia
ohh great so from where youre learning Python?
I start 2 months ago and i learned from courses
paid courses?
or free ones?
i learn from free courses outside yt too
Paid
better ngl
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?
pyglet has pretty good gpu integration
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
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
I think opengl has some bindings in python but from experience trying to work with a straight metal graphics API is tedious and time consuming so maybe stick to libraries like pygame
you can mix pygame and panda3d
guys i need help with making my python game an apk
you can have some of all pointers here https://docs.python.org/3/using/android.html#using-android but the simplest is still actually to run your python code inside a webview
here's a test with mutiltouch for your android device https://pygame-web.github.io/showroom/pygame-scripts/org.pygame.touchpong.html
that depends on where you want to run, window cmd, unix terminals, web ...
if you want something that works everywhere check pygame-ce
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.
How did u make py file into the web version... is it free?
it is free, that's part of pygame community projects https://github.com/pygame-community/
The GitHub organization of "Pygame Community" - a community run by fans and devs of pygame: https://github.com/pygame-community/pygame-ce - Pygame Community
i would need help to develop those simple bouncing balls game if anyone knows what im talking abt?
Physics engine?
Thx
you know those viral bouncing ball tiktoks?
It will blow up the cps
Fps
I don't think so
It is if your pc is not good
Like 100 balls bouncing
Will make the FPS like 30
You can use imageio
To capture every frame and saves it as a video
Your pc should be good then
i mean im on a laptop and its a chill laptop rtx 3050 and i5 so its a normal laptop ig
I think it will be alright
Yeah that's good
yea yea it should work
To make the game u need to know about circle collition
i mean i know the basics but i dont want to only do these types of videos
And probably make the x,y value in a list
I have not used turtle but i think it will be harder on that
Thats
Hard
Honestly
How hard could it be
i mean for me i find it really hard this took me a lot of time
probably bc im a beginner lol
How many months?
Did u use dictionary in a list to store vals?
no couple days
but how do you even add effects like these
Cause a used dict in a list in a list to create one of my clone based games
That's a site
I think
It's a site not python
I don't think there are any inbuild funcs for it
ohh alr i was gonna say lol
But u could make glow yourself
if this got like 2m views i think mine should be good
Which lib are u using?
yea idk how to do that yet lol
Guys
i used a tutorial tho to help me
wait i found some templates
Is it pygame or python?
pygame
theres a sh ton of premade games like those but idk if they work yet
Did u use geek for geek tutorial
no i used like a LOT of tutorials for each parts of the game
It was very helpful when i started pygame
And python
alr yea im going to check it out on my future projects
Lol
is your pc alive ? ๐
Balls are too big ๐คฃ
Too small ๐คฃ
Yeah
how do you even amke a whole in the circle omd
Just make a half circle
And a smaller half circle
yea im not on that level yet lol i think im gonna watch another tutorial ig
GOOD LUCK
I found this in my lost realm of code
what did you find
@warped ravine
I did it
But it's so laggy
I tried add bounce sound
But I can't
Can i see thecode
It's gif fornow
Ofc
@wooden night
Can I complete it
And add a bounce sound
And then i will upload it to pastebin and give yu
Sure
i just came back oopsies
i have the code for that wait
hi
bc mine does like some musical thing or wtv
hi
I made it
With effects
And with saving a video
Technically it's not
It's a gif
like when it hits the border theres effects?
wait show me rq
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
Cool!
I bet that took too long
wdym like the circle game?
I did with node js
Look
It's good right?
With canvas
It's a discord bot btw
the python script itself yea its great but
i dont understand what is the discord bot doing or is going to do
?
It's a slash command
Generates a video
With config like
How many balls
Duration
Fps
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
Yep
Yeah
I will make a trail now
And some new modes like rotating hole
Multi circles with holes
The circle shrink every bounce
i didnt think of that that could make stuff a lot easier lol
yea i was gonna say that but it would take a bit more time
I will make command for every mode
I hope not
i mean you can make one command then js say " what type of circle " thing or wtv but yea i mean theres an infinity of options lol
That's cool too
Or a dropdown
A panel
i have 0 experience in gui for me that would take FOREVER
but if you have experience yea go for it
could make things easier and give a better experience
Gui is hard honestly
Canvas
I'm using canvas in nodejs
yea i have NO idea how to make a gui or anything abt it
im stupid nvm
what could cause that
wait how does the bot even record it i don't have enough knowledge yet for this ๐
No
It render it
In the background
And capture every frame
And then transform it with ffmpeg to a video
ohhhhhhh alright get it now thanks
Bacause
gif are made out of frames
i have really slow wifi one sec
Finallyy
@warped ravine
Done
It's not a gif btw
The bot captured 60 frames per second
Then rendered the video from it
yea thats rlly smooth holy thats good
theres so many variables that can be added this was smart ngl
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
wait it did?
i didnt realise
Lol me too I thought hit the edge
i mean its a small issue i think?
if you want some ideas of extra options to customise lmk i got a ton lol
Yeah
I got
.
And I will make so much modes
i didnt understand this
Like the tiktok
i know theres a way where you can js send it a mid file for the music you wanna put i think?
Story and the ball video
oh yea thats good too
for like the music behind it?
i never see stories on tiktok lol
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 ๐ญ
i saw somebody made a google drive where theres a lot of premade mazes and stuff like that but how do you even run them https://drive.google.com/drive/folders/1PbJLQwPqD8bAFmzx_gkTgllb7pDiV22C
how many balls do you have lol
when one escapes there are three others that spawn right?
i know nothing about rendering yet ๐ญ
I think the crash bc of the audio thing
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
how lol
I fixed it
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
that ball DIRECTLY disapeared lol
how much % does it use now
i have an idea
try to make it like two circle and everytime it hits the circles the gap between them becomes bigger until the ball passes threw
I think the rotating hole is better
VPS SERVER
NOT MINE
Bro
If you think at it
It's capturing every frame and transform it to a video
OHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
makes more sense now lol
I don't wanna run node js in my device
GL
Hmm.......
Bro
I made it
Finnaly
Even you can upload audio
Like stories
Lol
And modes
Code plz 
1 minute ill show you
What do u use to create, vscode
It render slowly sorry
Yeah
How do u run it
Na it ๐ฅ
I will upload it to GITHUB SOON
DW
Also make it more bouncy
Yeah ik
Ok
I just do velocity *= -0.65 for my games
It's good right?
But needs more tweaks
It's node js
And canvas
I'm building better version
The best things I can put any fps and it will work but takes longer to render
LMFAOOOO
I forgot the holesss
PERFECTION
Idk
Show me again
What
The link you send
I have no idea how i did that
I think you're hacked bud
Idk
Wanna try the bot
The irony
Which one
Ok
I don't know how
I have to go rn talk layet
have you gotten any further it's been six days
Done
Hit me up for the code!
The video background is auto
You can add a video background if you want
13K GRANDMASTER. I'M A FUCKING GOD.
@lavish knoll
kinda sad it wasnt on july 1 tho
HOLY SHIT
13,112.7
THE GOAT
alright it's like 1:50 am right now, i'll 3d model that in the morning
yo thats rlly good
Yes
Which game is it?
dx243's doodle jump game
Ok
Yeah
Where can i play it?
uhhh hold on
@slate tiger can you paste your copy of the game onto python discord pastebin
i think i lost the original
https://paste.pythondiscord.com/F24Q this is my copy
it's the 1.1.0 beta
also scrolling a bit up you could find https://paste.pythondiscord.com/2S3Q
which is the same
oh
ok either or
either one will work
https://music.youtube.com/playlist?list=PLOime-dD1tQlQxxC-zIzicoKhQWSCrG5n
here's the soundtrack btw
I need help... organizing my code
Because of my organization skills, there are a lot of bugs and optimization issues
Give me the source code
Ok
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
tbh the 200 lines part isnt really well it all depends on how its structured down
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
Great advicr
this is perfect
I'm surprised more people don't mention this as a quick tip during courses and stuff
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?
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
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
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
if he's in the united states he's allowed on discord, i live in the US and 13+ in my country can be on discord
i may be wrong, but i believe it is either one back tick (this: `)
before and after text
or three backticks, before and after text
example:
one backtick:
print:"hello"
three backticks
print:"Hello"
im not sure it's called that but i looked it up
anyone got an example of a game design document?
How do i write a backtick? I cant find it on my keyboard
usually altgr+7 here's one to copy : `
!code like so
it's below your esc key if you're on a computer, if you have a smaller keyboard (like 60% like me) it should be fn (function) + esc
Nope, if i do that it writes \