FUED
Abandoned Uranium Working

Posts: 17
|
Post by FUED on Oct 9, 2021 1:18:11 GMT
Is there a way to do so? or just type of blocks? I would like to request a location on screen and know the block number.
|
|
FUED
Abandoned Uranium Working

Posts: 17
|
Post by FUED on Oct 18, 2021 22:10:02 GMT
Venturing the depths of the forum, it seems not possible, only block type can be queried. I guess I will have to control my use of type of blocks more carefully and planned.
|
|
|
Post by oss003 on Oct 19, 2021 20:20:07 GMT
Only the block types are stored in the map. Block numbers are only used when a screen is drawn and not stored. So if you want to get the block number, you have to unpack the screen and compare the unpack pointer with the x,y you want. Another way is to also store the block numbers in a 768 bytes table and write a routine to read the block number from the table. This can be done in USER.ASM
|
|
FUED
Abandoned Uranium Working

Posts: 17
|
Post by FUED on Oct 20, 2021 4:31:28 GMT
Only the block types are stored in the map. Block numbers are only used when a screen is drawn and not stored. So if you want to get the block number, you have to unpack the screen and compare the unpack pointer with the x,y you want. Another way is to also store the block numbers in a 768 bytes table and write a routine to read the block number from the table. This can be done in USER.ASM Thanks for the clear explanation.  According to that, it feels that in my use case, it will be better to work out the types in an economic way as they will probably do the deed. But it is good to know that it is possible. Thanks again!
|
|