#game-development

1 messages ยท Page 102 of 1

dawn quiver
#

Anyone want to try out my pygame game?

noble mesa
#

um what

devout rover
#

Hey so initialising a list of mine in my player class just stops my code from running. When I comment out the line it runs but when i dont the whole game just stops. I am also not using the variable for anything at all. Any reason why this might be?

dawn quiver
#

Good courses to learn pygame

#

For free

devout rover
dawn quiver
#

send here

#

!code

frank fieldBOT
#

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.

devout rover
#
    def __init__(self, x, y, width, height, health, health_x, health_y, lives_x, lives_y, direction, chosen_char):
        ...
        self.chosen_char = chosen_char```
#

the self.chosen_char = chosen_char line just somehow stops the code

#
from _thread import start_new_thread
from game import Game
from player import Player
from characters import characters
import pickle

...

player1 = Player(400, 350, 48, 48, 10000, 100, 725, 100, 755, "RIGHT", characters[1])
player2 = Player(810, 350, 48, 48, 10000, 900, 725, 900, 755, "LEFT", characters[3])
players = [player1, player2]

dawn quiver
#

What error are you getting?

devout rover
dawn quiver
#

and are you using self.chosen_char anywhere else

devout rover
#

nope

#

ill send the error now

#
Traceback (most recent call last):
  File "C:/Users/Bakri/PycharmProjects/TechnicalSolution1/client.py", line 325, in <module>
    menu_screen()
  File "C:/Users/Bakri/PycharmProjects/TechnicalSolution1/client.py", line 277, in menu_screen
    main()
  File "C:/Users/Bakri/PycharmProjects/TechnicalSolution1/client.py", line 107, in main
    player.action = 0
AttributeError: 'NoneType' object has no attribute 'action'
#

this doesnt happen unless i write the line self.chosen_char = chosen_char

dawn quiver
#

is TechinalSolution1/client.py your file

devout rover
#

yep

dawn quiver
#

ok find that line number in the file and see whats wrong

devout rover
#

i did try but idk why i cant just initialise the list

dawn quiver
#

maybe its becuase you were working with a single player initially and now you are workinng with a list so you need to change parts of your code

#

ie player.action vs players[0].action

devout rover
#

i see

#

ill look into thank you

next estuary
hasty rover
#

I will do it anyway

quasi patrol
next estuary
#

Yeah

hasty rover
#

wow thats amazing

tacit surge
#

I made this pokemon legends arceus simulator

frank fieldBOT
#

Hey @tacit surge!

It looks like you tried to attach file type(s) that we do not allow (.exe, .dmg). 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.

#

Hey @tacit surge!

It looks like you tried to attach file type(s) that we do not allow (.dmg). 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.

tacit surge
#

for sum reason i cant send exe on discord

proper peak
#

because it may be potentially malicious, like this one can be, for that matter.

tacit surge
#

but its not

#

it's just pokemon game

#

but i see where u coming from

sullen wagon
#

@tacit surge hi, sorry, we do not allow sharing exes here
also don't try to circumvent our filters in the future

tacit surge
#

thanks for klarification

#

i didnt know

#

i will delete the message now

sullen wagon
#

you're free to share a link to a github repo

tacit surge
#

this is a good idea

#

thank u and sorry for sending illegal msg

#

i didnt mean to violate rulez

sinful lodge
shadow shadow
#

Any professional game developers dm me please

river crest
grim swallow
#

is it hard to code a game in python?

covert lagoon
#

Depends on the game, framework/engine, and your definition of hard

hasty parcel
minor heron
#

What framework did you use to make 3d games?

next estuary
#

I use numpy and pil a lot too

ornate dome
dawn quiver
#

does anyone know to convert a pygame file into exe

#

i have a code file and some folders with the audio, graphics, and font

exotic niche
#

pyinstaller

rain lantern
#

does anyone know how I can get the user input and make it

exotic niche
#

What?

rain lantern
#

Like getting the user input

exotic niche
#

input() func

rain lantern
#

Line 52 to 56

#

Not working

#

Plzz help me and fix this

#

I have been trying to fix this for weeks

proper plover
#

Use event.key not event.type

exotic niche
white vector
#

what colours does the classic gui for 2048 use?

waxen elbow
#

Is panda 3d a good engine

restive spindle
#

Does anyone know where i can obtain like a good asset creator? trying to make buttons like start exit, pause etc for my pygame but i suck at drawing. Unless there is a easy to use tool anyone knows of

livid pine
#

You'll be able to make low-poly shooters with it, there is a dummy guide for ursina for the most part it's pretty easy to learn and use

restive spindle
#

What's the simplest way to delay an event in pygame. When i kill an enemy, i want them to finish their animation before I remove them off screenhttps://stackoverflow.com/questions/47463646/how-to-delay-an-event-in-pygame-without-delaying-all-other-functions

woeful crag
#

iโ€™m guessing time.sleep() would work?

foggy python
simple owl
#

hi guys

#

does someone can help me ? im coding a tetris in pygame but i have some issues

sinful lodge
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.

foggy python
chrome copper
#

hey all making a text based game which is almost like a sandbox mix rpg don't know it tags yet. but anyways i want to add a ranger class but i cant figure out how make it so it can have range. i was thinking maybe +10 or something on Evasion chance but it doesnt really make sense due to if a creature has a close range attack it will never hit a player at a long range.

#

forgot to add "Any suggestions"

chrome copper
#

do you guys think a system were it a distance like 20 squares or something and say your on square 1 and the enemy is on square 20 and depending on the type of damage long or short range has modifiers which affect evasion would work. such as if your using a long range form of attack your modifier would be x 1 and unless 2 squares within for a short range attack the modifier is x 0

sinful lodge
foggy python
#

I stopped to do a bunch of other stuff

#

15 hours is less than 2 work days

dawn quiver
#

Hello @foggy python I just read a good article on AABB collision detection/response. They explained how to use continuous collision detection/response. This is where you check a frame ahead and position the boxes up against the other ones.

#

Just wonder what your thoughts are on AABB collision/response.

#

discrete or continuous?

foggy python
#

I haven't looked into collision methods much. The methods I've been using have been working fine.

#

I have a video on it

dawn quiver
#

I mean im probably gonna watch all your videos on programming.

foggy python
sinful lodge
dawn quiver
#

I was able to modify the code to allow the player to slide when colliding with walls or vertical edges. I used this articles pseudo code https://www.deengames.com/blog/2020/a-primer-on-aabb-collision-resolution.html Pretty cool concept and was explained well

dawn quiver
#

Im having to use raycast at the bottom of my player to tell if its on the floor. I do the same to the sides of the player to tell if its on a wall

dawn quiver
shell relic
#

Anyone here work with Roblox API?

foggy python
round obsidian
#

@foggy python Love your work - if you're interested here's a project of my own using Python and Pyglet (forgive me if I brought this to your attention before)

https://xtaloid.itch.io/xtaloid

itch.io

What happens when Conway's Life meets Robotron: 2084?

wild nova
#

what happened to pygame docs?

foggy python
#

they take down the site during major political events

radiant sage
foggy python
#

to make a statement

radiant sage
#

a statement of peace?

foggy python
#

presumably

#

they did it in 2020 too

radiant sage
#

what happened in 2020

#

fair enough though

sinful lodge
#

bruh pygame took down their site lmfao

#

there's an archive though

main blade
#

What's the logic behind online/LAN play in games? It uses websockets or what?

nimble pulsar
proper peak
lyric pawn
#

3D labyrinth game work in progress ๐Ÿ˜„

river crest
#

wait

#

ITS HIM

river crest
vocal topaz
sinful lodge
sinful lodge
lyric pawn
tranquil girder
#

looks cool

lyric pawn
#

thanks ๐Ÿ˜‰

sinful lodge
#

where did you start?

lyric pawn
#

I started by learning algorithmic development, then went onto 2d interfaces, and a little bit more each day towards 3D ๐Ÿ˜‰

#

There's a ton of tutorials with that engine, it supports 2d and 3d and has a really nice AAA rendering

#

You can DM me if you need any help

rough copper
#

What is the problem here?

sinful lodge
sinful lodge
#

app.run -> app.run()

tranquil girder
#

No, it's a bug with gamepads
If you have one plugged in, or even some other usb device, try unplugging it

limpid wadi
#

What's everyone developing ?

#

And I'd a question, how difficult is it to develop a RTS game ?

#

And how long did it take you to learn Python?

rough copper
sinful lodge
#

(oops i didn't know there was an error, i thought the code just didn't run, mb)

tranquil girder
#

RTS is probably of the more complicated genres to make imo

lyric pawn
dawn quiver
#

Discord

short tapir
#

btw what module would you suggest to make basic 2d games for a beginner?

dawn quiver
dawn quiver
sinful lodge
#

ursina is for 3d

short tapir
#

alright

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.

limpid wadi
fading orbit
#

guys

#

i need hrlp

#

help*

#

about a code

#

@help

dawn quiver
tranquil girder
fading orbit
#

guys sry i need help

#

emergency

#

its very urgent

dawn quiver
main blade
dawn quiver
#

What page

#

oh arcade has

dawn quiver
#

and its MIT license

main blade
wooden surge
#

um can anyone tell me how to add sounds to my game

little temple
#

Hello, everyone, I'm a new programmer from Canada, and I'm looking for other new programmers to be friends with motivating each other and just chill and have conversations with anyone is welcome and I am down to be friends with anyone!

A little about me - I am 17 years old from Canada in love with gaming and programming and anything that involves technology.

anyone is interested send me a message and let's talk!!

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.

dawn quiver
#

Hey @foggy python I would like to release my pygame game as a commercial product. Do you know what license i should use if any? Its going to be closed source with a few friends contributing.

foggy python
#

I don't use any license since the default is all rights reserved

dawn quiver
#

ah cool and pygames LGPL allows this since im not modifying the software and just using it

normal silo
#

(And idk if they want to work for free)

dawn quiver
#

or 50% of sales something like that

normal silo
#

This is not legal advice. I would make that agreement / company now, not later. Otherwise it can end in broken friendships and lawsuits (I have witnessed it before).

dawn quiver
#

Ok ill be carfeull who to add. Right now i just help python beginners. This was hypothetical as i dont see them really contributing.

#

But as soon as they are contributing i will make some agreement

normal silo
#

Free and open source is fine, but as once as things get commercial, you need to take it seriously.

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.

#

:incoming_envelope: :ok_hand: applied mute to @blissful pier until <t:1646264069:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

#

:incoming_envelope: :ok_hand: applied mute to @blissful pier until <t:1646264684:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

opaque forum
#

hey hey so for some context i was working on this basic game, i gave it some features and used if statments, sadly when i put "else" at the end for a final possibilty, the program prints 2 things at once. happens a lot

#

so i replaced if with elif

#
 
wizard_responses = ["uhh..", "that's a weird question..", "for sure!", "i don't know", "nope", "never, 0 chance", "maybe", "i'm not sure..", "yes!", "ofc!", "yeah i think so!", "probably..", "you should ask someone else!", "NO SHOT!", "i doubt it", "yes. 100%.", "without a doubt"]
 
 
 
if cmd == "/wizard":
 wizard_ask = input("ask me a question! ")
 #questions
if wizard_ask == "hi":
  print("[WIZARD]: o/")
 
 
elif wizard_ask == "how are you":
  print("[WIZARD]:i'm fine. Had some coffee this morning.")
 
elif wizard_ask == "you suck":
  print("[WIZARD]: i will cast a spell on you\r if you don't stop these insults! ")
 
elif wizard_ask == "i'm sad":
 print("[WIZARD]: if you're depressed, please,\r seek therapy. It would benifit you,\r or try talking to someone about it! :) ")
else:
 wizard = random.choice(wizard_responses)
 print("[WIZARD]:" + wizard)
 
  
#

now nothing gets printed

#

anyone know why? i'm rusty and i'm looking to get back into programming

spice moth
wanton lodge
opaque forum
#

cmd is way up

#

cmd is basically a veriable where u enter input/a command

#

and it gives a response

#

for the type of command

#

in this case

#

it's /wizard

opaque forum
dawn quiver
#

Have you debuged it with print statements to see if certain code executes?

opaque forum
#

i'm not sure

#

would u want to try and run it?

frank fieldBOT
#

Hey @opaque forum!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

opaque forum
#

this is the entire project, looking back, it doesn't seem that big after all lol

#

it has some basic functions like /discord, /game, ect

#

the only current game available is rock paper scissors, and in that too, the if and else statements bug and print twice

#

@dawn quiver

dawn quiver
#

This is what i mean by print statement debugging. Have you tried to do this to find the source of the problem?

if cmd == "/wizard":
  print("CMD equals /wizard")
opaque forum
#

oh

#

nope, i have not

dawn quiver
#

You shouled try

opaque forum
#

alright. I'll get back to you

dawn quiver
#

do it in several conditions

#

and make sure you test them correctly

unreal river
#

do the cmd variable exist?

dawn quiver
#

Its kinda hard to help when you dump the source code on me without debugging it yourself first.

opaque forum
opaque forum
#

i sent the source

#

u can check it out

opaque forum
unreal river
#

ye i saw it

dawn quiver
#

your indentation is all messed up

#

are you getting an error after entering /wizard

opaque forum
opaque forum
#

when i ask the wizard something which i speficied, for example "how are you"

#

it replies no problem

#

but

unreal river
#

it's kinda like a 1 time use like if you run it once you can only do 1 command

opaque forum
#

you got to re-run

#

which i find annoying but i don't know how to work my way around it

unreal river
#

you can put it in a while loop then it loops until you quit with the command "quit"

opaque forum
#

also @dawn quiver it's fixed

#

i replaced the ifs with elif

#

and now it works fine

dawn quiver
#

idk when i copied from paste site it has a bunch of wierd indetation. Python doesnt complain but it will when that variable isnt defined

opaque forum
#

and you have to rerun

#

pycharm also works shrug

opaque forum
unreal river
#

then add a quit command

hazy bridge
opaque forum
#

yep

#

let me try

unreal river
#
running = True
while running:
    cmd = input(">> enter a command: ")
    
    # The commands here
opaque forum
#

@unreal river

#

it doesn't register other commands

#

uh nvm

#

fixed it

#

it was the indents

dawn quiver
#

id start from scratch and use a while loop

opaque forum
#

yep i made it organized

#

sorta)

#

it all works fine in a loop now

#

just needed to add a few spaces

#

i'm usually working on pycharm so it guides me where to write what

#

i'm writing this online because my computer (main one) is down

#

and i'm too lazy to install pycharm

sinful lodge
dawn quiver
#

yeah sloppy code lol

#

lol

sinful lodge
#

wall_y maybe

#

just sounds so weird when you pronounce it in your head

dawn quiver
#

nah i just need another name

#

i ran out of names

sinful lodge
#

wallpos_y

dawn quiver
#

nope not what you think

sinful lodge
#

wall y sounds ok thi

dawn quiver
#

its just a flag to say its collided with a wall

sinful lodge
#

oh

dawn quiver
#

but wall also means something else

sinful lodge
#

hmm

#

collided then ๐Ÿ˜†

dawn quiver
#

ill fix it

sinful lodge
#

oh you're making some physics tuing?

#

thing

#

cool

dawn quiver
#

yeah its really cool to play around with

#

right now im optimizing tilemap collision

#

to only check the tiles around the player

sinful lodge
#

awesome

#

probably can do some rounding to do that

#

but aabb shouldnt be that performance intensive

#

so you can afford to do it on every entity, unless the number of entities is the bottleneck ig

dawn quiver
#

yeah but its giving me trouble

#

right now im checking only tiles closest to it in a ninepatch around the player

#

meh

#

i gotta sort out the code first

#

It can be tough becuase this kind of program cant be tested like other programs. You have to think about it logically and really know what your doing or else it goes through corners or something

sinful lodge
#

yeah

dawn quiver
#

Like i just went through a corner while testing. I set up a debug case that positions the player at a corner with velovity 1, 1 and nothing doent clip through

#

perhaps there is a better way

#

its really hard to clip through corners but its possible

subtle narwhal
#

Anyone knows a good library for simple 2D games

wooden surge
#

um please help me idk how to import sound in my game

wooden surge
subtle narwhal
dawn quiver
# subtle narwhal ok thx

pyglet and arcade. arcade is a wrapper around pyglet so it may be easier to use then using pyglet directly

somber nacelle
#

ok

dawn quiver
#

hey i am new to python game dev
can i get some resources

wide glacier
#

hi i am starting game dev so can anybody tell the best programming language for 3d game dev

spice moth
daring yacht
surreal marsh
#

Is pygame the best framework for games?

dawn quiver
#

not in general

surreal marsh
#

I heard that Pygame is slow

dawn quiver
autumn hazel
mighty plank
#

huhuhuhu help

#

i had a problem with the floor collision

#

but it only happens when there are 2+ objects in the list

#

so i tried making 2 collision code for each object

#

then nothing works

#

it didnt work

#

it only works if its one floor

autumn orbit
heavy pond
#

anyone know a library like pygame but faster?

fast basalt
#

I was trying to convert a game made with python to an exe using auto py to exe but when I try to run the file it gives the error expected str, bytes or os.PathLike object, not BytesIO in the terminal. I am unable to get the error in the python file. How do I fix this?

fading orbit
#

@marble parcel

#

sir

#

could you add me please?

#

sir

#

i need to ask you smthing

#

any admins/leaders can anyone add me and help please?

hidden eagle
sinful lodge
ionic trench
#

hi guys

tame patio
fading orbit
#

Frende

#

Friend

paper zenith
#

!mute 949256710713909258

frank fieldBOT
#

:incoming_envelope: :ok_hand: applied mute to @ionic trench until <t:1646438427:f> (59 minutes and 59 seconds).

daring yacht
#

Anyone here good with pytesseract and pyautogui dm me im tryna create a bot for something

somber nacelle
#

a heard \

heavy pond
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.

wide fable
#

Hey

dawn quiver
sinful lodge
dawn quiver
#

You know what minkowski sum is?

sinful lodge
#

nope

dawn quiver
#

I can test a minkowski sum of the player and the tile against a single point for collision

#

its where you take a shape and walk it around the perimeter of another shape

sinful lodge
#

oh

#

polygon collision?

dawn quiver
#

just rect rect colision for now

sinful lodge
#

you can make it polygon collision with this method?

dawn quiver
#

the point is to keep the minkowski sum or shape on hand then test it against a point

#

which is much simpler then polygon vs polygon

#

but it achieves polygon vs polygon collision detection

sinful lodge
#

ah

#

so the point of this...

#

is to achieve polygon-polygon collision?

dawn quiver
#

Well for my case instead of creating rects i can just get the world coord of the tile

#

creating rects is not that expesnize but minkowski sum is cool

#

Its not an expensive operation for rects so im using it

#

but for more complex shapes it is

sinful lodge
#

would you use this in the future for polygons?

dawn quiver
#

im not sure what its good uses are. I just know that i can use it now and it seems right. 1. I dont store the rects in the tile so i have to calculate the wrold position. Instead of making a rect i can just use that point against a bigger offseted rect for the player.

#

Its a small optimization

#

Im sure there are better uses

#

it would not be good if i had to calculate the minkowski sum agaisnt the enemys becuase their hitboxes vary. I just do this for the tiles

#

so im doing aabb vs aabb for the enemies

#

Its just so lil complexity that i wanted to add it in

pine plinth
# dawn quiver

Area of new green space = ฯ€r^2 + P*r [P - perimeter of initial polygon] for any initial black polygon
Isnt it?

mighty plank
#

help

#

i re made my floor collision

#

it doesnt have errors but isnt working

cerulean sage
#

I'm trying to remove the transparent space of the image, but somehow I don't get it. Can someone tell me please why this doesn't work:

HEART_IMAGE = pygame.transform.scale(pygame.image.load(
    os.path.join('Assets', 'Heart.png')), (WIDTH, HEIGHT)).convert_alpha()
HEART = pygame.transform.scale(HEART_IMAGE, (50, 40))
gleaming marten
#

I'm trying to get pyxel working in python, but it just isn't. Right now I have the most simple code in it:
`import pyxel

class App:
def init(self):
pyxel.init(160, 120, title="Hello Pyxel")
pyxel.image(0).load(0, 0, "assets/pyxel_logo_38x16.png")
pyxel.run(self.update, self.draw)

def update(self):
    if pyxel.btnp(pyxel.KEY_Q):
        pyxel.quit()

def draw(self):
    pyxel.cls(0)
    pyxel.text(55, 41, "Hello, Pyxel!", pyxel.frame_count % 16)
    pyxel.blt(61, 66, 0, 0, 0, 38, 16)

App()`

#

Yet it still gives me an error message

grand apex
#

Anybody got any good ideas for text based games? Preferably arcade style games, so not a text based rpg

gleaming marten
#

Ok someone please help. I just want to open the image editor in pyxel but it doesn't work

#

pls help

normal silo
#

It's pretty common for collision detection in games/physics engines these days. Works in N dimensions.

#

Another video on it:

#

In 1988, three engineers came together and developed one of the most clever solutions to the problem of detecting when two complex objects collide. Their solution, the Gilbert Johnson Keerthi (GJK) algorithm, named after the authors, made an incredible impact in the fields of robotics, control, and computer graphics. This video is about understa...

โ–ถ Play video
dawn quiver
silver tinsel
#

how is the job market for game devs? PikaThink

sinful lodge
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.

dawn quiver
#

The seocnd paste is a function that gets the shortest collision time and the normals of the surfaces collided

#

between a point and a rect. Im using minkowski sum.

#

oops wrong place

nova steppe
sour cobalt
#

Yooo

#

I

#

got

#

boss recently finish in my bullethell

#

GAME DOWNLOAD: https://soccerstar118.itch.io/particle-getaway

I decided to post another full game vid since its been a week since last one

If I'm being generous with what is an attack, I have 16 to 18 attacks done for the bossfight (square). I definetely be adding more than 20...

(there was an unavoidable damage taken during transition betw...

โ–ถ Play video
sinful lodge
sour cobalt
#

Ye python

#

I'm using the pygame library

#

But I'm not really using any of the inbuilts

#

Outside of the drawing and player input and the clock.tick

#

doing stuff like collision and projectile objects manually since I thought itd be fun

#

u mean the square line thingy or that gradient line thingy

#

trying to make every attack I make have some unique factor / different pattern

sinful lodge
#

why is there that weird spraying that disappears quickly though? is that a glitch

sour cobalt
#

uh

#

wuts the timespamp

sinful lodge
#

hold on

#

27 seconds in

#

before the purple attack

#

is it intentional? looks like a glitch lol

sour cobalt
#

Nah that's intentional

#

Supposed to be a telegraph for where the attack is

#

*doesn't do damage

#

I had a different telegraph (a circle expanding) but then added that one in

#

And thought it looked kinda funny but never changed it

#

should I make it go the opposite direction of the particles going into the center of the next attack instead?

#

Btw

#

Do u think I should add more attacks

#

In the form of adding to the current bossfight (square)

#

To the section before the bossfight

#

Or start on a new 'level' after the square, with a corresponding bossfight

merry kernel
#

I'm using pydroid to make game android but my problem is why error in pydroid but running in desktop. is there tips or link error in pydroid? thank you

#

did I correct enter this channel to ask the question above. sorry, this is my first join discord

sour cobalt
#

Although this is probably still fine since the getting help isn't game development speciric

sinful lodge
#

you could make it fade out perhaps

sinful lodge
sinful lodge
sour cobalt
#

so adding more to square

sinful lodge
#

btw try making the spawnrate of the bullets something crazy and see how many bullets it takes to lag down the game

sour cobalt
#

I have

#

I removed the slow downer which brings fps to 60 and game went into hyperspeed

#

aside from like 1 attack

dawn quiver
sour cobalt
#

:o

sour cobalt
#

kk I replaced it

#

with smthing I hope looks more like a warning of an attack

sinful lodge
sour cobalt
#

Ty

#

(ไบบ โ€ขอˆแด—โ€ขอˆ)

nimble pulsar
#

fr

burnt ingot
#

have you guys used the ursina engine before?

hasty parcel
#

i kind of

#

but prefer making 2d games

burnt ingot
#

i'm trying to make it to the camera tilts 45 degreese when you push q or e,, kind of like in r6

#

any idea how to do that

hasty parcel
#

no

#

stackoverflow it

tranquil girder
hazy cliff
#

Hey guys, kinda weird mix, but are there any beginner guitar players here? Because lately I've been developing a music theory app for guitar, and some opinions would matter the world for me :D I plan on adding chords, scales, as well as 4 string necks, but ablut the concept :D

hasty parcel
#

Cool I wanna know how it works so maybe I can make one for piano

unique skiff
#

How do i create a graphical environment? I've seen packages such as pygame, but I would like to make an environment using a different method (i found pygame a bit confusing, and it didn't work for me).

mighty plank
#

wut

#

a gui?

burnt ingot
#

anybody else doing any late night programming?

burnt ingot
unique skiff
burnt ingot
#

its actually what i'm using rn lol

burnt ingot
wanton lodge
#

any sites recommendation for free music and stuff

sour cobalt
#

Idk why

burnt ingot
wanton lodge
#

๐Ÿ˜ฉ

burnt ingot
#

wdym, like you don't know what to google?

#

search "royallty free music"

#

any body know how to place a cube where you clicked with ursina?

sinful lodge
burnt ingot
#

thank you

#

what is the create function in ursina called again

sinful lodge
#

if you want mouse.world_point to land on something youd have to give that entity a collider

burnt ingot
#

i'm trying to make a shitty minecraft, so how do i make sure the cubes are all square with one another? just set the rotation to (0, 0, 0)

sinful lodge
sinful lodge
burnt ingot
sinful lodge
#

you can try that yes

#

but if youre not actually clicking on any entity it would spawn some far ass place away

#

qnyway i hope someone else can help u if u need further help, gtg rn

burnt ingot
#

ok

#

@me if yall can help me with ursina engine bs

wanton lodge
#

if i want those I already googled them

#

answer anything besides google just helps (even not answering)

burnt ingot
#

make your own, download Magix music maker and make your music there and all your sound effects. its fun and much more rewarding

#

this way you make sure you get what you want

wanton lodge
#

answers like that next time instead of google pls, thx

covert lagoon
#

Magix maker im assuming

#

Iโ€™ve heard Bosca Ceoil can be good

frigid flume
#

Hi
I have a question
Is Unity3d and Unity 5 different? If yes, What is the different?

tranquil girder
#

no, Unity 5 is version 5 of Unity3D

#

After that they changed to using the year as version number

frigid flume
#

How many mb it takes to download unity 5 editor

tranquil girder
#

You should probably use a newer version, like Unity 2022, not Unity 5

frigid flume
#

Ok so how many mb it takes to download Unity 2022?

#

editor

sour cobalt
#

Since he did say people could use his music as long as it's credited

#

well if my game suddenly gets taken down I guess I'll know why though

wanton lodge
#

thanks!

sour cobalt
#

lol

wanton lodge
#

will check the licensing if what he tells is true

#

hm

sour cobalt
#

Although if you're charging money for your game

#

He did say not to use his music for that

#

So yeah I guess don't use his music if you want ๐Ÿ’ฐ

wanton lodge
#

thanks!

sour cobalt
#

np

#

I hold no legal responsibility if you end up getting a content takedown warning

#

luul

wanton lodge
#

lmfao

true escarp
#

Hello anyone using ursina networking library?

thorny ravine
#

hi i have movement script in godot

#

extends KinematicBody2D

export var GRAVITY = 10;
export var WALK_SPEED = 200;
export var JUMP_FORCE = 10;
var attack = false;

var velocity = Vector2()
var screen_size

func _ready():
screen_size = get_viewport_rect().size

func _physics_process(delta):

if is_on_floor() == false:
    velocity.y += GRAVITY
    if velocity.y < -GRAVITY:
        $AnimationPlayer.play("jump")
    
    if velocity.y > GRAVITY:
        $AnimationPlayer.play("fall")

if Input.is_action_pressed("attack"):
    $AnimationPlayer.play("attack");
    attack = true;


velocity.y += delta * GRAVITY

if Input.is_action_pressed("ui_left"):
    velocity.x = -WALK_SPEED
    $Sprite.flip_h = true
    if is_on_floor():
        $AnimationPlayer.play("run")
    

elif Input.is_action_pressed("ui_right"):
    velocity.x = WALK_SPEED
    $Sprite.flip_h = false
    if is_on_floor():
        $AnimationPlayer.play("run")



else:
    velocity.x=0
    if is_on_floor():
        $CPUParticles2D.emitting = false;
        $AnimationPlayer.play("idi");
    
    
    # velocity.x = 0
    # smoothen the stop
    velocity.x = lerp(velocity.x, 0, 0.1)

if Input.is_action_pressed("ui_up") and is_on_floor():
    velocity.y = -JUMP_FORCE
    if is_on_floor() == false:
        velocity.y += GRAVITY
    


    
    
velocity = move_and_slide(velocity, Vector2.UP)

# prevent player going out of screen

func _on_hit_area_entered(area):
pass # Replace with function body.

lost hound
random roost
#

How do I make a game that can be used on a phone?

sinful lodge
heavy pond
#

Python is not really good for mobile development. Android uses Java and iOS has Swift

frigid jewel
#

You can use kivy with python for android.

#

But Unity & C# is probably a better choice for mobile

wicked raptor
#

I would like to make a 2d UI game in python, I have made a few games with just terminal inputs but I would like to make something more, where should I start? also should I use pygame or ursina?

dawn quiver
wicked raptor
sour cobalt
#

oh he said download I thought he wanted the documentation im stupid ๐Ÿคฆโ€โ™‚๏ธ

wicked raptor
sour cobalt
#

Google 'how to install pygame in pycharm '

#

you (probably) will have to re do this step for every new project u make

dawn quiver
#

learn the basics first

feral plaza
dawn quiver
#

wtf

feral plaza
#

nah imo that wasnt the best way to talk to him

#

teach him about pip install instead

feral plaza
tranquil girder
#

It's not the basics of python though, it's the basics of pycharm, since it has it's own way to install modules

feral plaza
#

maybe he just never used pip install and is trying to learn, therefore he should have been nicer to him imo

sinful lodge
#

๐Ÿ˜‚

feral plaza
#

U know yourself u aint got no friends so just stop trynna be funny

#

No one is laughing

sinful lodge
#

dude i am incredibly heartbroken rn, with all of my friends ๐Ÿ˜”๐Ÿ˜”

potent ice
#

Let's spend our energy on something that actually matters ๐Ÿ˜‰

feral plaza
#

But imma stop now

#

U donโ€™t have anyone else to talk to so ur enjoying this

dawn quiver
#

hi

#

My code works in open source mode
But when I convert to exe, it gives me this error
Because I use pyinjector
How can I solve this problem and convert it to exe?

hushed haven
#

try this

#

--onefile -w (your file name)

dawn quiver
wanton lodge
#

pyinjector

#

sus

#

:/

dawn quiver
wanton lodge
#

idk, i dont help with suspicious projects

#

:/

#

cheat and inject and stuff :/

dawn quiver
#

Ok

sour cobalt
#

and Ive just been learning more Abt classes and other python stuff while coding my game

wicked raptor
wicked raptor
sour cobalt
#

lol I was also so confused

#

Since I never use command prompt ๐Ÿ˜ณ

dawn quiver
#

Its still basics

#

But fair enougj

dawn quiver
#

How to inject dll with pymem

sour cobalt
wanton lodge
frank fieldBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

wanton lodge
#

:/

#

and look at the channel name

#

it doesn't match

sour cobalt
#

oof I meant

dawn quiver
#

]

sour cobalt
#

I learned Python through Codenation

dawn quiver
#

Codenation?

sour cobalt
#

And then did

#

Python for usaco

#

also usaco silver is kinda painful ;_;

dawn quiver
#

oh neet

#

No idea but sounds it

sour cobalt
#

it's like Olympiad but for comp sci

#

And silver level is the level idiots lazy people like me get tood

#

gold level is the actually meaningful one

#

๐Ÿ˜”

dawn quiver
distant sparrow
#

Can pymunk be used with pygame zero

chrome copper
#

Hey, would it be possible to use dicts to assign how much damage a weapon does?

Example:

randomdict = {
  "Wooden Sword": 2,
  "Iron Sword": 5,
}

and have it so if they have the Wooden Sword equipped and use it it does 2 damage the opponent.

#

and if works with that it should with like healing potions, like magic spells, or skills?

round obsidian
#

@chrome copper yes, you can do that

#

damage = randomdict["Wooden Sword"]

#

or

weapon = "Wooden Sword"
damage = randomdict[weapon]
chrome copper
#

sweet it this would work for using items for healing or mana regeneration im assuming

round obsidian
#

anything you like

chrome copper
#

question. so the Wooden sword would do melee damage and an Magic Weapon would do magic damage how would you make it so it does that?

sour cobalt
#

Wait

#

Should i be using dicts over classes

#

;_;

chrome copper
#

ik that feeling. i was using varibles like Melee damage and had it so when you equipped it, it adds to it like + 2. and when you removed it it does - 2

#

it was a pain

brazen tinsel
#

script:

import pygame
import os

WIDTH, HEIGHT = 900, 650
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("E LAND")

RANDOM_COLOR = (200, 200, 200)
FPS = 60
BIRD_IMAGE = pygame.image.load(os.path.join("assets", "bird.png"))

def drawing():
    WIN.fill(RANDOM_COLOR)
    WIN.blit(BIRD_IMAGE(200, 200))
    pygame.display.update()

def main():
    clock = pygame.time.Clock()
    run = True
    while run:
        clock.tick(FPS)
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                run = False

        drawing()
    
    pygame.quit()

if __name__ == "__main__":
    main()

error:

#

I was just trying to import the image but then it didn't worked out

round obsidian
#
weapons = {
"Wooden Sword": {
  "magic": None,
  "melee": 5
},
"Magic Sword": {
  "magic": 3,
  "melee": 6
}
}
lethal bramble
#

Has anyone here used machine learning to test games?

hazy dragon
#

No I just learned how to use tkinter correctly

last tree
#

i know how to code basics and idk how can i code stuff in games

#

can someone help me understand it

burnt ingot
#

what engine are you using

#

:ahahaha

#

@last tree what language are you using or software enige, for example i use ursina which is a panda 3d build off

#

which if you wanna make a low poly game then i recomend ursin a but its hard to learn

last tree
#

i use pycharm

#

idk

#

oh

#

unity i guess

#

i just want to make the code

#

i want to make little projects for people

burnt ingot
#

i get it, i make them for friends and family too

#

like i'm trying to code a fre version of mine crasft for my brother and his friends so they can play privatley

last tree
#

nice

burnt ingot
#

deffinatlly look up so tutorials, thats what i did

last tree
#

im trying now to make a discord bot with visual studio c#

#

thx, i will

burnt ingot
#

then why use pycharm....

#

that makes no scence lol

last tree
#

im trying to learn python too

#

lol ik

#

i just wanted to learn python and i want to know how people make projects for games

#

ik c#..

heavy pond
#

if you want to use unity you can look at this youtuber named Brackeys, he codes in C# with Unity

hollow jackal
#

is python good 4 game development

#

like if I wanted to make a game like elden ri g

#

is python the way to go

mighty plank
#

helppppp

#

my floor collision works, i mean it detects collision

#

but it doesnt stop moving

round obsidian
trail stream
#

Hiwcani install pygame

unreal river
chrome copper
#

Hey, how do I make it so someone can't mess with their save files and the code of the game?

tranquil girder
#

Only way would be to run part of the game on a server. You can obfuscate the code and save files to make it harder, but'll still be possible

chrome copper
#

great ok

#

what about Encryption

tranquil girder
#

if you encrypt the game files they can't run it

#

just save the game files as pyc and the save files in binary or something

dawn quiver
#

run it in flask

tranquil girder
#

if it's a single player game and not an mmo or something you should probably stop caring about making your game impossible to mess with

dawn quiver
#

u can just compile them right?

#

pygame is just sdl2

wanton lodge
dawn quiver
#

Pirating isn't ok, or safe.

chrome copper
#

well end game it will be

#

that is why im worrying

sinful lodge
dawn quiver
#

lol

#

compile python

#

what did u think i missed out on 1st year comp sci

wanton lodge
dawn quiver
#

i meant like use a app u can make into .exe

chrome copper
#

ok ill make on on my home laptop. i just dont want it to shut down and not allow people to save nor load. i guess i can fix that with temp files.

wanton lodge
#

u can also use a vps :P

chrome copper
#

what an vps?

wanton lodge
#

like a server thing

dawn quiver
#

virtual private server
?

wanton lodge
#

you can use heroku, but do note that it might change all your code logic

#

as it doesn't support sockets

#

might need to use websocket

#

idk any other vps, maybe repl.it but I haven't used it

chrome copper
#

ok

#

repl.it you need subscription to make it so your code is private

#

though im fine with self hosting it should be fine. ill just have to figure this out when i add multiplayer

#

though it would prob be smart to do it now cause it could change alot

dawn quiver
#

just use flask

#

just use flask with authentication or something and save to a db right ?

chrome copper
#

ill look into it

fleet adder
#

guys have u guys ever made app that solve quadratic equation?

covert lagoon
burnt ingot
#

what are you guys working on?

#

im just bored tbh

trail stream
#

@unreal river pip is not defined

wanton lodge
#

and u don't type pip in the python shell that looks like >>>

#

u type in stuff like cmd prompt

burnt ingot
#

does anybody know how to make my cude only extrude in one direction

#

i wanted it to move 10 blocks in one direction... not 5.5 blocks in each direction

tranquil girder
mighty plank
#

how do i stop a character when it hits a floor

#

cause mine just doesnt work

wooden surge
mighty plank
#

lol finaly someone answers my pleads for help here lmao

#

hahahah

radiant goblet
crisp junco
radiant goblet
#

ohh ok

loud holly
#

Hello there !

astral burrow
#

hiya folks, my name is capps.
I want to make my own game using python game language.
Is there someone who can help?
[I can VC if nessecery]

radiant sage
#

we dont write code for you, but we assist with errors/problems and logic help you might require

steep bolt
#

Not my first coding project being a sudoku .......

#

in 3 different languages.......

sinful lodge
heavy pond
unkempt nacelle
#

can anyone help me make a dynamic solution to this problem? as you can see, the right rectangle has less distance between the right side of the screen and the rectangle than the left rectangle has between the it and the left side of the screen, but they should both have the same amount of pixels distance from both sides of the screen

normal silo
unkempt nacelle
#

ty it works

snow hill
rugged ridge
#

hey i am new

sour cobalt
#

no.

rugged ridge
#

ok

autumn lake
#

hi new

lunar venture
#

From my own experience, I can confidently say it is fast enough

#

But I used regular sockets. I don't see why you need websockets in game development

normal silo
#

Competitive games like CSGO send like 120+ per second depending on the server.

dawn quiver
#

how im figuring out raycasts

grand apex
dawn quiver
#

Hi, I am pretty new in PyGame

#

So I had some queries

#

I want to make a simple simulation through pyGame where I could make simple Matchstrick figures to do simple motion actions like walk, run etc...

#

something like this ...

#

using PyGame

#

is it possible?

#

I want to make the matchstick figure in the right side using PyGame

#

and want to do simple Human like stuffs

golden crypt
frozen knoll
raw shadow
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.

silk sandal
#

Pygame is not really suited for 3d stuff

meager plover
sour cobalt
#

yoo

#

i made a fully randomized bullethell game

#

:)

#

;_;

#

only took 50 lines of code to add the randomized attack patterns

#

LMAO

#

and a decent amnt of that was just initial variable declarations

#

oh hey the python logo changed

dawn quiver
dawn quiver
#

just googled it....

raw shadow
#

you're better off using javascript

#

there are multiple libraries that exist that tie in to make exactly what you're wanting

#

and they can do it through cdn and allow you to host it online

dawn quiver
#

Like Python --> JS

#

somewhat like that?

raw shadow
#

some what

#

but not at all at the same time

dawn quiver
#

the thing is ... I want a live simualtion of them ...

raw shadow
#

but if you know python you shouldnt have a issue with javascript

dawn quiver
#

wait I am showing one thing ...

raw shadow
#

but if you do this in pygame, you're going to need to need to design a 3d perspective camera, that simulates a 3d space with orthogonal flattening of a 3d space

#

if you want a 2d straight plane stick figure thats easy ofc

dawn quiver
#

This is episode #20 of the video series "Game Futurology" covering the paper "XNect: Real-time Multi-Person 3D Motion Capture with a Single RGB Camera" by Dushyant Mehta, Oleksandr Sotnychenko, Franziska Mueller, Weipeng Xu, Mohamed Elgharib, Pascal Fua, Hans-Peter Seidel, Helge Rhodin, Gerard Pons-Moll and Christian Theobalt.
PDF: https://arxiv...

โ–ถ Play video
#

somwhat like this .. I want ...

dawn quiver
#

but yeah for now lets start with 2d only

raw shadow
#

you can use that to get started

dawn quiver
#

wow... I searched the whole internet... still did not got that

#

lol

raw shadow
#

takes time to learn how to google for exactly what you need

dawn quiver
raw shadow
#

no

#

you just need to be consise

dawn quiver
#

just kiddin ...

#

in that case ...

raw shadow
#

it works as a webcrawler, what ever you request, they offer

dawn quiver
#

but yeahh lemme check that out

raw shadow
#

lol i wasnt judging you

dawn quiver
#

yeah I know .. chill

raw shadow
#

just informing, cos i think nlp is one of many technologies used when you press that search button

raw shadow
#

pretty good library

#

hope to use it one day for a funny chatbot

dawn quiver
#

lol

heavy pond
#

you can look up how to draw a square in your library of choice's documentation. and while the mouse button is held down change the top right position of the square respectively.

raw shadow
#

in python, a rect has a multitude of coordinate variables that come with the internal class

#

you're going to want to research into perspective and orthogonal cameras

heavy pond
#

wdym by "real world" coordinates?

topaz epoch
#

import pygame

initialize the pygame

pygame.init()

create the screen

screen = pygame.display.set_mode((800, 600))

title and icon

pygame.display.set_caption("space invader")
icon = pygame.image.load("player_img.png")
pygame.display.set_icon(icon)

player

playerimg = pygame.image.load("player_img.png")
playerX = 370
playerY = 480
playerX_change = 0

def player(x, y):
screen.blit(playerimg, (x, y))

game loop

running = True
while running:
# rgb - red , blue , green
screen.fill((0, 0, 100))

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

        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_LEFT:
                playerX_change = -0.1
            if event.key == pygame.K_RIGHT:
                playerX_change = 0.1
    if event.type == pygame.KEYUP:
        if event.key == pygame.K_LEFT or pygame.K_RIGHT:
            playerX_change = 0

playerX += playerX_change
player(playerX, playerY)
pygame.display.update()
#

My player ain't moving

#

Help!

smoky thunder
topaz epoch
#
import pygame

# initialize the pygame
pygame.init()

# create the screen
screen = pygame.display.set_mode((800, 600))

# title and icon
pygame.display.set_caption("space invader")
icon = pygame.image.load("player_img.png")
pygame.display.set_icon(icon)

# player
playerimg = pygame.image.load("player_img.png")
playerX = 370
playerY = 480
playerX_change = 0

def player(x, y):
    screen.blit(playerimg, (x, y))

# game loop
running = True
while running:
    # rgb - red , blue , green
    screen.fill((0, 0, 100))

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

            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_LEFT:
                    playerX_change = -0.1
                if event.key == pygame.K_RIGHT:
                    playerX_change = 0.1
        if event.type == pygame.KEYUP:
            if event.key == pygame.K_LEFT or pygame.K_RIGHT:
                playerX_change = 0

    playerX += playerX_change
    player(playerX, playerY)
    pygame.display.update()
#

Here

topaz epoch
#

It has only 1 indent

smoky thunder
topaz epoch
#

I get you mate the "if event.type == pygame.KEYDOWN"

smoky thunder
topaz epoch
#

From there onwards it should be under the for poop

smoky thunder
#

That's how it supposed to look. Sorry I didn't get how this paste thing works.

topaz epoch
#

Okay so the problem is the indent only right ?

smoky thunder
#

Probably.

topaz epoch
#

This game development chat is quite dead

#

Looks like there are no game developers on this server

foggy patrol
#

@ashen glade please don't advertise your server here

ashen glade
#

ok

#

is there anywhere i can advertise or not?

foggy patrol
ashen glade
#

ok

frank fieldBOT
#

Hey @static apex!

It looks like you tried to attach file type(s) that we do not allow (.avi). 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.

static apex
#

https://paste.pythondiscord.com/ravakatupe.py .Hello! I'm trying to use the "dirty rects" principle in my pygame project and I'm running into some strange behavior. Here is the code for a simple example, in which a circle + square is drawn at the cursor location. When using the pygame.display.update() function with no arguments - the whole screen is updated and everything looks good, when using pygame.display.update() with arguments - only parts of the screen are updated and I see - full_screen_capture.mp4 (OBS recording with capture of everything screen). For some reason, when moving sharply, the cursor update area is truncated. However, when capturing only the window with the game (window_capture.mp4) in OBS, this problem disappears. When using pygame.sprite.DirtySprite and others, this problem persists. Perhaps someone faced this problem or sees my mistake?

polar flax
#

hey, so i wanna make a game. where would i get started?

round obsidian
#

@polar flax if you don't already know programming, learn the basics

polar flax
#

i do

#

at least for python

#

i know the basics

#

probably a bit more than that

#

ive made many projects in it

round obsidian
#

the major game frameworks, like Arcade or PyGame, have example projects that show you how to use them

polar flax
#

alr

#

which should i use

round obsidian
#

Arcade is newer and a little more modern

polar flax
#

oh okie

round obsidian
#

yes

severe flame
#

๐Ÿ˜ข

random roost
#

Not necessarily bound to python but is there a way to make a mobile game on a mobile, preferably in python?

frigid garden
#

This channel is just help except slightly gamedev

random roost
#

Ok, how can I do it?

#

I have a text editor and Termux on my phone, idk what else I need if I want to make the game (important: on the phone / from the phone)

static apex
#

I think kivy library is the best for mobile game in python. Also, there is opportunity compile apk (android example) from pygame.

round obsidian
#

@random roost anything beyond trivial development should be done on a full PC, as the tools for developing on a phone are extremely limited

random roost
#

I do a bit of coding on a pc, but most of it is on a phone

static apex
#

There are a lot of guides of kivy. Example of pygame building - i has

static apex
grand apex
grand apex
severe flame
#

basically

#

im making some tile board game

#

due in 2 weeks

#

im making functions for each tile/card in the game

#

but for some reason whenever i run

#

"61"

#

is being outputted as player2's positions

random roost
static apex
# random roost Ah ok, so should I use kivy or pygame? Which works best on android?

Actually, I don't think python is good for game development (especially for mobile platforms). Kivy is a framework for cross-platform development and is also designed for android, so there should not be big problems with the release of the game on it (although for example I had a problem with enabling the front camera on kivy in the latest releases of the library). Also Kivy is more performant than pygame because it uses opengl. You can also create beautiful GUI applications in kivy. In my opinion, the only advantage of pygame is its ease of use. Disadvantages - speed, relative complexity in compiling apk, limited use only by games. In sum, I recommend choosing Kivy for use/learning.

random roost
#

Other than python

static apex
# random roost Other than python

I think that for game development it is best to pay attention to game engines. The closest thing to python (from adequate options) is godot engine. It uses a special language called gdscript. It's easy to figure it out. Python aside, Unity dominates the game development industry today. With the help of this engine, many games have been written for all platforms. It uses c# and/or c++. It will take a lot of effort to study it. Much more than for pygame)

random roost
#

Ah, ok, tyy

flat aurora
#

For mobile games unless youโ€™re using an engine with robust cross platform support youโ€™re really best off using a language somewhat native to the platform. Like Kotlin for Android or Swift for iOS

#

Most of the attempts at Python and other languages for mobile games are fairly difficult and not full featured

#

Even Go game engines found it easier to make the games be able to be ported to Unity for mobile/console versions

patent zenith
#

monopoly cli ๐Ÿ’ค

grand apex
severe flame
#

Basically

#

the aim of the game is that each tile has an affect (or nothing happens) and each player has to obtain 4000 gold to win

radiant goblet
#

so i can specify that i want the line to begine at some (x, y) and end at another 2d coordinate

#
class Point(Entity):
    def __init__(self, x: int, y: int):
        self.x = x
        self.y = y
        super().__init__(model='circle', color=color.red, scale=.1, x=x, y=y)

class Line(Entity):
    def __init__(self, x: int, y: int):
        self.x = x
        self.y = y
        super().__init__(model='line', color=color.green, scale=1, x=x, y=y)


p1 = Point(0, 0)
p2 = Point(1, 1)

l1 = Line(0, 0)
#

ping if u reply

tranquil girder
# radiant goblet ```py class Point(Entity): def __init__(self, x: int, y: int): self....
start_point = Draggable(model='circle', color=color.orange, scale=.025, position=(-0,-0))
end_point = Draggable(model='circle', color=color.orange, scale=.025, position=(.2,.1))

line = Entity(parent=camera.ui, model='line', origin_x=-.5) # set origin_x = -.5 o it starts at the left and not the middle.

def update():
    line.position = start_point.position
    line.look_at_2d(end_point)  # could also ise .look_at() (3d) for this.
    line.rotation_z -= 90 # look_at_2d assumes up as forward, so offset by -90 degrees.
    line.scale_x = distance_2d(start_point, end_point)
radiant goblet
#

๐Ÿ˜ณcoldstare

#

is there a simpler way

tranquil girder
#

it's simpler than yours isn't it? don't have to use update, it's just for example purposes
you could set the model instead
model=Mesh(Vec3(0,0,0), Vec3(1,1,0), mode='line')

#

instead of model='line'

#

then you can skip the look_at and distance stuff

radiant goblet
#

how do i limit my editor camera to only 2D?

next sun
#

how do I change the brightness of a loaded sprite in arcade?

#

do I have to like do something in PIL or arcade has something for it?

novel wigeon
#

Does anyone here recommend ursina game engine for experimental game development (ive never done 3D only pygame;)

patent zenith
#

learning some curses cuz why not

topaz epoch
wary coral
novel wigeon
flat aurora
#

You can add a tint color, which can probably achieve the effect Iโ€™m guessing youโ€™re looking for

next sun
flat aurora
#

You can set it on a sprite in Arcade, should be my_sprite.color = (0, 0, 0) or something(I canโ€™t remember the exact code off the top of my head)

next sun
#

ok thanks

flat aurora
#

So you can set a color there, go for something like dark grey or something, or for something more white to decrease/increase brightness

#

Just play around and see what gives the look youโ€™re after, but thatโ€™s the best way I can think of to achieve something like brightness without actually doing shader based lighting or something

next sun
#

ye like like adding 2(or any number) to all (RGB) to increase brightness and vice versa to decrease

flat aurora
#

If I remember correctly, the tint color is multiplied against all pixels by OpenGL, this process I believe happens regardless of if you set a tint color, and the default is just blank

#

Been a while since I poked around at that functionality

next sun
#

thanks

golden bluff
#

can i make minecraft cheat by pymem ?

wanton lodge
#

!rule 5

frank fieldBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

wanton lodge
#

ain't gonna help

runic granite
#

@fallen thicket hi

fallen thicket
#

hi

runic granite
fallen thicket
#

Ok, that's really cool!

runic granite
#

to the staff if this server ,
if I've shared this in the wrong place please forgive me๐Ÿ™
as I didn't know where to share it,
thank you๐Ÿ™

runic granite
#

i need to learn a python GUI now but i don't know which one to do

fallen thicket
#

I didn't have a chance yet to learn python GUI, but I hope I will get to it soon!

#

But that's really nice project you got going on there

runic granite
tame cypress
#

hi

frank fieldBOT
restive parrot
#

guy

#

This is my first game

#
print('The deepest feelings')
y = input('Presse S and enter to play: ')
if y == 'S':
    print('You wake up in the empty room.')
x = input('Presse N and enter: ')
if x == 'N':
    print('You see paper on the floor.')
while True:
   pickornot = input('Pick?Yes/No: ')
   if pickornot == 'No':
      continue
   elif pickornot == 'Yes':
       break
   else:
       print('Please, type Yes or No only.')
print('The paper says 1937 0103 8575 9476 = 7356')
while True:
    print('The door needs password to unlocked it.')
    ask = input('What is the password?*To observe the room type [look around]*: ')
    if ask == '3324':
      break
    elif ask == 'look around':
        print('The room is so stinky,there is black oil on the floor and there are number on the wall there are 8393 0283 0182 9884')
        continue
    else:
        print('Password incorrect')
        continue

print('The door is unlocked and you open the door')
x = input('Presse N and enter: ')
if x == 'N':
    print(' This is just a part of your feelings....')
x = input('Presse N and enter: ')
if x == 'N':
    print('It is too early to end.')
x = input('Presse N and enter: ')
if x == 'N':
    print('Too early....')
x = input('Presse N and enter: ')
if x == 'N':
    print('*You are hearing gas leaked*')
x = input('Presse N and enter: ')
if x == 'N':
    print('and for a second you unconscious')
x = input('Presse N and enter: ')
if x == 'N':
    print('What...')
x = input('Presse N and enter: ')
if x == 'N':
    print('Did..')
x = input('Presse N and enter: ')
if x == 'N':
    print('Have...')
x = input('Presse N and enter: ')
if x == 'N':
    print('Done?....')
x = input('Presse N and enter: ')
if x == 'N':
    print('Hi this is from dev this project is just project that remind me of the lesson that I learn this is just 18% what I have to learn')

#

First time

restive parrot
restive parrot
#

I don't how to make people interested in the story.

runic granite
runic granite
restive parrot
#

@runic granite Do you know why I learn python?

#

Because I want to make discord raider without bot LOL

runic granite