Search found 336 matches

by matteus
Fri Mar 16, 2018 9:49 am
Forum: SGDK
Topic: Rescomp colour conversion
Replies: 3
Views: 543

Rescomp colour conversion

I thought I'd post here as I think grand master Stef is busy :) Does anyone know how rescomp decides upon the colours it uses for conversion? Does it use standard 9-bit colour RGB values 0, 32, 64, 96, 128, 160, 192, 224, 256 Old incorrect linear levels RGB values 0, 36, 72, 108, 144, 180, 216, 252/...
by matteus
Sun Jan 14, 2018 11:00 am
Forum: SGDK
Topic: random number seeding issue
Replies: 14
Views: 1939

Re: random number seeding issue

I wanted to check my method for doing this was correct!

Code: Select all

u16 randomNumberGenerator(u16 startInt, u16 finishInt) {
    if (finishInt != 0)
    {
        u16 x = ( random() % (finishInt - startInt) ) + startInt;
        return x;
    }
    else
    {
        return 0;
    }
}
by matteus
Wed Jan 10, 2018 11:23 am
Forum: SGDK
Topic: Tile Map Code
Replies: 19
Views: 2109

Re: Tile Map Code

Is there something you'd recommend I use instead of strclr?
by matteus
Wed Jan 10, 2018 9:29 am
Forum: SGDK
Topic: Tile Map Code
Replies: 19
Views: 2109

Re: Tile Map Code

Definitely not easy to see where can be the problem from the code, it misses the variables declaration, we don't know how much you allocated for the string, we also don't know how much text you write to it. It can be the issue. Also strclr(..) is totally useless if you are just writing the string a...
by matteus
Wed Jan 10, 2018 9:27 am
Forum: SGDK
Topic: Tile Map Code
Replies: 19
Views: 2109

Re: Tile Map Code

Hi Chilly, Thanks for getting back to me! Yes the strings are a nightmare and one of the few things I figured could be causing the I (they always seem too!). The majority are declared as static char * but MessageBoxLineStr1 and MessageBoxLineStr2 are 37 in length which is more than likely where my p...
by matteus
Tue Jan 09, 2018 4:51 pm
Forum: SGDK
Topic: Tile Map Code
Replies: 19
Views: 2109

Tile Map Code

Hi all, I just wanted to check you lot to ask if you can see anything obviously wrong with this code? I think it has a memory leak but I can't find where! int drawMap() { int DrawMapStatus = FALSE; u16 palette[32]; int static DrawMapCurrentStage = 0; int static ItemTemp = 0; int static I = 0; int st...
by matteus
Thu Oct 05, 2017 8:38 am
Forum: SGDK
Topic: Horizontal interrupts to stretch image?
Replies: 10
Views: 1282

Re: Horizontal interrupts to stretch image?

Sounds complicated I don't suppose there is any example code around here? :)
by matteus
Thu Oct 05, 2017 7:07 am
Forum: SGDK
Topic: Horizontal interrupts to stretch image?
Replies: 10
Views: 1282

Horizontal interrupts to stretch image?

Recently watched the how too on the travellers tales sonic 3d fmv intro. Jon notes that they used a 256 X 80 resolution and then used horizontal interrupts to stretch the image by 2 and half times it's size.

Question how the heck do I do this with an image in the SGDK? Can I even do this? :)
by matteus
Tue Sep 26, 2017 8:44 pm
Forum: SGDK
Topic: Sprite engine
Replies: 1
Views: 576

Sprite engine

I want to allocate exactly 145 tiles of VRAM to the sprite engine and load two 480 tile images to the background layer but I can't seem to get this to work as the sprites become corrupted. Any ideas?
by matteus
Sun Sep 24, 2017 10:25 am
Forum: SGDK
Topic: Sprite animations and static frames
Replies: 2
Views: 735

Sprite animations and static frames

How do I keep a sprite fixed on a single frame in an animation sequence? I've a 9 frame acceleration gage and I want frames 0, 5 and 9 to act as stop points. I currently do things like this: Animation 1 - 1 frame bottom gage point Animation 2 - 3 frames braking Animation 3 - 1 frame middle gage poin...
by matteus
Thu Sep 21, 2017 8:21 am
Forum: SGDK
Topic: SGDK and Visual Studio Code template
Replies: 13
Views: 2200

Re: SGDK and Visual Studio Code template

That's exactly what I was hoping for! Great work! definitely will look into implementing this
by matteus
Wed Sep 20, 2017 8:05 am
Forum: SGDK
Topic: SGDK and Visual Studio Code template
Replies: 13
Views: 2200

Re: SGDK and Visual Studio Code template

Does Vs studio do auto complete in conjunction with the SGDK? I may swap out codeblocks if this is the case.
by matteus
Wed Sep 13, 2017 10:19 pm
Forum: SGDK
Topic: Slow XGA playback on PAL
Replies: 6
Views: 848

Re: Slow XGA playback on PAL

Is this to make up the difference between those files specifically converted to XGM from PAL format?
by matteus
Wed Sep 13, 2017 1:37 pm
Forum: SGDK
Topic: Slow XGA playback on PAL
Replies: 6
Views: 848

Re: Slow XGA playback on PAL

Is there a known issue with the driver itself?
by matteus
Sun Sep 10, 2017 2:47 pm
Forum: SGDK
Topic: sprintf issues
Replies: 5
Views: 749

Re: sprintf issues

Thanks for dropping a reply Stef! What kind of problems does it cause? I'm just wary of doing anything that will result in crashes on real hardware :)