If you want to clone Monopoly Tycoon in Python, which libraries would you use?

Ever played the Monopoly Tycoon game? I think it's great. I would like to remake it. Unfortunately, I have no experience when it comes to 3D programming. I assume that there is a relatively steep learning curve when it comes to openGL, figuring out what is clicked, etc.

If you must complete this task, which libraries do you need?

+3
source share
2 answers

pyGame seems pretty mature and builds on a proven SDL library.

+6
source

. , SDL , , python.

import pyglet
from pyglet.gl import *

class Application(object):
    def __init__(self):
        self.window = window = pyglet.window.Window()
        window.push_handlers(self)

    def on_draw(self):
        self.window.clear()
        glBegin(GL_TRIANGLES)
        glVertex2f(0,0)
        glVertex2f(200,0)
        glVertex2f(200,200)
        glEnd()

if __name__=='__main__':
    app = Application()
    pyglet.app.run()

, . .

, , , , , , , . , . , .

opengl. , , C, . :

from pyglet.gl import Begin, Vertex2f, TRIANGLES, End

...
    Begin(TRIANGLES)
    Vertex2f(0,0)
    Vertex2f(200,0)
    Vertex2f(200,200)
    End()
+4

Source: https://habr.com/ru/post/1706612/


All Articles