Avatar of James Hancock
James Hancock
Flag for United States of America asked on

Help - For a game . Python variable declarations and constructor confusion?

Hi
Python array/list instantiation, import and other declarations are confusing me!

In my code attached, I have a main class for holding the data structures for a platform game level, basically x,y, positions and length of the platform, for now,
I don't understand why the 'module' object is not callable - error? It seems it should be trivial. What does that mean? I intend to end up with a list of terrain objects
In platform.py, must I do 'import platform as platform' is that telling me how to call methods, get data from that class?

Thanks
platform.py
mainclass.py
Computer GamesGame ProgrammingPython

Avatar of undefined
Last Comment
James Hancock

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
pepr

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
James Hancock

ASKER
Thanks
Your help has saved me hundreds of hours of internet surfing.
fblack61