|
Post by tomasiano74 on Dec 18, 2023 13:03:16 GMT
Hello, does anyone know where you can reduce the size of the laser shot to fewer pixels?
I've looked at EngineZX but haven't found it.
Thank you!
|
|
|
Post by pachic on Dec 22, 2023 17:54:58 GMT
Tomasiano maybe is not a number in the code , maybe is a colission, I ll check the engine
|
|
|
Post by pachic on Dec 22, 2023 18:02:15 GMT
laser ld a,(ix+1) ; direction. rra ; left or right? jr nc,laserl ; move left. ld b,8 ; distance to travel. jr laserm ; move laser. laserl ld b,248 ; distance to travel. laserm ld a,(ix+5) ; y position. add a,b ; add distance. ld (ix+5),a ; set new y coordinate.
sera algunas de las cargas en b? si tenes un proyecto donde usas laser, me lo pasas y te ayudo con las pruebas a ver si hay algo que lo controle o cuanto costaria colocarlo saludos
|
|
|
Post by tomasiano74 on Dec 22, 2023 20:44:52 GMT
Thank you for your response, I simply want to remove some pixels from the default 8, it is only an aesthetic issue, I have looked again and modified parameters but I cannot reduce it. Thanks again Attachments:
|
|
|
Post by pachic on Dec 23, 2023 4:03:50 GMT
ok that is here plot1 call scadd ; screen address. ld a,(hl) ; fetch byte there. cpl ; toggle all bits. ld (hl),a ; here put the laser in screen ret
but isnt easy as modify "a" we have to analyze more
|
|
|
Post by pachic on Dec 23, 2023 4:10:30 GMT
ok, u mean I want to modify the byte 255 by other one different. the byte that represent laser bullet is not in any place with the instruction cpl he use a xor over 255 in register a and that is all delete and print doing the same for change the 255 we have to do a new routine and use a different byte and change the cpl by an xor
|
|
|
Post by pachic on Dec 23, 2023 4:19:36 GMT
ready, change "cpl" by "xor 10" and see the result. u can change 10 by the number that u like example 12 to easy regards
|
|
|
Post by tomasiano74 on Dec 23, 2023 5:55:47 GMT
Thank you so much!! It works perfectly.
Greetings and merry christmas
|
|