Jo Engine Forum

Sega Saturn Development => General Jo Engine Help => Topic started by: Segasaturnfreak2004 on January 14, 2021, 12:00:01 am

Title: Help me!
Post by: Segasaturnfreak2004 on January 14, 2021, 12:00:01 am
 First post on this form so anyways,
How do I delete the Sonic picture in my code??
Title: Re: Help me!
Post by: mindslight on January 14, 2021, 12:32:00 pm
Hi,

Can you give us more information about what you do and need ?
Title: Re: Help me!
Post by: Segasaturnfreak2004 on January 14, 2021, 04:27:00 pm
 So when I write my own code it is supposed to display hello world, but when I compile the iso, it shows the picture of sonic so how do I remove that picture
Title: Re: Help me!
Post by: mindslight on January 14, 2021, 11:41:42 pm
You should have something that display this image.

Can you share your code ?
Title: Re: Help me!
Post by: Segasaturnfreak2004 on February 03, 2021, 11:22:34 pm
#include <stdio>

using namespace std;

int main()
{
cout << “Hello, World!”;
return 0;
}
Title: Re: Help me!
Post by: lo_gi on February 23, 2021, 11:32:27 pm
That is not Jo Engine code and it cannot be the code that is displaying the sonic image.

Look at the printf sample.

You want something like this:
Code: [Select]
#include <jo/jo.h>

void my_draw(void) {
    jo_set_printf_color_index(JO_COLOR_INDEX_White);
    jo_printf(0, 0, "Hello World");
}

void jo_main(void) {
jo_core_init(JO_COLOR_Black);
jo_core_add_callback(my_draw);
jo_core_run();
}

Although the Sega Saturn is not the best system to learn to code on.