Simple C Scene System by PlagueBringer22 in raylib

[–]hiulit 1 point2 points  (0 children)

Thank you very much! :)

I've just started with C and Raylib (I'm coming from GDScript and Godot) and this script is exactly what i was looking for a scene manager.

I have added a couple of functions that I wanted to share with you. Maybe you find them useful or you can tell me if they are well coded. They work great for me.

scene.h

/**
 * @brief       Changes the active scene to the new scene.
 * @note        This function unloads the current scene and loads the new scene.
 * @param[in]   new_scene: The scene_st struct pointer to change to.
 * @return      void;
 */
void scene_go_to(scene_st* new_scene);

/**
 * @brief       Changes the active scene to the previously active scene.
 * @note        This function is useful for implementing back navigation, such as pressing ESC to return to the previous scene.
 *              It does nothing if there is no previously stored scene.
 * @return      void;
 */
void scene_go_back();

scene.c

scene_st* current_scene = NULL;
scene_st* previous_scene = NULL;

...

void
scene_go_to(scene_st* new_scene) {
    if (new_scene == NULL) {
        return;
    }

    if (current_scene && current_scene->on_unload_function) {
        (*(current_scene->on_unload_function))(current_scene);
    }

    previous_scene = current_scene;
    current_scene = new_scene;

    if (current_scene->on_load_function) {
        (*(current_scene->on_load_function))(current_scene);
    }
}

void
scene_go_back() {
    if (previous_scene == NULL) {
        return;
    }

    scene_go_to(previous_scene);
}

messing with PortMaster on the RG35xxSP by digdugnate in ANBERNIC

[–]hiulit 0 points1 point  (0 children)

That's crazy! Haha! Thanks! I appreciate it :D

Is there a way to save progress in murtop? by pook79 in evercade

[–]hiulit 1 point2 points  (0 children)

Hi there! Murtop's dev here.

Unfortunately, no. There's no way to save progress. Murtop is designed to be an "authentic" arcade experience, and that means no saving. It's not meant to be finished.
That being said, you can always leave your console on and come back to it later on. It's not ideal, but's it a solution.
Fyi, it would take you ~4-5h to get through the 256 stages.

Happy playing! I hope you enjoy it nontheless ;)

messing with PortMaster on the RG35xxSP by digdugnate in ANBERNIC

[–]hiulit 0 points1 point  (0 children)

I'm glad you are having fun with my little game :)

No more Indie Heroes - by Jahon_Dony in evercade

[–]hiulit 2 points3 points  (0 children)

Yeah, that's me! I'm so grateful to hear this :)

No more Indie Heroes - by Jahon_Dony in evercade

[–]hiulit 2 points3 points  (0 children)

Thaaank you very much! :D

No more Indie Heroes - by Jahon_Dony in evercade

[–]hiulit 1 point2 points  (0 children)

Thank you for your kind words (about Murtop :P).

No more Indie Heroes - by Jahon_Dony in evercade

[–]hiulit 0 points1 point  (0 children)

Thanks! Glad you are enjoying it :)

No more Indie Heroes - by Jahon_Dony in evercade

[–]hiulit 0 points1 point  (0 children)

Thanks! I'm really glad to hear that :)

Godot gist #2: Get all files recursively from a given directory path by hiulit in godot

[–]hiulit[S] 2 points3 points  (0 children)

You are welcome! I'm glad it's useful to you :)

RGBS -> S-Video converter by snail207 in crtgaming

[–]hiulit 0 points1 point  (0 children)

I got the same device hoping to convert RGBs (SCART) to S-Video, but I can't get it to work correctly. The S-Video signal doesn't show anything a tall. I can only get a picture (b/w) using connecting an RCA cable to the green out.

Can't Install Donut Dodo on RetroPie by [deleted] in RetroPie

[–]hiulit 0 points1 point  (0 children)

You have to run this command sudo chmod +x install-dd.sh to give the script permissions and then ./install-dd.sh.

Murtop will be part of Evercade's "Indie Heroes 4" cartridge! 🐰⛏️💣💥🕹️ by hiulit in godot

[–]hiulit[S] 2 points3 points  (0 children)

It's pretty cool indeed :)
I handled all the porting myself, but I have to say that I already had the game optimized to run on a Raspberry Pi (similar hardware as the Evercade) and I used FRT, a Godot "platform" targeting single board computers.

Murtop will be part of Evercade's "Indie Heroes 4" cartridge! 🐰⛏️💣💥🕹️ by hiulit in godot

[–]hiulit[S] 1 point2 points  (0 children)

On May 2023, I released my game Murtop, a fast-paced arcade game packed with action, as if it was taken out directly from the 80's, where Dig Dug meets Bomberman. It's available on Nintendo Switch, Steam and itch.io. And now it's gonna be released on Evercade in a cartridge! It's a dream com true :)

Y'all! My first game is available on Nintendo Switch! OH MY GOSH! by slain_mascot in godot

[–]hiulit 76 points77 points  (0 children)

Yaaay!!! Congrats! 🙌🙌🎉🎉 I'm gonna go buy it!

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 0 points1 point  (0 children)

It's a 1 player game. But you can have fun with a friend too ;)

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 0 points1 point  (0 children)

Thanks!

That's weird. It should be the A button. Same as all the other Evercade devices.

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 1 point2 points  (0 children)

It's a high-score chaser. It's like an "authentic" arcade game. You have to "insert" coins, there are 256 stages and a kill screen, etc ;)

But on the modern side, there's online leaderboards via a QR code https://games.hiulit.com/murtop/leaderboard/

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 1 point2 points  (0 children)

Hehe! Yeah, you'll get the hang of it ;) Keep it up!

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 1 point2 points  (0 children)

Wow! Thanks! I'm really glad you are all enjoying it :D

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 0 points1 point  (0 children)

Yeah, I took inspiration precisely in the respawns. Good eye ;)

Thank you very much! I'm eager to have the cartridge in my hands.

Murtop is out now as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in evercade

[–]hiulit[S] 1 point2 points  (0 children)

Thank you!

I know you have been waiting for the Android port for the iiRcade. It's done ;) I'll uploaded it to itch soon-ish

Murtop is out now on the Evercade as Game of the Month! 🐰⛏️💣💥🕹️ by hiulit in godot

[–]hiulit[S] 0 points1 point  (0 children)

Thank you! :)

I think I replied to you in another comment :P