Sega Genesis Dev Kit (SGDK)
Moderator: Stef
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
Hi there!lingh wrote:Can somebody post example of smooth, endless vertical scrolling of plane (a or b) at 1px per frame?
I'm going crazy, can't pull it off.
It's probably overkill but the Propeller engine might be something of interest to you.
viewtopic.php?t=1373
-
- Very interested
- Posts: 50
- Joined: Tue Dec 24, 2013 1:00 am
You will need gcc compiled for 68k development, some other tools and Makefile changes, etc. This is all already done for Linux, including SGDK here:
https://code.google.com/p/gendev/
And some forum posts:
viewtopic.php?t=1248
https://code.google.com/p/gendev/
And some forum posts:
viewtopic.php?t=1248
-
- Very interested
- Posts: 50
- Joined: Tue Dec 24, 2013 1:00 am
Oh, awesome, now I don't have to reboot to windows everytime I work on my game.kubilus1 wrote:You will need gcc compiled for 68k development, some other tools and Makefile changes, etc. This is all already done for Linux, including SGDK here:
https://code.google.com/p/gendev/
And some forum posts:
viewtopic.php?t=1248
Thanks
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
The "sprite" sample use it in a very transparent fashion. You basically just need to declare your image in resource file with compression parameter and that is done. Then you have all the tools.h file to handle manually decompression but if you use advanced method as VDP_drawImage(..) or VDP_drawImageEx(..) SGDK will handle it by itself (same for the new TileCache feature).
But,... Do I need create a res folder into my project folder?
Code: Select all
-------------- Build: default in Project zDX (compiler: Sega MegaDrive)---------------
Running command: make.exe -f C:\sgdk\makefile.gen default
c:/sgdk/bin/mkdir -p out
c:/sgdk/bin/gcc -m68000 -Wall -O1 -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy -Iinc -Isrc -Ires -Ic:/sgdk/inc -Ic:/sgdk/res -Bc:/sgdk/bin -c c:/sgdk/src/boot/rom_head.c -o out/rom_head.o
c:/sgdk/bin/ld -T c:/sgdk/md.ld -nostdlib --oformat binary -o out/rom_head.bin out/rom_head.o
c:/sgdk/bin/mkdir -p out
c:/sgdk/bin/gcc -m68000 -Wall -O1 -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy -Iinc -Isrc -Ires -Ic:/sgdk/inc -Ic:/sgdk/res -Bc:/sgdk/bin -c c:/sgdk/src/boot/sega.s -o out/sega.o
c:/sgdk/bin/mkdir -p out
c:/sgdk/bin/mkdir -p out/src
c:/sgdk/bin/mkdir -p out/res
c:/sgdk/bin/gcc -m68000 -Wall -O1 -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy -Iinc -Isrc -Ires -Ic:/sgdk/inc -Ic:/sgdk/res -Bc:/sgdk/bin -c gfx.c -o out/gfx.o
In file included from c:/sgdk/inc/genesis.h:14,
from main.h:5,
from gfx.h:5,
from gfx.c:1:
c:/sgdk/inc/font.h:19:20: libres.h: No such file or directory
make: *** [out/gfx.o] Error 1
Process terminated with status 2 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))