Do you need tutorials ?

SGDK only sub forum

Moderator: Stef

sega16
Very interested
Posts: 250
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Thu Aug 21, 2014 2:44 pm

Well you give no definition of what "large" is. You can actually configure how large of a plane the VDP can hold. I googled this real quick and found http://md.squee.co/wiki/VDP#.2410_-_Plane_Size
So if your dimensions exceed the size you specified you will need reload parts of the tilemap as the player moves around. Note this also allows you to make vram tradeoffs, using a smaller plane size allows you to store more tiles, but you will need to do more reloading.

bastien
Very interested
Posts: 208
Joined: Mon Jun 25, 2007 7:19 pm
Location: Besançon,France
Contact:

Post by bastien » Thu Aug 21, 2014 2:51 pm

Thanks for your fast reply.
By "large" i mean the max of a plan so yes i need to do some reloading.
Did you have some good exemple for doing that ?
I think it s a classic feature when you write a game.

sega16
Very interested
Posts: 250
Joined: Sat Jan 29, 2011 3:16 pm
Location: U.S.A.

Post by sega16 » Thu Aug 21, 2014 4:16 pm

Admittedly I have not personally made an example however pretty much any side scrolller on the sega genesis/mega drive features scrolling. You may want to check out viewtopic.php?t=1373 it contains an sgdk example of scrolling.

ronin68k
Interested
Posts: 16
Joined: Mon Nov 02, 2015 5:28 am
Location: Krasnodar, Russia

Re: Do you need tutorials ?

Post by ronin68k » Mon Nov 02, 2015 5:48 am

Hi, guys! Thank you all, who is working on SGDK, so much - i love what you do.
I got only one question, is it possible to make SGDK output assembly code? I know, GCC can do it if we used -s command, but i have no idea where to put this flag here (if its even possible). Thank you <3

Why this...
Im working on Mortal Kombat 1 hack and i would like to code new menus with C language, output it to asm and paste it into my hack with few editions instead of fully asm-programmed function.
btw, someday i would like to remake MK1 with SGDK, cuz original engine port as awful as my english (well, maybe better a bit :lol: ).

User avatar
Stef
Very interested
Posts: 2627
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Do you need tutorials ?

Post by Stef » Mon Nov 02, 2015 9:11 am

Hi,

Thanks for your nice comment about SGDK :)
What i usually do to get assembly output is just adding the '-S' switch to the makefile.
In makefile.gen, replace the following line :

Code: Select all

DEFAULT_FLAGS= -m68000 -Wall -fno-builtin $(INCS) -B$(BIN)
by

Code: Select all

DEFAULT_FLAGS= -m68000 -Wall -fno-builtin $(INCS) -B$(BIN) -S
and the .o generated files will contains assembly listing instead of binary.

ronin68k
Interested
Posts: 16
Joined: Mon Nov 02, 2015 5:28 am
Location: Krasnodar, Russia

Re: Do you need tutorials ?

Post by ronin68k » Mon Nov 02, 2015 6:07 pm

thank you, Stef :)
Last edited by ronin68k on Mon Nov 02, 2015 11:16 pm, edited 1 time in total.

User avatar
Stef
Very interested
Posts: 2627
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Do you need tutorials ?

Post by Stef » Mon Nov 02, 2015 8:32 pm

Hi bestien,

The method you need is VDP_setMapEx(..), you can have a look on these topic to see how to use it :

viewtopic.php?f=19&t=2158
viewtopic.php?f=19&t=2028

alko
Very interested
Posts: 144
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Do you need tutorials ?

Post by alko » Mon Dec 07, 2015 8:23 pm

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
Image

troudki
Interested
Posts: 13
Joined: Sun Dec 20, 2015 10:31 am

Re: Do you need tutorials ?

Post by troudki » Sat Jan 02, 2016 11:30 pm

Hi All, I'm newbie with this great Tools SGDK..
It is possible to get status of FM or PSG channel like PCM functions with channel mask when you play a song with a music driver like XGM :oops:
thx

User avatar
Stef
Very interested
Posts: 2627
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Do you need tutorials ?

Post by Stef » Sun Jan 03, 2016 1:22 pm

troudki wrote:Hi All, I'm newbie with this great Tools SGDK..
It is possible to get status of FM or PSG channel like PCM functions with channel mask when you play a song with a music driver like XGM :oops:
thx
I already replied on the other forum but to make it short no, you can only get PCM play state or eventually PSG play state but you cannot really get that from FM channel.

User avatar
Stef
Very interested
Posts: 2627
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Do you need tutorials ?

Post by Stef » Sun Jan 03, 2016 1:23 pm

alko wrote: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
These games mainly use the line horizontal scrolling, sometime coupled to vertical scroll reprogramming on H int (raster effect).

alko
Very interested
Posts: 144
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Do you need tutorials ?

Post by alko » Sun Jan 03, 2016 4:07 pm

I have learned to do this effect (and I can already do rotation).

But question about zoom still valid.
Image

Boyfinn
Interested
Posts: 20
Joined: Sat Aug 08, 2015 12:12 pm
Location: Lapland, Finland

Re: Do you need tutorials ?

Post by Boyfinn » Thu Sep 01, 2016 11:11 am

The documentation could have some exaple snippets for each function.
Just because some lesser used functions are not properly described and could use some more explanation.

Hik
Very interested
Posts: 62
Joined: Thu Jul 30, 2015 11:39 pm
Location: Iceland

Re: Do you need tutorials ?

Post by Hik » Mon Oct 17, 2016 7:10 pm

I saw this thread ; viewtopic.php?f=19&t=2525
And thought it might help new users to have a walkthrough setup guide for SGDK with pics.

I found a guide like that when I was staring out but later on it was removed so I took some screens
and made it into a pic since it might help others get into it. This guide ,written by db Electronics
certainly helped me. I'll just link it from dropbox for now;

https://www.dropbox.com/s/mrj8s1wppu0s8 ... K.png?dl=1

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest