Can you build a python game from scratch? | Sololearn: Learn to code for FREE!

+4

Can you build a python game from scratch?

Not that I would ever try it. But I'm curious whether it is possible to build a python game without using pygame or any other modules

10/14/2021 7:44:55 AM

Richard

17 Answers

New Answer

0

Richard it's not possible to make games with bullets, etc. With the python console...

+7

Revma Pygame is not entirely written in python it uses C, Cpython and assembly language and uses SDL. Its better to use Pygame for making games using python. Richard if u try to make game using only python, u will eventually end up using everything provided for u in pygame.

+4

I mean, yeah. Pygame is literally written in Python. Theoretically you could make a game without any extensions but it's impractical.

+4

Yes, of course. A game is a TYPE of application, I plan to use TKINTER and TURTLE to make them.

+3

Richard Yes... Something Like This... Like A Quiz Game: 1) Car 2) Toy 3) Bike 4) Cycle Choose Your Option:

+3

【ACE】 Best Game Engines In Python: 2D Games: Pygame 3D Games: Ursina

+2

Yeah David Dolejsi . They say python is general purpose but you need to import libraries for almost everything . Websites ,apps even games . Libraries built in other languages

+2

Richard yeah, that is right, I noticed again that some python lovers disliked my answer, but I dont mind python is fully dependant on c and c++, only we can do with pure python is writting into console and handling files, that isnt much in my opinion, all math, gui, and others libraries are written partially using other languages

+2

Richard I think you can build video games in Python without game libraries. They might even look something like these examples: https://code.sololearn.com/cny2exUQ1N8M/?ref=app https://code.sololearn.com/czl0wKqL7oOw/?ref=app https://code.sololearn.com/choN9R3QBDbd/?ref=app The console needs ability to do screen addressing. Set it up to support ANSI escape sequences to make that part work. The hardest part is getting keyboard input without wait. I haven't figured that part out in Python.

+2

🌀 Shail Murtaza شعیل مرتضیٰ Sancho Godinho just listen David Dolejsi you are right, python is not for low level programming, however i disagree that python is trash. is js trash just because it cannot create games without the underlying browser, which is mostly written in c? though i wonder why is python called general purpose, and why is c called systems programming language, if c can be used to do everything, not just systems; while python could not?

+1

You cant make it, I checked and all python gui libraries are written partially in c or c++ cause python is trashy and limited

+1

Dont mind him. Python is simple and makes sense. Its a good first language

+1

Does this questions title include "C Vs python"

0

Sancho Godinho the question was if he could make a game in python without using pygame. Not necessarly console-only.

0

Revma But, He Also Included WITHOUT PYGAME OR ANY OTHER MODULES In His Question!

0

I think [ A C E ] has answered the question

0

David Dolejsi Lol! So! You are saying that PYTHON is limited and depends on c and that is why it is trashy ?? Lmao! I don't know from where you are comming. Sure python is limited because it was implemented that way. I don't know why too many people are fans of programming languages. Programming language is just a tool. Just a tool. Python is good for what it was made for. And C is good what it was made for. In this way C also depends upon assembly. According to you C is trashy. Now assembly depends upon binary. And then according to you assembly is also trashy. And binary depends upon transistors and according to you binary is also trashy. If I'm a system programer then C and assembly will be mine first priority. If someone is doing web scraping then interpreted language will be his first priority. During web scraping few milliseconds of change provided by c will not give any good to web scraper. But writing program in c will consume too much time and energy.