Skip to content

Commit

Permalink
Merge pull request #185 from omenking/163-controller-framedata
Browse files Browse the repository at this point in the history
#163 set framedata in data and use it. right now at 10 frames
  • Loading branch information
omenking authored Dec 22, 2017
2 parents 170d49b + 3c2213c commit 2fa6c41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renderer/components/playfield_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import {
STARTPOS_PANELCURSOR_SPEED,
RUNNING,
STARTING,
MOVING
MOVING,
PLAYFIELD_CURSOR_SPEED
} from 'core/data';



export default class ComponentPlayfieldCursor {
public cursor_swap_history : Array<any>
private playfield : ComponentPlayfield
Expand Down Expand Up @@ -132,7 +131,7 @@ export default class ComponentPlayfieldCursor {
if (tick == 0)
this.ignore = false;

if (tick > 15)
if (tick > PLAYFIELD_CURSOR_SPEED)
this.ignore = true;

return this.ignore || tick == 0;
Expand Down
1 change: 1 addition & 0 deletions src/renderer/core/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const WIN_HEIGHT = 224 * 2;
export const MENUCURSORBLINK = 12;

export const STARTPOS_PANELCURSOR_SPEED = 6;
export const PLAYFIELD_CURSOR_SPEED = 10;

export const GARBAGE_SHAKE = [
[
Expand Down

0 comments on commit 2fa6c41

Please sign in to comment.