Re: An opurtunity for work, for only some small code!
So I don't understand something.
Know advanced coding techniques such as use of arrays, dictionaries, classes/objects, etc.
For me, that makes sense. However,
Uh. Dude. You can't make a game without advanced programming concepts. Just not possible.
I completely checked out when you said no arrays, dictionaries or classes. Nope.
That's what has me stumped. The OP wants to learn classes and dictionaries. He's not saying no as in n o, he's saying know, as in k n o w. He wants to use the classes and dictionaries, but he's not sure how.
Frankly, I'm surprised at the amount of negativity Redfox received. I think what he was asking for is mentorship, and is that so wrong? Having somebody who knows what they're doing can and most likely will save you some headache as they guide you through applying what you learned from books to creating games. So why such a backlash? Can someone just explain that to me?
On a more stupid note, when I tried to avoid using classes my code looked like this. Don't do this guys, just, don't.
x=0
y=0
z=0
def main():
while 1:
playerloop()
def playerloop():
global x
global y
global z
#You get the point.
I got sick of having 200 lines that go global this or that, so I used classes. Kind of have to with python, but not with bgt. BGT allows you to get away with the code I provided above, you'd just need to specify that the x y and z variables are int, change defs to void, add ;s, and there you go.
Of course, again, you should not do that. You shouldn't write code like one showed above. Doing so will make it very difficult for you to maintain your code.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector