New answers tagged python
When you click inside the window and you are not defining any state condition when the event happens it may hang. So add this condition anywhere: for event in pygame.event.get(): if event.type == MOUSEBUTTONUP: None This would tell it when you click the mouse do nothing so it will not hang. That worked for me.
You need to create a variable in your shader that holds this object location. In GLSL, you'd create a uniform variable; this is a variable which has the same value throughout the invocation of the shader (thus, "uniform;" you may see developers more familiar with D3D refer to these kind of variable as a "shader constant" variable as well). Every time you ...
You're going to have tons of questions regarding 3D math so I recommend you get the book Essential Math for Game Programmers, the 2nd Ed. I bought a copy myself and was reading it last night before bed. http://essentialmath.com/book.htm For your specific question you can use a rotation matrix to represent your object's orientation. You can concatenate this ...
define them in a list/dictionary somehow and pull them at random from there? Take this approach; not sure why you were having trouble figure out how to make a list for this. Also you may want your Monster initializer to simply take a dictionary passed to it, so that the list is a list of dictionaries you can pass that factory class. The pseudocode ...
Top 50 recent answers are included