dwitter.net | TGY (3115)

+ 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
show FPS hide FPS share 1 remix fullscreen
TGY

function u(t) {

}//
120/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 fullscreen
TGY
remix of d/23437 by u/TGY

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).

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes fullscreen
TGY

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).

  • Some balls (looks like atom kernel overtime)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
TGY

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).

  • isn it 4d?

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
135/140


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

  • Xenobiology picture book #alien
  • u/taupelink
    wow!
  • u/rep_movsd
    It's just a sum of random fourier co-efficients - never expected this weird effect!
  • u/TGY
    this is like so amazing, you could build game out of it
  • u/rep_movsd
    Yeah - something like pokemon - people collect random creatures and pit them against each other, and some way to combine them

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
TGY

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).

  • parallax

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes fullscreen

function u(t) {

}//
134/140


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

  • u/tomxor
    Inspired by d/23398. Uses raster/2d-voxel based intersection
  • u/Xen
    love it!
  • u/magna
    HOW?!
  • u/katkip
    how
  • u/tomxor
    It's particle physics, but the collisions are with implicit volumes. So rather than checking against a specific object, each pixel is intersected with the circle, if the pixel is filled and intersects, then it contributes velocity to the particle along the collision normal (the vector between the pixel and the point), the deeper the intersection based on the radius the greater the contribution... this is not correct at all and creates lots of phantom momentum, but is very simple and shares the code with drawining the screen.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
TGY

function u(t) {

}//
138/140


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

  • superman death

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
TGY

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).

  • #interactive clicker game, rules&source in comments
  • u/TGY
    balance is thrown each render (red symbols under code), to buy building click in top left corner, to add +1$ click anywhere, each upgrade gives +1$/sec, upgrades cost 9$, 18$, 27$... good luck, have fun :clown:
  • u/TGY
    shitty source (only escaped part): t?c.width*=1:p=b=m=0,d=s.split,,x.font="9cm s",onclick=e=>++m>p+9&&e.x+e.y<99?m-=(p=9*++b):0;for(a=b,s='';a;a>>=2)s+=d[a%4];x.fillText(b?s:d[0],0,4e2);throw m+=b/60
  • u/TGY
    4 skyscrapers win the game :-)
  • u/andrea270872
    nice

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
TGY
remix of d/23333 by u/TGY

function u(t) {

}//
135/140


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

  • #chase v2 with more attractive jumps and no error

Please log in (or register) to comment.

Loading...
Next page