Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Leftmost sprite position and opening borders
2014-12-10 22:17
Parody

Registered: Jul 2013
Posts: 7
Leftmost sprite position and opening borders

I just noticed that x=0 for a sprite doesn't cover the "start" of the left side border, Is there any way to achieve this?
 
... 37 posts hidden. Click here to view all posts....
 
2014-12-11 16:04
Mixer

Registered: Apr 2008
Posts: 452
Chuck Norris was playing Exploding Fist, once his character kicked so hard that the borders opened and have been open for him ever since.
2014-12-11 16:12
jailbird

Registered: Dec 2001
Posts: 1578
Hey Mixer, while you're here! Your sid from 3rd Stone from the Sun is one of the best C64 musics ever. Just so you know.
2014-12-12 07:01
Cresh

Registered: Jan 2004
Posts: 354
Cannot agree more. But originally it is from Tour De Force
2014-12-12 09:07
JackAsser

Registered: Jun 2002
Posts: 2014
@Oswald: There are 63 cycles on a raster line, thus 63*8 = 504 pixels available, not 512. It's easy as that. Somewhere it has to wrap.
2014-12-12 11:53
WVL

Registered: Mar 2002
Posts: 902
Never did anything with ntsc machines, but will there be a gap with these machines (since they have 65 cycles) where you can't put any sprites?
2014-12-12 12:44
Oswald

Registered: Apr 2002
Posts: 5094
Quote: @Oswald: There are 63 cycles on a raster line, thus 63*8 = 504 pixels available, not 512. It's easy as that. Somewhere it has to wrap.

thanks, that makes some sense.

tho the inner xcoo should still be 9 bits, right, there can not be a 8.95 bits counter so it wraps at 504 ? :)

or is it just the misalignment, that x =0 is not on the leftmost position...


not trying to be an ass here, just wondering :)
2014-12-12 13:27
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
or is it just the misalignment, that x =0 is not on the leftmost position...

its an arbitrary position that was chosen so when sprite x position is 0, the sprite is hidden behind the left border.

and of course, the counter is 9 bits :)
2014-12-12 14:55
Oswald

Registered: Apr 2002
Posts: 5094
that makes sense again, tho it seems they forgot about x stretched sprites :)
2014-12-12 18:27
JackAsser

Registered: Jun 2002
Posts: 2014
Quoting Groepaz
Quote:
or is it just the misalignment, that x =0 is not on the leftmost position...

its an arbitrary position that was chosen so when sprite x position is 0, the sprite is hidden behind the left border.

and of course, the counter is 9 bits :)

It's not a counter, it's a compare register. If raster x>compare x then shift pixels from shift register.
2014-12-12 19:22
chatGPZ

Registered: Dec 2001
Posts: 11386
of course, raster X is the counter :)
Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
MWR/Visdom
Alakran_64
E$G/HF ⭐ 7
The MeatBall
Guests online: 87
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.082 sec.