Search found 151 matches

by POLYGAMe
Mon Feb 22, 2016 8:16 am
Forum: SGDK
Topic: is a fix32 positive only?
Replies: 4
Views: 3339

Re: is a fix32 positive only?

Here's a video showing what I mean:

https://www.youtube.com/watch?v=bAfB155 ... e=youtu.be
by POLYGAMe
Mon Feb 22, 2016 7:30 am
Forum: SGDK
Topic: is a fix32 positive only?
Replies: 4
Views: 3339

is a fix32 positive only?

I am having problems with numbers less than zero in scrolling my road. It works fine scrolling right but when I scroll left and it gets below zero it turns to garbled gfx. Is fix32 positive only or perhaps the problem is with the fix32toint function? What other options are there?
by POLYGAMe
Sun Feb 21, 2016 11:03 pm
Forum: SGDK
Topic: Is there a tool to tell how many tiles I'm using?
Replies: 4
Views: 3562

Re: Is there a tool to tell how many tiles I'm using?

It depends what qualifies as "using" - all tiles are "in use" at all times I guess. Do you want to keep a counter of how many tiles you've uploaded to VRAM, or determine if a specific art asset is going to fit at compile time? I'm from an assembler background so mileage may vary, but my game has a ...
by POLYGAMe
Sat Feb 20, 2016 8:58 pm
Forum: SGDK
Topic: Is there a tool to tell how many tiles I'm using?
Replies: 4
Views: 3562

Is there a tool to tell how many tiles I'm using?

I seem to remember seeing screenshots in one of the threads of an app that gives detailed VDP data but I can't find it. Anyone know where I could get it? Want to keep an eye on my tile count.
by POLYGAMe
Sun Feb 14, 2016 5:14 am
Forum: SGDK
Topic: Issue with scrolling that I just can't fix
Replies: 3
Views: 3466

Re: Issue with scrolling that I just can't fix

r57shell wrote:write equations, how much should be scroll on top of road.
and you'll see your bug.
reason is because you're calculating from bottom.
Looks like you were right. I combined the two into one function and made it less messy and counted through all 224 lines in sequence and it works. Cheers!
by POLYGAMe
Sun Feb 14, 2016 3:26 am
Forum: SGDK
Topic: Issue with scrolling that I just can't fix
Replies: 3
Views: 3466

Re: Issue with scrolling that I just can't fix

write equations, how much should be scroll on top of road. and you'll see your bug. reason is because you're calculating from bottom. Each plane is counting in different directions and meeting in the middle. The numbers are correct and even if they weren't I'm controlling the scrolling of the plane...
by POLYGAMe
Sat Feb 13, 2016 2:27 am
Forum: SGDK
Topic: Issue with scrolling that I just can't fix
Replies: 3
Views: 3466

Issue with scrolling that I just can't fix

So I've checked EVERYTHING and I can't see what's wrong. When I bend my road and leave the sky still, it works properly. My road bends to make a corner and the sky stays still. Sky not scrolling - road bent.png When I scroll the sky but don't bend the road, that also works, I get a straight road and...
by POLYGAMe
Fri Feb 12, 2016 9:19 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

alko wrote:Could share code of sprite-scaling from gasega's wolfenstein3d ?
Wouldn't be much use to me as it would all be assembly, wouldn't it?
by POLYGAMe
Thu Feb 11, 2016 5:49 am
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

Well he certainly backs himself! Haha
by POLYGAMe
Wed Feb 10, 2016 5:41 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

I tweeted Jon Burton who coded it and he said:

"very trick code for sure. Involving mirrored screens, palette swaps and massive code tables..."

Sounds like a raycasting engine, eh?
by POLYGAMe
Wed Feb 10, 2016 8:55 am
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

There are houses and stuff that scale too and they're not mirrored... I think you're right though. It's very cool. Shame it was the only fun level in the game. lol. EDIT: Just checked it. It's the trucks that aren't mirrored. Everything else seems to be. Trucks could be too with wheels overlaid or s...
by POLYGAMe
Sat Feb 06, 2016 7:57 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

Yeah some games use real time scaling, Road Rash is the first coming to mind but Toy Story does it as well and in a very smooth way : https://youtu.be/oWxAWEC4nkk?t=1521 Note the SNES version does not have this level, probably because it couldn't handle it. Toy Story is very impressive on many aspe...
by POLYGAMe
Fri Feb 05, 2016 10:23 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

I believe Road Rash had software sprite scaling. Wasn't the smoothest game but it worked well.
by POLYGAMe
Fri Feb 05, 2016 7:52 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

I could just update it every ten frames or something. I know it will look jerky but so does swapping out sprites for bigger ones.
by POLYGAMe
Fri Feb 05, 2016 1:50 pm
Forum: SGDK
Topic: Is it possible to 'scale' sprites?
Replies: 25
Views: 16451

Re: Is it possible to 'scale' sprites?

Yeah. I think I'll just draw bigger and bigger sprites and 'scale' them in gimp so it will at least look like I'm scaling them. I like the look of the sprites in games like Outrun (arcade version) how they get big and blocky when close. I just need to be careful of tile count as the ground is textur...