Search found 99 matches

by orlanrod
Mon Oct 05, 2015 4:32 am
Forum: SGDK
Topic: Draw image
Replies: 14
Views: 8516

Re: Draw image

It seems the tilemap is not displaying 16+ a few pixels on top of the screen (using Gens emulator) I have the vdp set at 224 height. int PlanXPosInTile = 0; int PlanYPosInTile = -3; int MapXPosInTile = 0; int MapYPosInTile = 0; int MapWidthInTile = 40; int MapHeightInTile = 28; indb = TILE_USERINDEX...
by orlanrod
Mon Oct 05, 2015 3:14 am
Forum: SGDK
Topic: How do i edit the header
Replies: 5
Views: 3350

How do i edit the header

How do i edit the game's header, so it displays the message i want on startup, rather than the Sega copyright stuff?

Thanks.
by orlanrod
Sun Oct 04, 2015 7:47 pm
Forum: SGDK
Topic: Research questions
Replies: 3
Views: 2484

Re: Research questions

If you use the SPR_xxx methods then just use the SPR_init(..) methods to initialize a new sprite then the SPR_update(..) method will process everything to make the given list of sprite correctly updated in the VDP (and their tileset uploaded to VRAM when required). When you initialize the Sprite en...
by orlanrod
Sun Oct 04, 2015 7:42 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

Yeah, i am jumping into this coding stuff blind, just off scripting knowledge (no C knowledge). This is why i am doing a lot of posting. xD Haha, you're crazy :D That's how most artist are! ;D So far i cleared the biggest hurdle, which is the collision per tile. Now just need to figure out the seco...
by orlanrod
Sun Oct 04, 2015 12:29 am
Forum: SGDK
Topic: Research questions
Replies: 3
Views: 2484

Research questions

Just some info i need, as i am getting closer to starting working full time on my game. 1.What is the maximum amount of tiles and sprites can their be in vram? My game will use 16x16 tiles with 50 unique tiles in each tilemap of 4, 6 16x24 world character sprites, and 10 24x32 for battle mode charac...
by orlanrod
Sat Oct 03, 2015 9:18 pm
Forum: SGDK
Topic: Set text palette
Replies: 5
Views: 3352

Re: Set text palette

You can't really do that. The default SGDK font use color index 15 and then you can select which palette to use (0, 1, 2 or 3). If you want to use another internal color index to display text you need another font. It's why i told you to always put your wanted text color in last index entry of the ...
by orlanrod
Sat Oct 03, 2015 8:53 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

O_o ?? You put the : map = unpackMap(bgb_image.map, NULL); line outside of the main method ?? You can declare the map variable wherever you want (well not really) but of course the code should be in the main() block at least. You can put it after the basic VDP initialization or SPR_init(..) method,...
by orlanrod
Sat Oct 03, 2015 8:27 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

I really need to see your code with line number as i don't understand which error is for what. Here is the code in its entirety. Ignore the tile collision code, as i am trying to figure it out to work with scroll region. 8P #include <genesis.h> #include <vdp.h> #include <vdp_pal.h> #include <gfx.h>...
by orlanrod
Sat Oct 03, 2015 8:02 pm
Forum: Collaboration
Topic: Small project collab
Replies: 4
Views: 9945

Re: Small project collab

Here are some sample sprites i done. Didn't have time to upload to the website, as i have to code in categories. More to come. http://i.imgur.com/moBuykv.gif http://i.imgur.com/JNTGycU.png http://i.imgur.com/6b1D2Is.png http://i.imgur.com/t6PlikE.png http://i.imgur.com/7EhARGa.png http://i.imgur.com...
by orlanrod
Sat Oct 03, 2015 7:25 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

"Map *map = unpackMap(bgb_image.map, NULL);" Oh, i skipped that part :oops: But i am not sure where i put it in the code. it gave me "error: initializer element is not constant" My fault, try to separate code in 2 lines: Map *map; map = unpackMap(bgb_image.map, NULL); Still got an error. ||=== Buil...
by orlanrod
Sat Oct 03, 2015 6:42 pm
Forum: SGDK
Topic: Testing on real hardware.
Replies: 7
Views: 4012

Re: Testing on real hardware.

Nothing finished. Just the demos I worked on (Goplanes, the Pingouin series, Propeller). I played through Goplanes and Pingouin. They are pretty cool. Your using the MapEX function, to show only a part of the map, right? I think i can tell from the clear line from the right edge of the screen. The ...
by orlanrod
Sat Oct 03, 2015 6:36 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

Do you remember i told you it's better to unpack the map before to avoid unpacking it each time you use VDP_setMapEx(..) method ? I guess that is the problem :) "Map *map = unpackMap(bgb_image.map, NULL);" Oh, i skipped that part :oops: But i am not sure where i put it in the code. it gave me "erro...
by orlanrod
Sat Oct 03, 2015 6:31 pm
Forum: SGDK
Topic: Set text palette
Replies: 5
Views: 3352

Re: Set text palette

You define which palette to use for each sprite. By default it uses the first palette (on the four availables) but you can change attributes of a sprite by using : SPR_setAttribut(&sprites[1], TILE_ATTR(PAL1, FALSE, FALSE, FALSE)) where TILE_ATTR is defined as : /** * \brief * Encode tile attribute...
by orlanrod
Sat Oct 03, 2015 6:27 pm
Forum: SGDK
Topic: Experiencing slowdown with scroll region.
Replies: 12
Views: 6284

Re: Experiencing slowdown with scroll region.

I would say there is no evident reason for that and without seeing the code we cannot say where is the problem. I guess you should try to measure some part of your code maybe (you can use timer.h method for that) :) This is where i update the map region. I have to set this timer up to 10 or so to h...
by orlanrod
Sat Oct 03, 2015 2:59 am
Forum: SGDK
Topic: Set text palette
Replies: 5
Views: 3352

Set text palette

How would i set an index of a player's palette, for the color of text?
The player's palette is stored in the palette[16] array.

Thanks.