Search found 118 matches

by cloudstrifer
Wed May 18, 2022 5:55 pm
Forum: SGDK
Topic: Dynamically modify a Map
Replies: 7
Views: 8127

Re: Dynamically modify a Map

Thank you!
by cloudstrifer
Mon Apr 18, 2022 2:53 pm
Forum: SGDK
Topic: Dynamically modify a Map
Replies: 7
Views: 8127

Re: Dynamically modify a Map

MAP_xxx methods aren't made for dynamic maps. If you need to modify map then indeed you will need to handle it by yourself and use lower level methods as VDP_setTileMapEx(..) :) Please. Can you give me a litle help? I don't know if I am on correct way. Works baddly, as it loads 2x2 tile, its pops u...
by cloudstrifer
Tue Apr 05, 2022 1:43 pm
Forum: SGDK
Topic: Dynamically modify a Map
Replies: 7
Views: 8127

Re: Dynamically modify a Map

Nice, I'm trying but without success. Now using VDP_setTileMapEx, VDP_setTileMapColumnEx and VDP_setTileMapRowEx methods, from Sonic old demos. Loading tileMap to RAM, but I don't know how to change bga TileMap. bga = unpackTileMap(bga_image.tilemap, NULL); // init scrolling updateCameraPosition(); ...
by cloudstrifer
Sun Apr 03, 2022 12:52 pm
Forum: SGDK
Topic: SRAM to tackle lack of RAM?
Replies: 4
Views: 4288

Re: SRAM to tackle lack of RAM?

I want to use sram as ram too.
by cloudstrifer
Sat Apr 02, 2022 2:49 am
Forum: SGDK
Topic: Dynamically modify a Map
Replies: 7
Views: 8127

Re: Dynamically modify a Map

Trying VDP_setMapEx :)
by cloudstrifer
Thu Mar 31, 2022 1:06 pm
Forum: SGDK
Topic: Dynamically modify a Map
Replies: 7
Views: 8127

Dynamically modify a Map

Hi. How can modify a Map? I want to add tiles on plan A and scroll it, but when I add a tile it disapear after scroll. I need to modify bga Map. Map *bgb; Map *bga; ind = TILE_USERINDEX; KLog_S1("ind", ind); bgBaseTileIndex[BG_A] = ind; VDP_loadTileSet(&bga_tileset, ind, CPU); ind += bga_tileset.num...
by cloudstrifer
Mon Feb 07, 2022 9:40 pm
Forum: SGDK
Topic: SGDK memory allocation
Replies: 1
Views: 3887

SGDK memory allocation

Hi!

I want to learn more about SGDK, when it loads some gfx it consumes VRAM and almost same RAM?

Thanks!
by cloudstrifer
Thu Feb 03, 2022 2:44 pm
Forum: SGDK
Topic: Best way to access nibbles
Replies: 2
Views: 4476

Best way to access nibbles

Hi!

I want to read or write a nibble in U16 variable, for example, nible 0 = 12 or nible 3 = 1.
Can I access 4 bits individualy with good a performance?

__3___2____1___0
0000-1111-0000-1111
by cloudstrifer
Fri Dec 03, 2021 7:50 pm
Forum: SGDK
Topic: help with black screen
Replies: 8
Views: 8962

Re: help with black screen

Its not easy.

I'm using Gens Kmod for debugging.
I can try to help you using Teamviewer or AnyDesk.
by cloudstrifer
Mon Nov 01, 2021 1:57 pm
Forum: SGDK
Topic: Tiles in wrong locations in some parts of the map
Replies: 2
Views: 3422

Re: Tiles in wrong locations in some parts of the map

Try to change OPT ALL to NONE or 0.
TILESET debug_tileset_B "Maps/Debug Map/debugMap_B1.png" 0 0

I sugest you to create a copy of Sonic sample and modify it as you wish, maybe it helps.
SGDK folder > sample > sonic
by cloudstrifer
Mon Nov 01, 2021 1:26 pm
Forum: SGDK
Topic: How to detect collision between Sprite and Plane A low??
Replies: 1
Views: 3422

Re: How to detect collision between Sprite and Plane A low??

Hi.

You can use sprite position X and Y and compare with PLANE A or B, considering it as a 16 x 16 grid or 8 x 8.

I recomend this article.
https://jonathanwhiting.com/tutorial/collision/

Never give up.
by cloudstrifer
Wed Sep 22, 2021 2:41 pm
Forum: Cartridge
Topic: Change RAM, CRAM from addon
Replies: 2
Views: 10303

Change RAM, CRAM from addon

Hi, I like to know if there is some way to change RAM, CRAM and execute complex functions through addon on Sega Genesis. ​

My initial project will be a cheat device, someone can help me?
by cloudstrifer
Mon Mar 29, 2021 4:21 pm
Forum: SGDK
Topic: Circular Transparency
Replies: 6
Views: 9449

Re: Circular Transparency

Not solved yet.
Somebody have more ideas?

Thank you!