I've started using Dev-C++ and was creating a game with Allegro, I've created a background named 'Script1.c' and I also made a game map called 'Script2.c'.
I've done this at the end of 'Script1'
while(!key[KEY_ESC]);
exit_allegro();
and I put at the top of Script1
#include <Script2.c>
But I'm unsure if I place it there or at the end of
exit_allegro();
I need it to swap from Script1 to Script2 on the press of ESC
Can some one tell me what I'm doing wrong please :)