Release

tennis

8

Cclx33 2019-04-22 16:23

z,x to serve or hit.

tennis.nx | Open in app
2019-04-22 16:23

was8bit 2019-04-22 16:56

Amazingly super terrific fantastic !!! :D


Timo 2019-04-22 17:54

Nice! But the default background color doesn’t fit, do you know how to change it? It’s color 0 of palette 0.


Timo 2019-04-22 17:55

And you could use the priority attribute to keep text on top of sprites.


dredds 2019-04-22 19:09

Nice! Would be good with a multiplayer option.


If you draw the net with priority 1, and the shadow with priority 0, then the shadow will be drawn under the net, instead of on the net which looks a bit weird.


Cclx33 2019-04-23 03:52

I do a test.

REM PRIORITY TEST

ATTR(,,,1)
CELL 1,1,1

SPRITE 2,3,3,3
SPRITE 3,6,6,2
PRINT "A"

LOCATE 0,3
INPUT "PRIORITY TEST:"; A$

SPRITE.A 3,(,,,1)

INPUT A$

SPRITE.A 2,(,,,1)


#2:MAIN CHARACTERS
00000000000000000000000000000000
FFFFFFFFFFFFFFFF0000000000000000
0000000000000000FFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

But how to exchange the priority of sprite 2 and 3?


was8bit 2019-04-23 04:14 (Edited)

SPRITE.A n,(pal,fx,fy,pri,s)

So

SPRITE.A 2,(,,,1,)

Which is what you’ve done...

This helps keep sprites above tiles (cell images) but sprites layer with each other in order of their sprite numbers... so SPRITE 0 is always above all other sprites, SPRITE 1 is always above sprites 2-64, SPRITE 2 is always above sprites 3-63, etc... and sprite 63 is always below all other sprites...

So, assign their numbers in the order you want them layered...


Cclx33 2019-04-23 05:17

I see.
Thank you


Toddl 2019-04-24 19:14

Cool


Cclx33 2019-04-25 02:46

Thank you


was8bit 2019-04-25 04:35

:)


Log in to reply.