Page 41 of 57

Posted: Fri Jun 28, 2013 5:10 pm
by lingh
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.

Posted: Fri Jun 28, 2013 5:34 pm
by djcouchycouch
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.
Hi there!

It's probably overkill but the Propeller engine might be something of interest to you.

viewtopic.php?t=1373

Posted: Fri Jun 28, 2013 5:40 pm
by lingh
djcouchycouch, yep, overkill.

I want basic example, which you can port to your project or compile and quickly test on hardware.

--

False alarm.
Seems to be VSync problems, that's why I have tiny shutters.

Enable it in emulator - all ok. On TV it is also scrolls smooth.

Posted: Fri Jan 03, 2014 1:02 am
by ehaliewicz
Is there anything in particular that prevents sgdk from working properly on Linux or OSX if I swap out the gcc/ld binaries?

I'm guessing some of the tools are windows only, and I might need to tweak the makefiles, but other than that?

Posted: Fri Jan 03, 2014 1:17 am
by kubilus1
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

Posted: Fri Jan 03, 2014 1:20 am
by ehaliewicz
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
Oh, awesome, now I don't have to reboot to windows everytime I work on my game.

Thanks
:D

Posted: Mon Feb 03, 2014 12:08 am
by Stef
Updated to version 0.95 ! Get it from here

Posted: Wed Feb 05, 2014 3:24 pm
by nolddor
Hi Stef, Thank a lot for the new version

In FONT.H line 19

#include "libres.h" --> Missing

The file should be auto generated by rescomp. Be sure to recompile the whole project. Maybe i made a mistake in the order of object file generation, i will check that ;)

Posted: Wed Feb 05, 2014 3:46 pm
by Mixail
Good job!
Stef, It is possible to see GFX compression support example?

Posted: Wed Feb 05, 2014 5:49 pm
by Stef
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).

Posted: Wed Feb 05, 2014 6:21 pm
by nolddor
OK thank you, I've deleted the 'out' folder and I've compiled the whole project but the error appears again...

Posted: Wed Feb 05, 2014 7:29 pm
by Stef
Well i don't have any problem here and the makefile looks ok. Can you post your compilation log ? the libres.h file should be generate automatically in the res folder.

Posted: Thu Feb 06, 2014 7:41 am
by nolddor
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))

Posted: Thu Feb 06, 2014 9:16 am
by Stef
Oh it looks like you are using the wrong makefile :p
makefile.gen is supposed to compile your project while you need to use makelib.gen to recompile the library itself ;)

Posted: Thu Feb 06, 2014 11:13 am
by nolddor
Thank a lot, Works fine yet!