iDevGames Forums
Beginner, 2D side scroller - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Beginner, 2D side scroller (/thread-7800.html)



Beginner, 2D side scroller - Why37 - Apr 25, 2002 08: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.


Beginner, 2D side scroller - OneSadCookie - Apr 25, 2002 08: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.


Beginner, 2D side scroller - Why37 - Apr 26, 2002 10:40 PM

Alright, the GWorld allocates. Thanks! Now I have to work through a score of other problems!