Part 1: Basically binary works in squares of 2. A byte is 8 bits, and a bit is one digit (0 or a 1). In one byte, you have 8 digits, and every digit represents a number. The numbers are a pattern of 2 to the power of that digit's place in the number. For example, for a byte the first digit would represent 2^7th, the second would represent 2^6th, the third, 2^5th, fourth 2^4th, fifth2^3rd, sixth 2^2nd, seventh 2^1st, and finally the eighth, 2^0 (128,64,32,16,8,4,2,1) this corresponds to the digits in a byte - 0 0 0 0 0 0 0 0. A 0 in the sequence means the number corresponding to it is off, and a 1 means the number is on. For every number that is on, you add it to the total number, and then you get the final amount.
Part 2: For example, 00000001 would be the number 1, since only the last digit is on and it corresponds to the first square of 2, which is 0 (2^0 = 1). 00000010 would be 2, since 2^1 = 2. Now, when you get a byte with 2 digits on, you must add all the 'on' numbers. 00000011 would be 3, because you the number you get is the sum of all numbers in the sequence (1 + 2 = 3). So when you get a big number like 10101010, you must add the total of all the corresponding numbers. (128 + 0 + 32 + 0 + 8 + 0 + 2 + 0) = (160 +10) = (170).
Hope this helped :P
I was excited at first when i read the description... but then i played the game and it wasn't nearly as good as i thought it would be. Sorry, i really like the concept though.
If you want the background to loop properly, here is the code.
class Background extends MovieClip { function onEnterFrame() { _x -= 7; if(_x < -2110) { _x = 2100; } } }
The tutorial only makes it loop once.
Wait dont copy that last one this one is fixed
9-9-0---1---9-9----80-0---0-0---3-0---9880-0---9---9---8877789234543280---0---88889--c-c---------c-c-----0-0---0-0------------0-0---a---a------------------0---0---c------6-6-5-7-5-7-6-6-11236-6---6-6---a28-8209-6-6---a---a------------------0---0---a------
Its called - The ode to an incredibly awesome song
9-9-0---1---9-9----80-0---0-0---3-0---9880-0---9---9---8877789234543280---0---88889--c-c---------c-c-----0-0---0-0------------0-0---a---a------------------0---0---c------6-6-5-7-5-7-6-6-11236-6---6-6---a28-8209-6-6---a---a-------