dwitter.net | jdspugh (36906)

+ New dweet
function u(t) {
} //
122/140


Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)


u(t) is called 60 times per second. t: Elapsed time in seconds. S: Shorthand for Math.sin. C: Shorthand for Math.cos. T: Shorthand for Math.tan. R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5) c: A 1920x1080 canvas. x: A 2D context for that canvas.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Food

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Live panorama from camera on the moon!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/KilledByAPixel
    umcompressed... onmousemove=e=>u[1]=e.x/6 t&&(Y+99)%255?c.width=99:(u[0]=X=Y=20,V=W=1) u[0]=X-7+9*S(t+C(t)) x[F='fillRect'](X+=V=X%96?V:-V,Y+=W,2,2) for(i=2;i--;W=Y==H&X>I-2&X<I+16?-W:W)x[F](I=u[i],H=i*53,16,3)
  • u/KilledByAPixel
    fixed uncompressed... onmousemove=e=>u[1]=e.x/6;t&&(Y+99)%255?c.width=99:(u[0]=X=Y=20,V=W=1);u[0]=X-7+9*S(t+C(t));x[F='fillRect'](X+=V=X%96?V:-V,Y+=W,2,2);for(i=2;i--;W=Y==H&X>I-2&X<I+16?-W:W)x[F](I=u[i],H=i*53,16,3)
  • u/katkip
    I won

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
136/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/KilledByAPixel
    Uncompressed... t?x[F='fillRect'](X,53,8,c.width=99):Z=X=-9;Z>-9?x[F](W,Z--,2,5):(W=X+3,Z=55);O=15+9*S(t);B=t*9%70-11;for(i=9;i--;onmousemove=e=>X=e.x/6)i!=W-O>>3||Z-B>>3?x[F](i*8+O,B,!u[i]*4,12):u[i]=1
  • u/magna
    Awesome!
  • u/prplz
    i happen to like default
  • u/KilledByAPixel
    These are evil defaults though, you can tell cause they are lower res then normal defaults.
  • u/katkip
    Wow

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/13814 by u/Jezza

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
139/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Dwump and run V2. Arrow keys to run & tap to jump! You can jump onto the square :)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Demo In a Dweet with Music & Graphics! You might need to click the window to start the audio.

Please log in (or register) to comment.

remix of d/8613 by u/robbyg

function u(t) {

}//
93/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Golfed my previous #pacman down by 36 bytes!
  • u/Xen
    nice! 90b: c.width|=v=500;with(x)fillStyle='#fe0',moveTo(h=t*v%2e3,v),fill(arc(h,v,v,a=S(t*9)**2,-a))

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Show more comments…
  • u/pavel
    Notice how d only takes one argument, and it ignores it.
  • u/KilledByAPixel
    I see what you did there. So many great tricks in this one.
  • u/pavel
    p+=r*=d(p+=r) the inner p+=r increments p and d ends runs with that value, however the outer p+= caches the old value of p so when d resolves the inner p+=r is silently ignored!
  • u/pavel
    #physics

Please log in (or register) to comment.


function u(t) {

}//
126/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Star thread
  • u/Purpzie
    Shortened by 8 characters: with(x)t||translate(960,540),t<8&&(globalAlpha=.1,strokeRect(0,0,30,60),rotate(Math.PI*.8),drawImage(c,30,0,1e3,1200))

Please log in (or register) to comment.

Loading...
Next page