DEV Community

Tero Pulkkinen
Tero Pulkkinen

Posted on

Soft toy explosions

April Fools Challenge Submission ☕️🤡

This is a submission for the DEV April Fools Challenge

What I Built

Star wars death star laser, tweaked with slightly less powerful settings, is now able to explode soft toys from children's hands. Dingel explosion shows how 12 lines of code can blow up a soft toy. The library has 222kloc of source code, just imagine how large explosion is possible.

Demo

https://meshpage.org/dingel2/display.php

Code

TF I1=ev.mainloop_api.gltf_loadKK2(dingel_-freebie1.glb);
ML I2=ev.mainloop_api.gltf_mesh_all(ev,I1,1.0,1.0,1.0,0,400.0,-400.0,300.0,0.0,ff000000,true,true);
BM I3=ev.bitmap_api.loadbitmapfromurl(ChatGPT_Image_16.3.2026_klo_05.01.23.png);
ML I4=ev.sprite_api.vertex_array_render(ev,I3);
MN I5=ev.move_api.mn_empty();
MN I6=ev.move_api.trans2(I5,-670,-500,0);
ML I7=ev.move_api.move_ml(ev,I4,I6,1,10.0);
ML I8=ev.mainloop_api.or_elem_ml(ev,I2,I7);
ML I9=ev.mainloop_api.mouse_roll_zoom2(ev,I8);
ML I10=ev.mainloop_api.touch_rotate(ev,I9,true,true,0.01,0.01);
ML I11=ev.mainloop_api.perspective(ev,I10,80.0,10.1,60000.0);
RUN I12=ev.blocker_api.game_window2(ev,I11,false,false,0.0,100000.0);

How I Built It

1) gameapi-builder (my own tool)
2) gameapi library (my own library)
3) emscripten (ability to put my c++ code to a web page)
4) sketchfab (find cool 3d models from the internet)
6) tinygltf (load a gltf file in standard formats to data structure)
7) https://meshpage.org
8) https://meshpage.org/meshpage.php

Prize Category

Best star wars meme, Best use of explosions, Best use of URLs, Best use of dingel 3d model, Best use of custom 3d engine

Top comments (0)