← Back to collection
Pixel Runner
Live · just now

Pixel Runner

#471 of 1,000
Collection
coindodo
Schema
games
Asset ID
1099520563337

Active listing

2.00 WAX

≈ < $0.01

Seller rocb2.wam

Listed 1699d ago

Open on AtomicHub ↗

Ownership

Current owner
rocb2.wam
Minted
Mar 26, 2021 · 17:51 UTC
Transferable
Yes
Burnable
Yes

Attributes

Immutable

img
QmdkQEPH9qwC9YJ6dJ4SyidAa3j2mxgCFbriyZXXwePCuHOpen
url
https://coindodo.io/nft
code
var e=document.createElement("canvas");e.id="game";var t,i,n,a,r,h=e.getContext("2d");e.width=800,e.height=400,document.body.appendChild(e),CanvasRenderingContext2D.prototype.clear=CanvasRenderingContext2D.prototype.clear||function(e){e&&(this.save(),this.setTransform(1,0,0,1,0,0)),this.beginPath(),this.clearRect(0,0,this.canvas.width,this.canvas.height),this.closePath(),e&&this.restore()};var o={};addEventListener("keydown",(function(e){o[e.keyCode]=!0}),!1),addEventListener("keyup",(function(e){delete o[e.keyCode]}),!1);var s=function(){var e=Date.now();f((e-w)/1e3),l(),w=e,requestAnimationFrame(s)},l=function(){if(h.clear(),h.font="32px monospace",h.fillStyle=g?"red":"#DDD",v){for(var i in h.fillRect(20,e.height-t,30,30),h.fillStyle="#DDD",h.textAlign="right",h.fillText(parseInt(r),e.width-5,38),d)h.fillRect(d[i].x,e.height-d[i].s,20,d[i].s);h.fillRect(0,e.height-10,e.width,10)}else h.textAlign="center",h.fillText("PRESS SPACE TO START",e.width/2,e.height/2);g&&(h.fillStyle="red",h.textAlign="center",h.fillText("GAME OVER",e.width/2,e.height/2))},d=[],c=function(){v=!1,g=!1,r=0,u=0,t=0,(d=[]).push({x:e.width,s:50})},f=function(i){if(32 in o&&(v=!0,g&&w-u>400&&(c(),v=!0)),v&&!g){var n=1+.02*r;if(d.length<2){var a=d[d.length-1].x;a<e.width&&(a=e.width),d.push({x:a+100+800*Math.random(),s:50+50*Math.random()})}for(var h in d){var s=d[h];s.x-=300*i*n,s.x<-20&&d.shift(),s.x<50&&s.x>20&&t-20<s.s&&(g=!0,u=w)}32 in o&&40==t&&(x=1),x>0&&(t+=x*i*700,x-=i),x<=.5&&(x=0,t-=585*i),t<40&&(t=40),r+=i}},m=window;requestAnimationFrame=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.msRequestAnimationFrame||m.mozRequestAnimationFrame;var v,g,u,x=0,w=Date.now();c(),s();
desc
Controls: Space to jump
name
Pixel Runner
codeType
js

Sale history

No sale history.

Transfer / activity log

DateActionFromToNotes
Mar 26, 2021 · 17:51 UTClogmintrocb2.wamAuthorized by atomicdropsx