obiwac / python-minecraft-clone

Source code for each episode of my Minecraft clone in Python YouTube tutorial series.
https://www.youtube.com/playlist?list=PL6_bLxRDFzoKjaa3qCGkwR5L_ouSreaVP
MIT License
166 stars 83 forks source link

The window opens and closes quickly #85

Closed aniketm32012 closed 1 year ago

aniketm32012 commented 1 year ago

Traceback (most recent call last): File "C:\Users\Anike\OneDrive\Desktop\Lionrun\2023\CubeCrafter\main.py", line 149, in <module> game = Game() File "C:\Users\Anike\OneDrive\Desktop\Lionrun\2023\CubeCrafter\main.py", line 143, in __init__ self.window = Window(config = self.config, width = 800, height = 600, caption = "Minecraft clone", resizable = True, vsync = False) File "C:\Users\Anike\OneDrive\Desktop\Lionrun\2023\CubeCrafter\main.py", line 25, in __init__ self.cobblestone = block_type.Block_type(self.texture_manager, "cobblestone", {"all": "cobblestone"}) File "C:\Users\Anike\OneDrive\Desktop\Lionrun\2023\CubeCrafter\block_type.py", line 12, in __init__ texture_manager.add_texture(texture) File "C:\Users\Anike\OneDrive\Desktop\Lionrun\2023\CubeCrafter\texture_manager.py", line 40, in add_texture gl.glTexImage3D(glglTexImage3dargument) TypeError: this function takes 10 arguments (1 given)

obiwac commented 1 year ago

That code doesn't seem to be part of this Minecraft clone, sorry.