Search found 155 matches

by alko
Tue Apr 05, 2016 5:52 pm
Forum: SGDK
Topic: Raster Effect with Gendev ( SGDK)
Replies: 26
Views: 8139

Re: Raster Effect with Gendev ( SGDK)

Stef wrote:Are you resetting 'vscrol' at V-Int ? looks like you aren't..
Oh, thanx! :roll:

Yet I keep getting flattened image.
How do stretch the picture?
by alko
Mon Apr 04, 2016 5:45 pm
Forum: SGDK
Topic: Raster Effect with Gendev ( SGDK)
Replies: 26
Views: 8139

Re: Raster Effect with Gendev ( SGDK)

background is flattened, but an image is unstable. http://s8.hostingkartinok.com/uploads/images/2016/04/942330323ed728996b33c0234c337da7.gif .... static u32 vscrol; void hint_cb() { VDP_setVerticalScroll(PLAN_B, vscrol); vscrol += 8; } main() { ... while(TRUE) { ... SYS_setHIntCallback(&hint_cb); VD...
by alko
Wed Mar 30, 2016 9:02 pm
Forum: SGDK
Topic: Raster Effect with Gendev ( SGDK)
Replies: 26
Views: 8139

Re: Raster Effect with Gendev ( SGDK)

What are you trying to do? Scaling sprites vertically? I need a raster effect - scaling planes verticaly. https://youtu.be/RFx1XFzbICg?t=11 https://youtu.be/fpuvMCpD7_w?t=1659 https://youtu.be/CR0MWpOK1RU?t=2069 https://youtu.be/aJNEfPimU40?t=1459 https://youtu.be/OGDtViPngi8?t=148 https://youtu.be...
by alko
Wed Mar 30, 2016 12:48 pm
Forum: SGDK
Topic: Raster Effect with Gendev ( SGDK)
Replies: 26
Views: 8139

Re: Raster Effect with Gendev ( SGDK)

alko wrote:Shalom.

Please show me the complete source code of this effect (vertical scaling).
:oops: It is even possible to implement by means of SGDK?
by alko
Sat Mar 26, 2016 11:52 am
Forum: SGDK
Topic: Module music in my programm.
Replies: 11
Views: 2748

Module music in my programm.

Whether there is a module player compatible with SGDK ?

For now I found only injectror, which allows to replace the standard music to custom.
http://oerg866.tototek.com/toy.html
by alko
Tue Mar 08, 2016 5:36 am
Forum: SGDK
Topic: Theorical question about the planes
Replies: 12
Views: 2745

Re: Theorical question about the planes

is possible to set visible or invisible plane ?
by alko
Mon Feb 22, 2016 12:17 pm
Forum: SGDK
Topic: Theorical question about the sprites
Replies: 45
Views: 10076

Re: Theorical question about the sprites

which address the is necessary to prescribe to background is not corrupted ?
SPR_setVRAMTileIndex (&sprites,[addr ?]);
by alko
Sat Feb 20, 2016 7:11 pm
Forum: SGDK
Topic: Theorical question about the sprites
Replies: 45
Views: 10076

Re: Theorical question about the sprites

thanx. it worked! :o sprite glitch disappeared. but now the problem with the background. http://pastenow.ru/Upload/Paste/JVOP.png I initialize the sprites in the following way for(i=1; i<8; i++) { SPR_setVRAMTileIndex (&sprites[i],30000+i); coord[i].dy=random()%3+1; coord[i].x=i*50-48; coord[i].y=10...
by alko
Wed Feb 17, 2016 5:53 pm
Forum: SGDK
Topic: Theorical question about the sprites
Replies: 45
Views: 10076

Re: Theorical question about the sprites

Try to increase the allocated tile in sprite engine, it can help. I don't understand how it will help. location of the sprites in memory is always changing. http://s8.hostingkartinok.com/uploads/images/2016/02/3762cb14da033eaf5a3210b55ec85822.gif is necessary somehow make sprites cache. In order to...
by alko
Tue Feb 16, 2016 7:32 pm
Forum: SGDK
Topic: Theorical question about the sprites
Replies: 45
Views: 10076

Re: Theorical question about the sprites

default sprite engine sometimes glitches.

Image

For an animation I use SPR setFrame (sprites , num);

In action:
http://s8.hostingkartinok.com/uploads/i ... ff0626.gif
by alko
Mon Feb 15, 2016 2:06 pm
Forum: SGDK
Topic: On real hardware program hangs
Replies: 13
Views: 2732

Re: On real hardware program hangs

Stef wrote:When you want to play sample and at same time play music
I just wanted to play a sample without music, but in this case it hangs [SND_startPlayPCM]
completely hangs
by alko
Mon Feb 15, 2016 7:38 am
Forum: SGDK
Topic: Theorical question about the sprites
Replies: 45
Views: 10076

Re: Theorical question about the sprites

How to cache an animation of sprite in VDP_RAM ?
by alko
Sun Feb 14, 2016 6:15 pm
Forum: SGDK
Topic: On real hardware program hangs
Replies: 13
Views: 2732

Re: On real hardware program hangs

SND_startPlayPCM_XGM (which is intended for mixing samples and music) does not hangs on hardware, unlike of SND_startPlay_PCM.
But the sample is played back slowly, as if a sampling frequency (16 kHz) does not support.
by alko
Fri Feb 12, 2016 7:41 am
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 6804

Re: Is it possible to 'scale' sprites?

Could share code of sprite-scaling from gasega's wolfenstein3d ?
by alko
Wed Feb 10, 2016 6:39 pm
Forum: SGDK
Topic: Raster Effect with Gendev ( SGDK)
Replies: 26
Views: 8139

Re: Raster Effect with Gendev ( SGDK)

up...