Search found 12 matches

by Tatchou
Mon Jul 28, 2014 10:05 am
Forum: SGDK
Topic: Problem with Timer
Replies: 4
Views: 3446

Ok thank you :) I'll test that !
by Tatchou
Sun Jul 27, 2014 5:33 pm
Forum: SGDK
Topic: Problem with Timer
Replies: 4
Views: 3446

Hum okay thank you !
But I don't see how can I do a timer with sgdk have you an idea ? =/
by Tatchou
Sat Jul 26, 2014 3:15 pm
Forum: SGDK
Topic: Problem with Timer
Replies: 4
Views: 3446

Problem with Timer

Hey everyone, I have a little problem. I don't understand how the timers in sgdk work...

I start a timer with that : startTimer(0);
I wish restart this timer so I do that : getTimer(0,1);

I see that the timer stop and it never restart.

This is the code of "getTimer" :

u32 getTimer(u16 numTimer ...
by Tatchou
Tue Mar 04, 2014 12:51 pm
Forum: SGDK
Topic: Sprite Animation Problem
Replies: 5
Views: 4179

Sorry for not responding sooner but
thank you very much it works!
by Tatchou
Sat Mar 01, 2014 5:53 pm
Forum: SGDK
Topic: Sprite Animation Problem
Replies: 5
Views: 4179

It worck perfectly I can draw a sprite on screen.

Now I try to do a little pong project, and I have a new problem.
I can't draw more than one sprite :

There is my code :


#include <genesis.h>

#include "gfx.h"


// sprite structure
Sprite Raquette1;
Sprite Raquette2;
Sprite Balle;

s16 Raquette1 ...
by Tatchou
Sat Mar 01, 2014 11:49 am
Forum: SGDK
Topic: Sprite Animation Problem
Replies: 5
Views: 4179

Sprite Animation Problem

Hey everyone, I continue to learn the tutorial and I'm stuck at a point.
I fail to see or to animate a sprite with genres method.
I have this code which is almost the same as in the tutorial :


#include <genesis.h>

typedef struct
{
s16 posx;
s16 posy;
u16 tile_attr;
u8 size;
u8 link;
u32 ...
by Tatchou
Sat Mar 01, 2014 11:29 am
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

Ha thin.
Oh well I'll try to do it with.
Thank you anyway ^ ^
by Tatchou
Fri Feb 28, 2014 10:55 am
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

Nobody had the same problem as me ?

I'm following the tutorial to the letter but my image is displayed with a parasite with line below.

When in doubt I tried with several bmp pictures but I still have the same problem.
by Tatchou
Mon Feb 24, 2014 6:11 pm
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

Now with you new tuto I have a problem :

#include <genesis.h>
#include "moon.h"

int main( )
{
u16 w = moon.w;
// get the image height (in pixel) ==> should be 8px aligned
u16 h = moon.h;

// get the palette data of moon
VDP_setPalette(PAL1, moon.palette->data);


// load bitmap data of moon ...
by Tatchou
Mon Feb 24, 2014 5:51 pm
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

I found that it was weird then I checked and indeed at this link the tutorial does not seem Updated: http://code.google.com/p/sgdk/wiki/SGDKTutorial
by Tatchou
Mon Feb 24, 2014 1:11 pm
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

Hum I don't understand, now when I'm return to the tutorial link , I haven't the same code example...
It's strange but now it works correctly so...

Anyway thank you ^^
by Tatchou
Mon Feb 24, 2014 7:24 am
Forum: SGDK
Topic: Problem Tutorial SGDK "Multi Tile"
Replies: 8
Views: 5361

Problem Tutorial SGDK "Multi Tile"

Hi everyone I started programming in the megadrive and I'm stuck at the tutorial to the "Multi Tile".
Let me explain: I get to create the file moon.res , the files moon.h and moon.obj are created by SGDK. I can include moon.h in code block it work perfectly.

I have this code :

include <genesis.h ...