+ 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?

9th Apr 2017, 3:33 PM
Sam
5 Answers
+ 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/
10th Apr 2017, 6:54 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
@Kuba I like your example. Do you know what skills in Python are needed, to develop something like that?
10th Apr 2017, 7:02 PM
Manual
Manual - avatar
+ 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! :)
10th Apr 2017, 7:11 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 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.
9th Apr 2017, 4:11 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
What is pyglet
10th Apr 2017, 6:43 PM
Sam