Sprites management

Página 3/3
1 | 2 |

Por PingPong

Prophet (4093)

Imagen del PingPong

09-02-2019, 01:42

thegeps wrote:

...
I don't understand yours explaination here... all those ++, +=, while and braces...
if it's C, or pascal or mathlab or something else, I don't know it...
so if all those stuff means it's equal to, or its greater than, or maybe "you have to add 2 else a baby will cry five houses far from yours"... well tell me the things as they are Crying
if I can't understand your examples I will not improve myself. I don't want to do a copy/paste from other's code to achieve a result. I wanna understand what I do.
Thanks for your understanding me...

var++ -> means ld a,(address_of_var) inc a; ld (address_of_var), a;

+= something is a shortcut for var = var + something;

braces are used to sourround a group of instructions to be executed if a condition is true;
ex:
while ( condition )
{
instructions that are executed until condition became false in a loop
}
so
while ( counter > 0 )
{
....
.....
counter--;
}
next:
is a loop that count back from counter value to 0. when variable counter reach zero the loop exit and execution continue on the next statement "next"

Por thegeps

Paragon (1167)

Imagen del thegeps

09-02-2019, 02:15

Thank you PingPong Smile

Por thegeps

Paragon (1167)

Imagen del thegeps

10-02-2019, 00:08

New video added (and new step forward): Added Early Clock bit (smooth disappearance/appearance on left border) and all borders sprites deactivation. Added few movement patterns to check all borders:

https://youtu.be/HD21WjoESVE

Por hit9918

Prophet (2927)

Imagen del hit9918

10-02-2019, 01:31

it is nice sprite action but what about the cpu load together with the background

Por thegeps

Paragon (1167)

Imagen del thegeps

10-02-2019, 02:31

Soon I'll try to merge them togheter. And I tried your jr c solution but it couldn't works, cause it destroys sprites whenever I add a negative value... But I found a solution after all (a lot of time, some headaches too, but I did it u.u)

Página 3/3
1 | 2 |