Tetris/Julia: Difference between revisions
Content added Content deleted
Line 99: | Line 99: | ||
therefore global variables have to be declared and used |
therefore global variables have to be declared and used |
||
For simplicity Int variables are used; in 64-bit OS versions: 8 Bytes. |
For simplicity Int variables are used; in 64-bit OS versions: 8 Bytes. |
||
In most places Int8 (or |
In most places Int8 (or Int16, Int32) would work. When changing: |
||
take special care as: Int8(1)+1 -> Int64, Int8(1)+0x1 -> |
take special care as: Int8(1)+1 -> Int64, Int8(1)+0x1 -> UInt8. |
||
Only the variable "score" needs to be UInt32 or larger |
Only the variable "score" needs to be UInt32 or larger |
||
Assigning Struct to a variable only creates a reference. |
Assigning Struct to a variable only creates a reference. |