AdeO
PooP MonkeeH
Posts: 5
|
Post by AdeO on Mar 29, 2017 0:23:58 GMT -5
Hi, my goal is a game like Battlezone for Atari 2600, but with the T-14 Armata, and I would like to know if there is a simple way to create tiles from char, like: DIM oneLineRepeat AS STRING = "00F1C00" my_tile: DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat DATALONG $oneLineRepeat And also, whats the best way to concat strings with BEX? Thank you in advanced!
|
|
AdeO
PooP MonkeeH
Posts: 5
|
Post by AdeO on Sept 16, 2018 3:01:29 GMT -5
Problem partially solved so far... There's no better way to concat than: string_concat$ = string1$+ string2$
But after making several functions, I still can't return a valid long for the labels. And as long hex$() doesn't help me with VdpRamRead(<even_address>), I made my own a function that will return only a 4 bytes long hex, like the C "%.4X", I hope it may help someone in the future: (For some reason, include don't work always, so copy and paste at the end of your code COMPLETELLY IGNORE THAT "copyright" thing, it's my craze, I do that on "autopilot") *HexUint.BEX ---> convert a Hex string into an unsigned integer *UintHex.BEX ---> convert a unsiged integer into a Hex string HexUint.bex (2.69 KB) UintHex.bex (2.21 KB)_
|
|