Search found 683 matches

by djcouchycouch
Fri Sep 04, 2015 12:03 am
Forum: SGDK
Topic: Project - Mega Dracula - Help / Updates
Replies: 52
Views: 6451

Re: Project - Mega Dracula - Help / Updates

I'm presently trying to use the Sprites engine and getting an issue! src\main.c|150|warning: passing arg 2 of `SPR_initSprite' discards qualifiers from pointer target type| It would help if you show us the line and the types you're using :) I've seen this message most often when passing const param...
by djcouchycouch
Thu Sep 03, 2015 5:42 pm
Forum: SGDK
Topic: Project - Mega Dracula - Help / Updates
Replies: 52
Views: 6451

Re: Project - Mega Dracula - Help / Updates

You'll need a more generic system to store all your text and to print them. Hard coding them like that will become a huge chore. The first thing to do is to Store all your text as const strings and have your rooms reference them when needed. Having all of them in one spot will help with organization...
by djcouchycouch
Wed Sep 02, 2015 2:31 pm
Forum: SGDK
Topic: Project - Mega Dracula - Help / Updates
Replies: 52
Views: 6451

Re: Project - Mega Dracula - Help / Updates

It's not clear to me how you're representing your walls. Are you working with a tilemap for level collisions?
by djcouchycouch
Tue Sep 01, 2015 5:59 pm
Forum: SGDK
Topic: Project - Mega Dracula - Help / Updates
Replies: 52
Views: 6451

Re: Project - Mega Dracula - Help / Updates

I think it's because JOY_readJoypad just returns the state of the button, pressed or not pressed. The code checks whether it's pressed, increments the stage variable but when it comes back on the next frame, sees that it's still pressed and does the work again. It'll do it as long as the button is h...
by djcouchycouch
Tue Sep 01, 2015 10:58 am
Forum: SGDK
Topic: Project - Mega Dracula - Help / Updates
Replies: 52
Views: 6451

Re: Project - Mega Space Heist - Help / Updates

It's because you've got them double quotes (") which means it's a string (char*) and not a single character. You need to put them in single quotes (') for single characters.
by djcouchycouch
Fri Aug 28, 2015 1:13 am
Forum: Announcement
Topic: Summer update
Replies: 12
Views: 3414

Re: Summer update

woot!
by djcouchycouch
Sun Aug 23, 2015 11:56 am
Forum: Megadrive/Genesis
Topic: Algorithm for cutting into sprites
Replies: 12
Views: 2304

The only problem ? Too much code per sprite (anim, move, collide, behavior) which slow down everything You don't need to compute collisions for every sprite, just every object. One object, made up of several sprites, would have just one bounding box. If every sprite use the same number of tiles eve...
by djcouchycouch
Sat Aug 22, 2015 1:50 am
Forum: Megadrive/Genesis
Topic: Algorithm for cutting into sprites
Replies: 12
Views: 2304

while I understood the MK method limits the number of sprites needed, isn't a pain to handle ? I mean, every frame use differents sprites at different position at differents size ?! to win what ? use 40 of 80 sprites available ? more code vs more sprite ? It's only to understand the pro and con of ...
by djcouchycouch
Sat Aug 22, 2015 1:21 am
Forum: Megadrive/Genesis
Topic: Algorithm for cutting into sprites
Replies: 12
Views: 2304

In my Pingouin Bleu project, the gale2c (Graphics Gale to .c) tool has a similar optimization step. I don't see any optimization step. You're right! The version I have is different than the one I released. I never noticed! Very odd considering I used it extensively in Pingouin Bleu to cut up the bi...
by djcouchycouch
Thu Aug 20, 2015 12:22 am
Forum: Megadrive/Genesis
Topic: Algorithm for cutting into sprites
Replies: 12
Views: 2304

Yeah, if you look at those two drawings and how they were split, the method I mimicked is the mortal kombat one.
by djcouchycouch
Mon Aug 17, 2015 12:53 am
Forum: Megadrive/Genesis
Topic: Algorithm for cutting into sprites
Replies: 12
Views: 2304

In my Pingouin Bleu project, the gale2c (Graphics Gale to .c) tool has a similar optimization step. You can find it as part of the project here https://dl.dropboxusercontent.com/u/17303735/PingouinBleu.1.0.0.zip in tools/gale2c From what I can remember, it first cuts the sprite into rows of 32 pixel...
by djcouchycouch
Sun Aug 09, 2015 6:09 pm
Forum: SGDK
Topic: Trouble with makefile.gen
Replies: 3
Views: 933

You could also set those environment variables in a build batch file and call that. That way it'll never be skipped or forgotten.
by djcouchycouch
Sun Jul 26, 2015 3:50 am
Forum: Announcement
Topic: Register process
Replies: 6
Views: 3359

During the registration process, is there a way for a user to prove that they're not a robot scammer? Can you add a custom step that is totally unique to SpritesMind that no generic robot will complete? Something like: get three pictures of Sega consoles and you have to name them? Or put them in ord...
by djcouchycouch
Wed Jun 10, 2015 1:42 am
Forum: SGDK
Topic: Couldn't Allocate Heap, win32 error ...
Replies: 22
Views: 5287

The bug does not happen on XP ? maybe someone can try to re-compile it on a win7 system. I'm now used to push compilation until it get done but i understand that is an annoying bug in the compiler. It never happened on XP on my machine. I dunno if recompiling SGDK would work. What I could find abou...
by djcouchycouch
Tue Jun 09, 2015 1:09 am
Forum: SGDK
Topic: Couldn't Allocate Heap, win32 error ...
Replies: 22
Views: 5287

I just got this today, too, trying to move my SGDK projects to a Windows 7 machine. I was running on XP before.

Edit: Windows 7 machine, not Windows 8