PDA

View Full Version : Beginner, 2D side scroller


Why37
2002.04.25, 11:52 PM
I am a beginning game programmer trying to make a 2D side scroller in C++, OS 9, Codewarrior LE. When I try to allocate a GWorld for a small sprite, it works, but when I try it with a large background image the GWorld Handle is NULL. What kind of things could cause this? I would appreciate any help. Thanks.

OneSadCookie
2002.04.25, 11:57 PM
You need to allocate more memory to your program. This is an OS9-only issue. The default in CodeWarrior is something like 384KB, which is quite ridiculous for any reasonable purpose. You'll find the settings in the project preferences.

Why37
2002.04.27, 01:40 AM
Alright, the GWorld allocates. Thanks! Now I have to work through a score of other problems!