Method of encrpytion of worldcompressing tile data
SoI'm making a game, in which a row of tiles may look something like this, in which each block is represntedrepresented with a unicode char:
"gggggggggggggggggggggggggggggggggggtttttttttjjjjjjjjjjjjjjj"
So my method of encryptioncompression shortens it to this (I may have the numbers wrong, it is just for demonstration):
"g23 t9 j17"
Seems fairly simple right?
My friend suggests to use an enum and represent each block with a number and work with bytes, reasoning that numbers are faster to compare
So it may look something like this 0001 0002 0004 0003 0034
I said that using this is pain, and saving a few ms isntisn't gonna help the pain I have to go through
ImI'm using C# and Unity, which method should I use for encrypting and compressing world data?
Method of encrpytion of world data
So making a game, in which a row of tiles may look something like this, in which each block is represnted with a unicode char:
"gggggggggggggggggggggggggggggggggggtttttttttjjjjjjjjjjjjjjj"
So my method of encryption shortens it to this (I may have the numbers wrong, it is just for demonstration):
"g23 t9 j17"
Seems fairly simple right?
My friend suggests to use an enum and represent each block with a number and work with bytes, reasoning that numbers are faster to compare
So it may look something like this 0001 0002 0004 0003 0034
I said that using this is pain, and saving a few ms isnt gonna help the pain I have to go through
Im using C# and Unity, which method should I use for encrypting and compressing world data
Method of compressing tile data
I'm making a game in which a row of tiles may look something like this, in which each block is represented with a unicode char:
"gggggggggggggggggggggggggggggggggggtttttttttjjjjjjjjjjjjjjj"
So my method of compression shortens it to this (I may have the numbers wrong, it is just for demonstration):
"g23 t9 j17"
Seems fairly simple right?
My friend suggests to use an enum and represent each block with a number and work with bytes, reasoning that numbers are faster to compare
So it may look something like this 0001 0002 0004 0003 0034
I said that using this is pain, and saving a few ms isn't gonna help the pain I have to go through
I'm using C# and Unity, which method should I use for compressing world data?
Method of encrpytion of world data
So making a game, in which a row of tiles may look something like this, in which each block is represnted with a unicode char:
"gggggggggggggggggggggggggggggggggggtttttttttjjjjjjjjjjjjjjj"
So my method of encryption shortens it to this (I may have the numbers wrong, it is just for demonstration):
"g23 t9 j17"
Seems fairly simple right?
My friend suggests to use an enum and represent each block with a number and work with bytes, reasoning that numbers are faster to compare
So it may look something like this 0001 0002 0004 0003 0034
I said that using this is pain, and saving a few ms isnt gonna help the pain I have to go through
Im using C# and Unity, which method should I use for encrypting and compressing world data