A little sprite-demo (textmode)

The Oric video chip is not an easy beast to master, so any trick or method that allows to achieve nice visual results is welcome. Don't hesitate to comment (nicely) other people tricks and pictures :)
User avatar
Algarbi
Pilot Officer
Posts: 122
Joined: Thu Mar 19, 2009 10:47 pm

Post by Algarbi » Fri Feb 26, 2010 10:02 am

Great start on the Oric Nox.

I come from the C64 too. I have started to code a simple game on the oric, no sprites though :)

User avatar
Nox
Officer Cadet
Posts: 36
Joined: Wed Feb 24, 2010 2:49 pm
Location: Berlin
Contact:

Post by Nox » Sat Feb 27, 2010 3:59 pm

Well, good luck!
Would be nice to have some games to play around with
(I know there are some bigger ones in development...)

User avatar
Twilighte
Game master
Posts: 819
Joined: Sat Jan 07, 2006 12:07 am
Location: Luton, UK
Contact:

Post by Twilighte » Sat Feb 27, 2010 5:32 pm

Wow, that demo is so cool. I'm not sure if the question was asked before but how many characters are used?

User avatar
Nox
Officer Cadet
Posts: 36
Joined: Wed Feb 24, 2010 2:49 pm
Location: Berlin
Contact:

Post by Nox » Sun Feb 28, 2010 12:21 am

Since I use both charsets, I have to work with 80 chars
(using the top 16 chars from StdCharSet for the "status panel").

4 Sprites need 48 chars, so I can use 32 for background-gfx (here A-Z and some punctuation).
Sprites have a size eqal to 3x2 chars, so for drawing I need 4x3 chars for each one.

User avatar
Twilighte
Game master
Posts: 819
Joined: Sat Jan 07, 2006 12:07 am
Location: Luton, UK
Contact:

Post by Twilighte » Wed Mar 03, 2010 2:42 pm

As u have probably discovered normally the last 16 alt characters are not available since their definition would reside at the beginning of the Text screen memory.

However sometimes a neat trick to get all 96 available characters in both std and alt character sets is to create a HIRES Inlay then let the alt character definition overrun into the text screen (hidden by the HIRES Inlay).

User avatar
Nox
Officer Cadet
Posts: 36
Joined: Wed Feb 24, 2010 2:49 pm
Location: Berlin
Contact:

Post by Nox » Wed Mar 03, 2010 6:40 pm

Ok, I try to calculate...
AltChrTable and textscreen are overlapping by 128 bytes.
160 bytes would be 4 lines of text.
So I need a minimum of 32 lines of hires at the top of the screen
(and the maximum is 128 lines before the hiresscreen reaches the StdChrTable).
I will play a bit with that...

And another question: in hires there are 3 lines of text at the bottom.
And there it's possible to print characters, even though the hiresscreen
is using all the the memory for character-definitions.
So the ULA must read the definitions from the ROM I guess.
(and the hires-character-print-function also).
Is it possible for us to do that too?
Or is it possible at least to restore the whole characterset?

User avatar
Dbug
Site Admin
Posts: 3211
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Wed Mar 03, 2010 8:22 pm

The TEXT character sets are from $B400 and $B800 respectively, but the 3 lines of text at the end of the HIRES section uses the adresses $9800 and $9C00.

So technically, if you start in TEXT mode, then at the end of line 25 you insert a SWITCH TO HIRES attribute, you effectively forced the 3 last lines of TEXT to use the other set of adresses.

jbperin
Officer Cadet
Posts: 38
Joined: Wed Nov 06, 2019 11:00 am

Re: A little sprite-demo (textmode)

Post by jbperin » Wed Dec 11, 2019 4:51 pm

Nox wrote:
Wed Feb 24, 2010 3:06 pm

spritedemo.tap
Does anyone have this tap ? I would love to watch this demo and the link seems to be broken .... :?

User avatar
ibisum
Wing Commander
Posts: 1218
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: A little sprite-demo (textmode)

Post by ibisum » Wed Dec 11, 2019 5:08 pm

Not sure if this is the original or something else, I tried to run it in Oricutron but it doesn't seem to work .. anyway, maybe it works for you?
Attachments
spritedemo.tap
(31.83 KiB) Downloaded 56 times

User avatar
Symoon
Archivist
Posts: 1848
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: A little sprite-demo (textmode)

Post by Symoon » Wed Dec 11, 2019 5:35 pm

That's probably it, made by Nox (author of O-Thrust).
Works fine on Euphoric!

christian
Pilot Officer
Posts: 83
Joined: Sun Nov 24, 2013 9:58 pm

Re: A little sprite-demo (textmode)

Post by christian » Wed Dec 11, 2019 6:37 pm

Works with Oricutron too

jbperin
Officer Cadet
Posts: 38
Joined: Wed Nov 06, 2019 11:00 am

Re: A little sprite-demo (textmode)

Post by jbperin » Wed Dec 11, 2019 6:58 pm

ibisum wrote:
Wed Dec 11, 2019 5:08 pm
maybe it works for you?
:o Wow !! This demo is strong .. It's hard to believe that it is done in text mode .. impressive.
It worked nice for me on oricutron . I just pressed Enter after loading with Load Tape (and perhaps à CLOAD"")
Symoon wrote:
Wed Dec 11, 2019 5:35 pm
made by Nox (author of O-Thrust)
Outch .. I didn't know O-Thrust .. so nice .. thanks .. Nox rocks !!

User avatar
peacer
Flight Lieutenant
Posts: 403
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: A little sprite-demo (textmode)

Post by peacer » Wed Dec 11, 2019 7:08 pm

I really like the smooth and fast routine..

I wonder if we can use the code for our own games.. Does it have clashing control ? The sprites seems to able to overlap if they come together..

Post Reply