Sources for a couple of (unfinished) games

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Sources for a couple of (unfinished) games

Post by uze6666 »

Even flip screen scrolling would be great
You mean split screen scrolling :?:
CunningFellow
Posts: 1445
Joined: Mon Feb 11, 2013 8:08 am
Location: Brisbane, Australia

Re: Sources for a couple of (unfinished) games

Post by CunningFellow »

I think he meant flip-screen-scrolling.

Not smooth scrolling, but when you get close to the edge of the screen, all player action stops and the screen scrolls forward a bit.

Its something low spec hardware did when they didnt have enough horses to run game logic AND scroll the screen smoothly at the same time.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Sources for a couple of (unfinished) games

Post by uze6666 »

CunningFellow wrote:I think he meant flip-screen-scrolling.

Not smooth scrolling, but when you get close to the edge of the screen, all player action stops and the screen scrolls forward a bit.

Its something low spec hardware did when they didnt have enough horses to run game logic AND scroll the screen smoothly at the same time.
Ah ok got it. :)
User avatar
cosam
Posts: 37
Joined: Wed Jul 27, 2011 11:05 am
Location: Netherlands
Contact:

Re: Sources for a couple of (unfinished) games

Post by cosam »

uze6666 wrote:8x12 should work for mode 3 since LoadeRunner also uses it with no issue. I'll have to check it out see what the issue.
It would appear LodeRunner indeed has the same issue. The adiw won't take (TILE_WIDTH*(TILE_HEIGHT-1)) as that's 88 when using 8x12 tiles. If I "fix" that by adding 44 twice, it doesn't want to link:

Code: Select all

avr-gcc -mmcu=atmega644 -Wl,-Map=loderunner.map  -Wl,-gc-sections  uzeboxVideoEngineCore.o uzeboxCore.o uzeboxSoundEngine.o uzeboxSoundEngineCore.o uzeboxVideoEngine.o loderunner.o     -o loderunner.elf
loderunner.o: In function `GetTile':
/Users/steve/dev/uzebox/uzebox/demos/LodeRunner/default/../misc.c:68: multiple definition of `GetTile'
uzeboxVideoEngineCore.o:/Users/steve/dev/uzebox/uzebox/demos/LodeRunner/default/../../../kernel/videoMode3/videoMode3core.s:1708: first defined here
loderunner.o: In function `scrollBg':
loderunner.c:(.text.scrollBg+0x10): undefined reference to `getUserRamTilesPtr'
loderunner.c:(.text.scrollBg+0x16): undefined reference to `getUserRamTilesCount'
loderunner.o: In function `blitLevelPreview':
loderunner.c:(.text.blitLevelPreview+0x26): undefined reference to `getUserRamTilesPtr'
loderunner.o: In function `Credits':
loderunner.c:(.text.Credits+0x14): undefined reference to `setUserRamTilesCount'
loderunner.o: In function `GameTitle':
loderunner.c:(.text.GameTitle+0x36): undefined reference to `setUserRamTilesCount'
loderunner.c:(.text.GameTitle+0x3b8): undefined reference to `setUserRamTilesCount'
loderunner.o: In function `main':
loderunner.c:(.text.startup.main+0x6a): undefined reference to `setUserRamTilesCount'
collect2: error: ld returned 1 exit status
make: *** [loderunner.elf] Error 1
Post Reply