Search found 172 matches

by alko
Fri Dec 11, 2015 6:48 pm
Forum: SGDK
Topic: Mirror a sprite
Replies: 7
Views: 4316

Re: Mirror a sprite

What about mirror a planes on background? :o

Image

Image
by alko
Thu Dec 10, 2015 11:48 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

I can not understand how should use the method VDP_setTileMapData()

I try to experiment, something like this:

Code: Select all

ind = TILE_USERINDEX;
for(i=1;i<512;i++)
{
VDP_setTileMapData( BPLAN,TILE_ATTR(PAL1, FALSE, FALSE, TRUE),ind,i,TRUE);
}
still incomprehensible.
by alko
Wed Dec 09, 2015 3:09 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

thanx, already I know.

now I can't cope with mirroring planes.
ATTR flag mirror only tiles, but the order of the tiles remains unchanged.
necessary to alter the function VDP_drawImageEx() for mirror.
by alko
Mon Dec 07, 2015 8:23 pm
Forum: SGDK
Topic: Do you need tutorials ?
Replies: 76
Views: 1181767

Re: Do you need tutorials ?

I want to ask a question about mirroring plane or sprites. :roll:
and vertical\horisontal scaling planes.
as well about per-pixel parallax-scrolling:
https://youtu.be/CR0MWpOK1RU?t=1062
https://youtu.be/qZM5Mk0-Ehc?t=230
https://youtu.be/b9dX_QcqSf8?t=1928
by alko
Mon Dec 07, 2015 7:14 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

I had to reduce sprites init.

Code: Select all

  SPR_init(58);
by alko
Sun Dec 06, 2015 11:40 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

understood...
VDP_drawImageEx(APLAN, &fog, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind), 40, 0, FALSE, TRUE);

but appears glitches.
Image
by alko
Sun Dec 06, 2015 10:52 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

VDP_drawImageEx(APLAN, &fog, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind), 0, 0, FALSE, TRUE); VDP_drawImageEx(APLAN, &fog, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind), 320, 0, FALSE, TRUE); http://pastenow.ru/Upload/Paste/GCJB.png :lol: VDP_drawImageEx(APLAN, &fog, TILE_ATTR_FULL(PAL0, FALSE,...
by alko
Sat Dec 05, 2015 9:42 am
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

That is what is there for now: http://pastenow.ru/Upload/Paste/GAFK.png I want to add decorations. but how to avoid the restriction of sprites? to be seen "blood" particles and background decorations (for example, chain and scrolling fog ). http://pastenow.ru/Upload/Paste/GAFP.png P.S.: PC-version h...
by alko
Thu Dec 03, 2015 10:20 am
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

how to display an array sprites ?
that's right ?

Code: Select all

int i;
for(i=0;i<150;i++){
SPR_initSprite(&sprites[i], &rain_sprite, i, i, TILE_ATTR(PAL3, TRUE, FALSE, FALSE));
SPR_update(sprites, i+1);
 }
    
by alko
Wed Dec 02, 2015 12:20 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

Bat tiles climb on background (320*240).

Image

necessary move bat tiles in VDP RAM
Image

and incomprehensible where did this blue color.
in color table it is not present
Image
by alko
Wed Dec 02, 2015 10:16 am
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

Image

how to fill PAL3 indices of sprite "ball" ?
by alko
Mon Nov 30, 2015 3:04 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

I'm trying display second sprite occurs conflict of palettes SPR_initSprite(&sprites[0], &x_sprite, fix32ToInt(posx - camposx), fix32ToInt(posy - camposy), TILE_ATTR(PAL2, TRUE, FALSE, FALSE)); SPR_update(sprites, 1); SPR_initSprite(&sprites[1], &ball_sprite, fix32ToInt(posx - camposx), 10, TILE_ATT...
by alko
Fri Nov 27, 2015 4:15 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

Transparent color should be first in palette indexes. :oops:

By the way, sample with sonic sprites unoptimized.
Example Violence Pingouin better in terms of drawing sprites\tiles, but source more difficult for a beginner.
by alko
Tue Nov 24, 2015 10:46 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

Re: How put my sprites into new SGDK project?

violated palette indexes.
And instead of a transparent color - white color. :oops:

Image

Image

Image
by alko
Thu Nov 19, 2015 4:49 pm
Forum: SGDK
Topic: How put my sprites into new SGDK project?
Replies: 22
Views: 12139

How put my sprites into new SGDK project?

Have a set of sprites 48 * 48, located in different BMP files.
How to import them into my project?
And also to create animations and displaying multiple sprites on different layers.
For compilation I set up CodeBlocks.