Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#26 2018-01-08 12:25:07

gbjosh
Member
From: KY
Registered: 2016-06-15
Posts: 51

Re: Please help me get pause to work on ZGB

In StateGame.c:

Add

Code:

INIT_FONT(font, 3, PRINT_WIN);

to the last line of your void Start_STATE_GAME() function.

Next,

Add

Code:

        if (KEY_PRESSED(J_START)) {
            waitpadup();
            HIDE_SPRITES;
            SHOW_WIN;
            PRINT(0, 8, "PAUSE.LrnHow2CodeLOL");
            waitpad(J_START);
            waitpadup();
            PRINT(0, 8, "                    ");
            HIDE_WIN;
            SHOW_SPRITES;
        }

as the last line in your void Update_STATE_GAME() function.

This works in ZGB.

Last edited by gbjosh (2018-01-08 23:09:57)

Offline

 

#27 2018-01-08 14:07:03

npzman
Banned
From:
Registered: 2014-11-19
Posts: 197

Re: Please help me get pause to work on ZGB

Yes thank you man i love you gb Josh


Twitter : @Sfeedman please follow
Join : sfeed.club my website please join

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson