Search found 10 matches

by matasiete
Mon Nov 25, 2019 7:09 pm
Forum: SGDK
Topic: Simplest way to make a sprite blink
Replies: 2
Views: 1922

Re: Simplest way to make a sprite blink

Thanks, yes, using SPR_setVisibility is straighforward, but if forces me to handle manually the counter and the visibility flag. I assumed there would be a way to move the responsibility to the sprite engine since it does basically the same thing when it handles automatically animation frames.
by matasiete
Sun Nov 24, 2019 6:09 pm
Forum: SGDK
Topic: Simplest way to make a sprite blink
Replies: 2
Views: 1922

Simplest way to make a sprite blink

I have a 2x2 sprite and I want it to blink. I've tried duplicating the width of the image and leaving a 2x2 black area in the right, but this doesn't make the job. SPRITE nuke_sprite "sprite/nuke.png" 2 2 NONE 15 I guess this doesn't work because the following rescomp behavior: - rescomp detects emp...
by matasiete
Mon Jun 03, 2019 5:10 pm
Forum: SGDK
Topic: typewriter effect
Replies: 7
Views: 3602

Re: typewriter effect

I do a similar effect in my jetpac port for printing the game info. Really basic stuff.

Here the code.
https://github.com/diegomtassis/md-jetp ... /printer.c

You can see the effect right after running the rom.
https://github.com/diegomtassis/md-jetp ... ut/rom.bin
by matasiete
Wed May 15, 2019 10:46 am
Forum: SGDK
Topic: Weird problem with sprites
Replies: 5
Views: 4372

Re: Weird problem with sprites

Ok, I'll go back to FAST compression, which works if I add the extra VDP_waitVSync().

I haven't tried debug mode yet. I'll give it a try and I will come with the result.
by matasiete
Wed May 15, 2019 8:55 am
Forum: SGDK
Topic: Weird problem with sprites
Replies: 5
Views: 4372

Re: Weird problem with sprites

Not a full-on fix, but I removed the FAST compression in your sprite.res so that it loads the sprite data linearly. On my test, the rockets now appear correctly in MD mode on first run. Thanks for the effort hotrodx. True, removing the compression definition of the sprites in sprite.res solves the ...
by matasiete
Tue May 14, 2019 6:33 pm
Forum: SGDK
Topic: Weird problem with sprites
Replies: 5
Views: 4372

Re: Weird problem with sprites

Some more info. The differences between the modes are 3 right now: * Position and size of the platforms. * Position of the parts of the rocket. * Initial position of the jetman. If I keep everything equal then no problem with the sprites. If I change only one of the 3 differences, then the sprites o...
by matasiete
Tue May 14, 2019 5:01 pm
Forum: SGDK
Topic: Weird problem with sprites
Replies: 5
Views: 4372

Weird problem with sprites

Hi, Just for learning how to work with the SGDK and before facing more complex projects, I'm coding a port of Jetpac from ZX Spectrum. I have no previous experience coding games at all and it's quite some years since I touch C for the last time, so I'm starting from scratch almost in every aspect. I...
by matasiete
Sun Apr 07, 2019 8:20 pm
Forum: SGDK
Topic: Dummy question on button handling
Replies: 9
Views: 2585

Re: Dummy question on button handling

Thanks for the answers.

15 years that I've been exclusively working with JVM languages. I'm really enjoying to be back using C :D

I think the best will be to read some C manual in parallel with my SGDK go-through.
by matasiete
Sat Apr 06, 2019 11:06 pm
Forum: SGDK
Topic: Dummy question on button handling
Replies: 9
Views: 2585

Re: Dummy question on button handling

Ok, I've seen that joy.h JOY_waitPress function implements the exact same behavior, yet still I would like to understand why my implementation is not working (I mean without the workaround).
by matasiete
Sat Apr 06, 2019 9:08 pm
Forum: SGDK
Topic: Dummy question on button handling
Replies: 9
Views: 2585

Dummy question on button handling

This is my first message here in the community so first and foremost: Hi all! I'm a total newbie with the SGDK and in addition it's more than 15 years I had not used C, so expect really dummy questions. I'm at the beginning of the learning process, going through the tutorials and the included sample...