区块链技术博客
www.b2bchain.cn

This game is launching on Ethereum soon! Amazing, isn’t it? (v.redd.it). 5 . . . siddartha14924 commentssharesavehidereportUsing giant raccoons as the creature for the mounted units in my RTS game!272 .•44 comments•. 1 day . . Hash_Rush to r/indiegames(function() { var thing = {“obfuscatedPosterUrl”: null, “context”: “comments”, “isGif”: false}; var autoplay = true; if (thing.obfuscatedPosterUrl){ autoplay = false; } if (r.config && !r.config.pref_video_autoplay && thing.context === “comments”) { autoplay = false; } var play_pause_click_action = autoplay ? “pause” : “play”; var play_pause_click_toggle_action = autoplay ? “play” : “pause”; var play_pause_vector_from = autoplay ? “m5,5l15,7.5l0,15l-15,7.5l0,-30m15,7.5l15,7.5l0,0l-15,7.5l0,-15” : “m5,5l12,0l0,30l-12,0l0,-30m18,0l12,0l0,30l-12,0l0,-30”; var play_pause_vector_to = autoplay ? “m5,5l12,0l0,30l-12,0l0,-30m18,0l12,0l0,30l-12,0l0,-30” : “m5,5l15,7.5l0,15l-15,7.5l0,-30m15,7.5l15,7.5l0,0l-15,7.5l0,-15”; var videoPlayerElement = $(“#video-hu9owi”); var isMobile = r.utils.isMobile(); var canPlayDash = (typeof (window.MediaSource || window.WebKitMediaSource) === “function”); var videoOptions = { id: videoPlayerElement.data(“id36”), linkUrl: videoPlayerElement.data(“linkUrl”), src: canPlayDash ? videoPlayerElement.data(“mpdUrl”) : videoPlayerElement.data(“hlsUrl”), type: canPlayDash ? RedditVideoPlayer.Types.MPD : RedditVideoPlayer.Types.HLS, autoplay: autoplay, poster: null, loop: false, orientation: videoPlayerElement.data(“orientation”), }; if (isMobile) { videoOptions.enableStorage = false; videoOptions.uiControls = false; if (thing.isGif) { videoOptions.clickAction = RedditVideoPlayer.ClickActions.NONE; } else { videoOptions.controls = true; } } var redditVideoPlayer = new RedditVideoPlayer(videoPlayerElement, videoOptions); videoPlayerElement.data(“video-player-object”, redditVideoPlayer); redditVideoPlayer.setAspectRatio(videoPlayerElement.data(“videoHeight”) / videoPlayerElement.data(“videoWidth”)); if (!isMobile) { var bufferingControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var bufferingControlsOptions = { behavior: RedditVideoController.Behaviors.BUFFERING, startVisible: false, fadeInDuration: 0, fadeOutDuration: 0, }; var bufferingControls = new RedditVideoController(bufferingControlsTree, bufferingControlsOptions); redditVideoPlayer.addUiController(bufferingControls); var pinnedHeight = videoPlayerElement.data(“pinnedHeight”); var pinnedWidth = videoPlayerElement.data(“pinnedWidth”); var maxPinnedWidth = videoPlayerElement.data(“maxPinnedWidth”); $(document.body).on(‘pinnable:pinned’, function(event) { videoPlayerElement.css(‘height’, pinnedHeight); videoPlayerElement.css(‘width’, pinnedWidth); videoPlayerElement.closest(‘.thing’).find(‘.top-matter’).css(‘left’, pinnedWidth + 95); }.bind(this)); $(document.body).on(‘pinnable:unpinned’, function(event) { videoPlayerElement.css(‘height’, ”); videoPlayerElement.css(‘width’, ”); }.bind(this)); var pinnedControlMargin = 12 * Math.pow(pinnedWidth / maxPinnedWidth, 2); var pinnedControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var pinnedControls = new RedditVideoController(pinnedControlsTree); redditVideoPlayer.addUiController(pinnedControls); var endedControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ‘Replay Video’ + ” + ” ); var endedControlsOptions = { behavior: RedditVideoController.Behaviors.COMPLETED, startVisible: false, fadeInDuration: 400, fadeOutDuration: 0, }; var endedControls = new RedditVideoController(endedControlsTree, endedControlsOptions); redditVideoPlayer.addUiController(endedControls); var playbackControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ‘0:00’ + ” + ” + ” + ” + ‘0:00’ + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var playbackControlsOptions = { behavior: RedditVideoController.Behaviors.MOUSE_MOVE, }; var playbackControls = new RedditVideoController(playbackControlsTree, playbackControlsOptions); redditVideoPlayer.addUiController(playbackControls); if (r.config && !r.config.pref_video_autoplay && thing.context === “comments”) { var interstitialControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” ); var interstitialControlsOptions = { behavior: RedditVideoController.Behaviors.INTERSTITIAL, startVisible: true, fadeInDuration: 0, fadeOutDuration: 400, }; var interstitialControls = new RedditVideoController(interstitialControlsTree, interstitialControlsOptions); redditVideoPlayer.addUiController(interstitialControls); } $(playbackControlsTree).find(‘input.settings’).change(function() { if ($(this).is(‘:checked’)) { firePlayerEvent.call(redditVideoPlayer, null, null, {verb: ‘click’, noun: ‘settings’}); redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.NONE); } else { redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.PLAY_PAUSE); } }); } if (isMobile && thing.isGif) { $(videoPlayerElement).find(“video”).bind(“webkitendfullscreen”, function() { this.play(); }); redditVideoPlayer.mute(); } $(document.body).on(“interstitial:destroy”, function(event) { if (“t3_hu9owi” == event.expando.id) { redditVideoPlayer.play(); } }); var parent = $(“#media-preview-hu9owi”).parent(); var hadInterstitial = parent.hasClass(“expando”) && !(parent.hasClass(“expando–with-interstitial”)) && !(parent.hasClass(“expando-uninitialized”)) && “” != “”; if (hadInterstitial && !isMobile) { $(videoPlayerElement).find(“video”)[0].addEventListener(“canplay”, function() { redditVideoPlayer.play(); }) } var playPauseButtons = $(videoPlayerElement).find(“button.play-pause”); var isPlaying = autoplay; redditVideoPlayer.addActionCompletedCallback(function(action, value) { if ((action == RedditVideoPlayer.Actions.PLAY && !isPlaying) || (action == RedditVideoPlayer.Actions.PAUSE && isPlaying)) { playPauseButtons.each(function() { var animation = $(this).find(‘animate’).first(); var to = animation.attr(‘to’); var from = animation.attr(‘from’); animation.attr({ “from”: to, “to”: from }); if (‘beginElement’ in animation[0]) { animation.get(0) .beginElement(); } else { var path = $(this).find(‘path’); path.attr({“d”: from}); } }); isPlaying = !isPlaying; } else if (action == RedditVideoPlayer.Actions.NONE && thing.isGif && isMobile) { redditVideoPlayer.toggleFullScreen(); return; } var settings = $(playbackControlsTree).find(“input.settings”); if (settings.prop(“checked”)) { settings.prop(“checked”, false); redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.PLAY_PAUSE); } }); var postElement = videoPlayerElement.closest(‘.thing.link’)[0]; r.analytics.observeAdVideoPlayer(postElement, videoPlayerElement[0]); redditVideoPlayer.addActionCompletedCallback(function(action, value) { var actions = [ RedditVideoPlayer.Actions.BUFFERING, RedditVideoPlayer.Actions.PAUSE, RedditVideoPlayer.Actions.PLAY, RedditVideoPlayer.Actions.SEEK_JUMP, RedditVideoPlayer.Actions.SET_CURRENT_TIME, RedditVideoPlayer.Actions.FULLSCREEN_REQUEST, RedditVideoPlayer.Actions.UNMUTE, RedditVideoPlayer.Actions.MUTE, RedditVideoPlayer.Actions.SET_VOLUME, ]; if (actions.indexOf(action) >-1) { var targetElement = $(this.root).closest(‘.thing.link’); var playerData = { muted: redditVideoPlayer.muted, volume: redditVideoPlayer.volume, duration: redditVideoPlayer.duration, }; r.analytics.handleVideoAdEvent(action, value, playerData, targetElement); } }); var lastTime = 0; redditVideoPlayer.addTimeUpdateHandler(function(time, duration) { var targetElement = $(this.root).closest(‘.thing.link’); var INTERVAL = 0.5; var timeDiff = time – lastTime; lastTime = time; if (timeDiff >0 && timeDiff< INTERVAL) { r.analytics.handleVideoTimeUpdate(time, timeDiff, duration, targetElement); } }); function firePlayerEvent(action, value, extras) { extras = (typeof extras === 'object') ? extras : {}; var verb = extras.verb || ''; var noun = extras.noun || ''; var source = extras.source || 'videoplayer'; var maxTimestamp = this.maxPlayed * 1000; var durationMs = this.duration * 1000; var timeMs = this.currentTime * 1000; var pinnableElement = $(this.root).closest('.pinnable-content'); var targetElement = $(this.root).closest('.thing.link'); var targetData = targetElement.data(); var videoState = { maxTimestampServed: parseInt(maxTimestamp), percentServed: maxTimestamp / durationMs, duration: parseInt(durationMs), time: parseInt(timeMs), isNsfw: targetElement.hasClass('over18'), isSpoiler: targetElement.hasClass('spoiler'), isPinned: pinnableElement.hasClass('pinned'), isVertical: this.orientation === RedditVideoPlayer.Orientations.PORTRAIT, firstFrameTime: this.firstFrameTime, loadStartTime: this.loadStartTime, }; r.analytics.videoPlayerEvent(source, verb, noun, targetData, videoState); } redditVideoPlayer.addActionCompletedCallback(firePlayerEvent); })();all 4 commentssorted .: top .bestnewcontroversialoldrandomq&alive (beta)Want to add to the .?Post a comment!Create an account[–]ollinator117 2 .3 .4 . 53 minutes . (1 child)


.



Dwarf on a racoon mecha, really groundbreaking stuff guys. But seriously, no game title or additional info on this game? Can't say it's amazing with a 10 sec clip.

Haha, not a mecha, just an overgrown racoon. You can find more info here: https://hashrush.com/#/about

What will ethereum add to it?

Will add asset ownership and p2p trading benefits mainly.

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » This game is launching on Ethereum soon! Amazing, isn’t it? (v.redd.it). 5 . . . siddartha14924 commentssharesavehidereportUsing giant raccoons as the creature for the mounted units in my RTS game!272 .•44 comments•. 1 day . . Hash_Rush to r/indiegames(function() { var thing = {“obfuscatedPosterUrl”: null, “context”: “comments”, “isGif”: false}; var autoplay = true; if (thing.obfuscatedPosterUrl){ autoplay = false; } if (r.config && !r.config.pref_video_autoplay && thing.context === “comments”) { autoplay = false; } var play_pause_click_action = autoplay ? “pause” : “play”; var play_pause_click_toggle_action = autoplay ? “play” : “pause”; var play_pause_vector_from = autoplay ? “m5,5l15,7.5l0,15l-15,7.5l0,-30m15,7.5l15,7.5l0,0l-15,7.5l0,-15” : “m5,5l12,0l0,30l-12,0l0,-30m18,0l12,0l0,30l-12,0l0,-30”; var play_pause_vector_to = autoplay ? “m5,5l12,0l0,30l-12,0l0,-30m18,0l12,0l0,30l-12,0l0,-30” : “m5,5l15,7.5l0,15l-15,7.5l0,-30m15,7.5l15,7.5l0,0l-15,7.5l0,-15”; var videoPlayerElement = $(“#video-hu9owi”); var isMobile = r.utils.isMobile(); var canPlayDash = (typeof (window.MediaSource || window.WebKitMediaSource) === “function”); var videoOptions = { id: videoPlayerElement.data(“id36”), linkUrl: videoPlayerElement.data(“linkUrl”), src: canPlayDash ? videoPlayerElement.data(“mpdUrl”) : videoPlayerElement.data(“hlsUrl”), type: canPlayDash ? RedditVideoPlayer.Types.MPD : RedditVideoPlayer.Types.HLS, autoplay: autoplay, poster: null, loop: false, orientation: videoPlayerElement.data(“orientation”), }; if (isMobile) { videoOptions.enableStorage = false; videoOptions.uiControls = false; if (thing.isGif) { videoOptions.clickAction = RedditVideoPlayer.ClickActions.NONE; } else { videoOptions.controls = true; } } var redditVideoPlayer = new RedditVideoPlayer(videoPlayerElement, videoOptions); videoPlayerElement.data(“video-player-object”, redditVideoPlayer); redditVideoPlayer.setAspectRatio(videoPlayerElement.data(“videoHeight”) / videoPlayerElement.data(“videoWidth”)); if (!isMobile) { var bufferingControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var bufferingControlsOptions = { behavior: RedditVideoController.Behaviors.BUFFERING, startVisible: false, fadeInDuration: 0, fadeOutDuration: 0, }; var bufferingControls = new RedditVideoController(bufferingControlsTree, bufferingControlsOptions); redditVideoPlayer.addUiController(bufferingControls); var pinnedHeight = videoPlayerElement.data(“pinnedHeight”); var pinnedWidth = videoPlayerElement.data(“pinnedWidth”); var maxPinnedWidth = videoPlayerElement.data(“maxPinnedWidth”); $(document.body).on(‘pinnable:pinned’, function(event) { videoPlayerElement.css(‘height’, pinnedHeight); videoPlayerElement.css(‘width’, pinnedWidth); videoPlayerElement.closest(‘.thing’).find(‘.top-matter’).css(‘left’, pinnedWidth + 95); }.bind(this)); $(document.body).on(‘pinnable:unpinned’, function(event) { videoPlayerElement.css(‘height’, ”); videoPlayerElement.css(‘width’, ”); }.bind(this)); var pinnedControlMargin = 12 * Math.pow(pinnedWidth / maxPinnedWidth, 2); var pinnedControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var pinnedControls = new RedditVideoController(pinnedControlsTree); redditVideoPlayer.addUiController(pinnedControls); var endedControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ‘Replay Video’ + ” + ” ); var endedControlsOptions = { behavior: RedditVideoController.Behaviors.COMPLETED, startVisible: false, fadeInDuration: 400, fadeOutDuration: 0, }; var endedControls = new RedditVideoController(endedControlsTree, endedControlsOptions); redditVideoPlayer.addUiController(endedControls); var playbackControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ‘0:00’ + ” + ” + ” + ” + ‘0:00’ + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” + ” ); var playbackControlsOptions = { behavior: RedditVideoController.Behaviors.MOUSE_MOVE, }; var playbackControls = new RedditVideoController(playbackControlsTree, playbackControlsOptions); redditVideoPlayer.addUiController(playbackControls); if (r.config && !r.config.pref_video_autoplay && thing.context === “comments”) { var interstitialControlsTree = $.parseHTML( ” + ” + ” + ” + ” + ” + ” + ” + ” ); var interstitialControlsOptions = { behavior: RedditVideoController.Behaviors.INTERSTITIAL, startVisible: true, fadeInDuration: 0, fadeOutDuration: 400, }; var interstitialControls = new RedditVideoController(interstitialControlsTree, interstitialControlsOptions); redditVideoPlayer.addUiController(interstitialControls); } $(playbackControlsTree).find(‘input.settings’).change(function() { if ($(this).is(‘:checked’)) { firePlayerEvent.call(redditVideoPlayer, null, null, {verb: ‘click’, noun: ‘settings’}); redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.NONE); } else { redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.PLAY_PAUSE); } }); } if (isMobile && thing.isGif) { $(videoPlayerElement).find(“video”).bind(“webkitendfullscreen”, function() { this.play(); }); redditVideoPlayer.mute(); } $(document.body).on(“interstitial:destroy”, function(event) { if (“t3_hu9owi” == event.expando.id) { redditVideoPlayer.play(); } }); var parent = $(“#media-preview-hu9owi”).parent(); var hadInterstitial = parent.hasClass(“expando”) && !(parent.hasClass(“expando–with-interstitial”)) && !(parent.hasClass(“expando-uninitialized”)) && “” != “”; if (hadInterstitial && !isMobile) { $(videoPlayerElement).find(“video”)[0].addEventListener(“canplay”, function() { redditVideoPlayer.play(); }) } var playPauseButtons = $(videoPlayerElement).find(“button.play-pause”); var isPlaying = autoplay; redditVideoPlayer.addActionCompletedCallback(function(action, value) { if ((action == RedditVideoPlayer.Actions.PLAY && !isPlaying) || (action == RedditVideoPlayer.Actions.PAUSE && isPlaying)) { playPauseButtons.each(function() { var animation = $(this).find(‘animate’).first(); var to = animation.attr(‘to’); var from = animation.attr(‘from’); animation.attr({ “from”: to, “to”: from }); if (‘beginElement’ in animation[0]) { animation.get(0) .beginElement(); } else { var path = $(this).find(‘path’); path.attr({“d”: from}); } }); isPlaying = !isPlaying; } else if (action == RedditVideoPlayer.Actions.NONE && thing.isGif && isMobile) { redditVideoPlayer.toggleFullScreen(); return; } var settings = $(playbackControlsTree).find(“input.settings”); if (settings.prop(“checked”)) { settings.prop(“checked”, false); redditVideoPlayer.setClickAction(RedditVideoPlayer.ClickActions.PLAY_PAUSE); } }); var postElement = videoPlayerElement.closest(‘.thing.link’)[0]; r.analytics.observeAdVideoPlayer(postElement, videoPlayerElement[0]); redditVideoPlayer.addActionCompletedCallback(function(action, value) { var actions = [ RedditVideoPlayer.Actions.BUFFERING, RedditVideoPlayer.Actions.PAUSE, RedditVideoPlayer.Actions.PLAY, RedditVideoPlayer.Actions.SEEK_JUMP, RedditVideoPlayer.Actions.SET_CURRENT_TIME, RedditVideoPlayer.Actions.FULLSCREEN_REQUEST, RedditVideoPlayer.Actions.UNMUTE, RedditVideoPlayer.Actions.MUTE, RedditVideoPlayer.Actions.SET_VOLUME, ]; if (actions.indexOf(action) >-1) { var targetElement = $(this.root).closest(‘.thing.link’); var playerData = { muted: redditVideoPlayer.muted, volume: redditVideoPlayer.volume, duration: redditVideoPlayer.duration, }; r.analytics.handleVideoAdEvent(action, value, playerData, targetElement); } }); var lastTime = 0; redditVideoPlayer.addTimeUpdateHandler(function(time, duration) { var targetElement = $(this.root).closest(‘.thing.link’); var INTERVAL = 0.5; var timeDiff = time – lastTime; lastTime = time; if (timeDiff >0 && timeDiff< INTERVAL) { r.analytics.handleVideoTimeUpdate(time, timeDiff, duration, targetElement); } }); function firePlayerEvent(action, value, extras) { extras = (typeof extras === 'object') ? extras : {}; var verb = extras.verb || ''; var noun = extras.noun || ''; var source = extras.source || 'videoplayer'; var maxTimestamp = this.maxPlayed * 1000; var durationMs = this.duration * 1000; var timeMs = this.currentTime * 1000; var pinnableElement = $(this.root).closest('.pinnable-content'); var targetElement = $(this.root).closest('.thing.link'); var targetData = targetElement.data(); var videoState = { maxTimestampServed: parseInt(maxTimestamp), percentServed: maxTimestamp / durationMs, duration: parseInt(durationMs), time: parseInt(timeMs), isNsfw: targetElement.hasClass('over18'), isSpoiler: targetElement.hasClass('spoiler'), isPinned: pinnableElement.hasClass('pinned'), isVertical: this.orientation === RedditVideoPlayer.Orientations.PORTRAIT, firstFrameTime: this.firstFrameTime, loadStartTime: this.loadStartTime, }; r.analytics.videoPlayerEvent(source, verb, noun, targetData, videoState); } redditVideoPlayer.addActionCompletedCallback(firePlayerEvent); })();all 4 commentssorted .: top .bestnewcontroversialoldrandomq&alive (beta)Want to add to the .?Post a comment!Create an account[–]ollinator117 2 .3 .4 . 53 minutes . (1 child)
分享到: 更多 (0)

相关推荐

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们