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 > CSDb Entries > Release id #3310 : Mentallic
2005-07-10 22:09
Radiant

Registered: Sep 2004
Posts: 639
Release id #3310 : Mentallic

There has been some discussion in the release comments about how the "9 sprite trick" in the last part is achieved. Some have said that one of the letters (the 'I') is made using the $3fff (or whatever bank) byte. But wouldn't that be impossible to achieve, due to the requirement of exact timing?

I really haven't played around much with that byte, but I figure it would need to be changed at exactly the right cycle, and then immediately changed back the next - which, unless I'm mistaken, is impossible without utilizing a REU or something.
2005-07-11 07:13
Ninja

Registered: Jan 2002
Posts: 411
iopop is correct. The "i" is done using $D016. For example, if you change the screen-x-offset from leftmost to rightmost in the middle of the screen, you create a "hole" showing the background color. Really neat trick!
2005-07-11 07:24
JackAsser

Registered: Jun 2002
Posts: 2014
It becomes even better when crossbow does characters with holes in them (see Krestage, Krestage). Now how's that possible? =D
2005-07-11 07:43
Ben
Account closed

Registered: Feb 2003
Posts: 163
As far as Mentallic goes, set $d015 to 0 and $3fff to e.g. $55, for good fun..
2005-07-11 10:50
Spinball

Registered: Sep 2002
Posts: 88
wasn´t that $d016 trick invented by cruzer?

One Year Camelot 3 (last part)
2005-07-11 11:13
Graham
Account closed

Registered: Dec 2002
Posts: 990
The first demo with the "$D016 gap trick" which comes to my mind is indeed 1 Year Camelot III. The disadvantage of that trick is that you can only produce a gap of 1-7 pixels and not any byte pattern, so Crossbow/Crest later invented another trick in "Krestage" which can display ANY byte.
2005-07-11 13:10
JackAsser

Registered: Jun 2002
Posts: 2014
@graham: For the all mighty CSDB record, how does that trick work?
2005-07-11 14:24
HCL

Registered: Feb 2003
Posts: 728
Just read the answer in the code :).

;prepare..
LDA #$ff
STA $3FFF
LDA #COLOR
STA $D021

;put gfx..
LDX #PATTERN
LDA #0
STX $3FFF
STA $D021

Strange enough, $3fff seems to be updated 2 cycles slower than $d021.. So we get two bytes of gfx. Set $d016 to #$cf and 7 pixels will go away.. left is 9 pixels, where two of them are copies of the same 3fff-bit. That gives us 7 pixels to make a random pattern of. Done :).
2005-07-11 14:26
CyberBrain
Administrator

Posts: 392
Much of this was already discussed at 9th Sprite so check that thread aswell
2005-07-11 14:57
Graham
Account closed

Registered: Dec 2002
Posts: 990
@HCL: Why "strange enough"? It's obvious because before the VIC can display the byte, it first has to be fetched from memory and be passed to the bitmap shifter.
2005-07-11 17:09
Tch
Account closed

Registered: Sep 2004
Posts: 512
Thanx guys...I keep on learning. 8)

But probably I´ll never use this knowledge.
Nice trick though and I really like the demo.
Anyway,Panoramic Designs always had a special place in my heart.
Ahead of their time!!
2005-07-12 06:41
HCL

Registered: Feb 2003
Posts: 728
@Graham: Oh, of course.. And $d021 uses the kitchen door to get into the screen faster, right ;). Hmm, it's obvious that i make some dudes here look kinda stupid, and it's equally clear that you make me look stupid :))). So be it.
2005-07-12 09:45
Graham
Account closed

Registered: Dec 2002
Posts: 990
Hehe :)
2005-07-12 13:54
WVL

Registered: Mar 2002
Posts: 902
when it comes to looking stupid, who doesn't when he (or she) is being compared to crossbow? ;-)

btw, I don't think either of you guys look stupid, but I do think HCL shouldn't wear any baseball caps and Graham should try to avoid the Gul-Dukat look a bit more :-)

anyway, so actually the scroller in Krestage can have a mix width of 7 pixels then? (or 9 ofcourse, but that's not totally free)... hmmm.. well, doesnt really matter, most charsets only use 7 pixels anyway.
2005-07-12 15:21
Graham
Account closed

Registered: Dec 2002
Posts: 990
No, I tried it yesterday. You only get 6 pixels.
2005-07-13 11:26
HCL

Registered: Feb 2003
Posts: 728
Hmm, that's really strange. Xbows scroller is also only 6 pixels wide, so probably that's it.
2005-07-14 07:30
WVL

Registered: Mar 2002
Posts: 902
only 6 pixels? I have to try this too :-)
2009-05-13 07:05
Scout

Registered: Dec 2002
Posts: 1570
This demo needs more exposure!
2009-05-13 07:56
WVL

Registered: Mar 2002
Posts: 902
And also, i still didnt try it.
2009-05-13 13:38
Clarence

Registered: Mar 2004
Posts: 121
Now that you brought this thread back to life, I remember
the inspiration to do the lower border 10 sprites dycp in Irrational, came from this discussion.

There you have two arbitrary seven pixels wide patterns, and for the first time in the history (of these kind of 3fff based tricks) the effect uses *non-black* background. :)
Ofcourse I'm not called Xbow, so nobody gives a shit when somebody else does something like that. :D
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
Sychamis
DanPhillips
Guests online: 86
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 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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