Tux the albion Penguin
Resident Linux User
Nothing. I'm using Linux
SELECT reelstatus[ctr]
CASE 0 // reel at rest
// Nothing required for this case, they dont need updating
CASE 1 // reel is spinning
// step the symbol round by the desired step size
reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/stepsize[ctr])
// have we moved round another symbol? if so update the current position
IF reelstep[ctr] >= reel_y_size[ctr]
reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr])
reelstep[ctr]=0
ENDIF
CASE 2 // reels are spinning but a stop has been issued
// step the symbol round by the desired step size
reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/stepsize[ctr])
// have we moved round another symbol? if so update the current position
IF reelstep[ctr] >= reel_y_size[ctr]
reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr])
reelstep[ctr]=0
ENDIF
IF reelpos[ctr] = nextpos[ctr]
reelstatus[ctr]=4 // have we moved onto the symbol we want to stop at? if so enter bounce phase
reelstep[ctr]=10 // set a value to bounce back
ENDIF
CASE 3 // nudge a reel one symbol
// step the symbol round by the desired step size
reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/9)
// have we moved round another symbol? if so update the current position
IF reelstep[ctr] >= reel_y_size[ctr]
reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr])
reelstatus[ctr]=0
reelstep[ctr]=0
ENDIF
CASE 4 // reels are bouncing back to rest
//step the symbol back 2 pixels
reelstep[ctr] = reelstep[ctr] - 2
// have we bounced back to rest position?
IF reelstep[ctr] = 0 THEN reelstatus[ctr]=0
ENDSELECT
Not that interesting mine
Code:SELECT reelstatus[ctr] CASE 0 // reel at rest // Nothing required for this case, they dont need updating CASE 1 // reel is spinning // step the symbol round by the desired step size reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/stepsize[ctr]) // have we moved round another symbol? if so update the current position IF reelstep[ctr] >= reel_y_size[ctr] reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr]) reelstep[ctr]=0 ENDIF CASE 2 // reels are spinning but a stop has been issued // step the symbol round by the desired step size reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/stepsize[ctr]) // have we moved round another symbol? if so update the current position IF reelstep[ctr] >= reel_y_size[ctr] reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr]) reelstep[ctr]=0 ENDIF IF reelpos[ctr] = nextpos[ctr] reelstatus[ctr]=4 // have we moved onto the symbol we want to stop at? if so enter bounce phase reelstep[ctr]=10 // set a value to bounce back ENDIF CASE 3 // nudge a reel one symbol // step the symbol round by the desired step size reelstep[ctr] = reelstep[ctr] + (reel_y_size[ctr]/9) // have we moved round another symbol? if so update the current position IF reelstep[ctr] >= reel_y_size[ctr] reelpos[ctr] = MOD(numsyms[ctr]+reelpos[ctr] - 1,numsyms[ctr]) reelstatus[ctr]=0 reelstep[ctr]=0 ENDIF CASE 4 // reels are bouncing back to rest //step the symbol back 2 pixels reelstep[ctr] = reelstep[ctr] - 2 // have we bounced back to rest position? IF reelstep[ctr] = 0 THEN reelstatus[ctr]=0 ENDSELECT
Couple of points... you don't need to use final on the class or main method, main takes String[] args, you should ideally start from 0 in java, not 1 when counting up and there is no point creating a new int - just log ("Generated : "+randomGenerator.nextInt(100)); seeing as that variable will only be visible in the loop.
Carry on
Nothing. I'm using Linux
Copy and paste works on Linux too...