Library: PlayerTrick

sunsuncongrats

License: MIT License

Fork
0
Fav
0
View
283
  • Play

Fullscreen

Smart Phone

  • Readme
  • JavaScript 198 lines
  • HTML 16 lines
  • CSS 3 lines
指定の時間ににさしかかったら、コールバックさせる機能。
このサンプルは2.5秒~7.5秒の間にTRICK NOWという文字を表示させる。

var player = new PlayerTrick;
var trick = new PlayerTrickNode(2.5/*開始秒*/, 7.5/*終了秒*/);
player.duration = 10;
player.addTrick(trick);
trick.ontrickstart = function () {
// スタート
};
trick.ontrickend = function () {
// エンド
};

require: Library: Callbacks
require: Library: OriginalEventTarget
require: Library: Player
  • Library: PlayerTrick
  • Library: Player
  • Library: OriginalEventTarget
  • Library: Callbacks
  • Knockout.js v2.1.0
  • Library: PlayerTrick

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags