+ 1
How do I make colours and objects appear when coding ?
I want to make a game about city life,how do I make colours and objects like cars,buildings,bikes appear in python?
5 odpowiedzi
+ 7
pyglet is a relatively simple openGL library for Python. It operates on both 2D/3D theatres and creates vertex-built objects on which you can easily apply textures and lights.
Take a look what can be done with it:
https://www.instagram.com/p/BQ-8ubDDTNi/
+ 6
@Kuba
I like your example.
Do you know what skills in Python are needed, to develop something like that?
+ 5
Hmm... an inspiration, one webinar and an idea :)
Really, it kind of depends on what you plan to construct. I went for labyrinths as I started my after-basic Python adventure with them and had the algorithms ready at hand (I placed them here at Solo, BTW). I just built them brick by brick.
I watched one of youtube videos on how to manipulate with camera view and what kind of transformations to apply to player's "moves", then I had to find out a way for the walls to block the movement, which took a while :)
After all, it was not that hard. Now, I focused on more data scientific stuff in Python, but I will definitely get back to openGL one day! :)
+ 3
It's quite a long road to traverse, but I'd start from understanding one of OpenGL libraries for Python (I assume we are talking about 3D graphics).
I recommend pyglet, as you can build objects from scratch and apply textures pretty easily.
+ 1
What is pyglet