Discuss Scratch

IAmNotaTutor
Scratcher
3 posts

Hello should I use python for my games

IDK
cactus-cacti
Scratcher
100+ posts

Hello should I use python for my games

What kind of games are you wanting to create?
-gr
Scratcher
1000+ posts

Hello should I use python for my games

This is a personal preference. If you know some Python already or want to start learning, go ahead!
TheCreatorOfUnTV
Scratcher
1000+ posts

Hello should I use python for my games

It depends on your personal preference, but if you choose to, make sure to start code with this:
import turtle
or use a library. (I prefer the turtle system (it's similar to Scratch's motion and pen blocks, but with more features like fill) over the libraries, but I admit many would rather use the libraries.)
Also remember Python won't be good for 3D games in many cases.

Last edited by TheCreatorOfUnTV (July 24, 2024 03:35:58)

mjk200
New Scratcher
30 posts

Hello should I use python for my games

No idea about that.
tomatoloss
Scratcher
2 posts

Hello should I use python for my games

There are a variety of modules you can use for Python games, such as (if I'm not mistaken) PyGame and Tkinter, but games were not what the language was intended for. If you want to make a game, I suggest using a game engine (there are many of them, a couple free ones that are well-reviewed by users are Gamemaker and Godot engine; you should start by trying those if you want to make a video game).

If you want to purely stick to coding languages, Python is a good start. I have heard that C++ is better for video games/user interfaces, but Python is relatively easy to learn and is quite versatile if understood. In the end, it mainly depends upon your personal preferences. If you enjoy coding in a specific language, or simply know it well, that is often the best solution.

I hope you find this helpful!
DifferentDance8
Scratcher
1000+ posts

Hello should I use python for my games

mjk200 wrote:

No idea about that.
Okay? Then why did you make a post?
============
In addition, if you want to make 3D games there's an OpenGL binder library. Although that is way too complex for beginners soo
Redstone1080
Scratcher
1000+ posts

Hello should I use python for my games

Python is not the best language for game development, but if you really want to, there are plenty of ways to make games with it.

One of those (and probably the most popular) is Pygame, which might be a little complex for beginners, but is really powerful. Another option is Pygame Zero which is a simplified version of Pygame that even compares itself to Scratch in its own documentation.

My favourite, however, is probably raylib. Technically, it's a C++ library, but there are language bindings for every language out there, even stuff like BrainF and BASIC. In the list of language bindings there are a few Python bindings you could try, but they're pretty much all the same anyways.
redspacecat
Scratcher
500+ posts

Hello should I use python for my games

I've been using Pyglet for making several of my games in python. Pygame is also good, and has several features like easy rect collision that Pyglet doesn't have. They are both pretty good for 2D games.
WojtekGame
Scratcher
1000+ posts

Hello should I use python for my games

personal preference

javascript? sure!
python? sure!

some complex ones
some game engine like unreal? also sure!
asm? sure!

Powered by DjangoBB