Short game (tetris) in my survey - how?! | XM Community
Question

Short game (tetris) in my survey - how?!

  • 16 February 2021
  • 2 replies
  • 180 views

Userlevel 2

Hi, I want to have a short 5 minutes in between the questions in my survey where participants are playing tetris and can't click out/through to the next page. I have a .swf file (Tetris game) from a while ago, but converting it to html5 is not as easy as I hoped (is html5 even what I need for this? help!). I know very little about code, so if anyone can help me with this, that would be great!
Any other versions/options for tetris are welcome.
What should I (not) be looking for? Is what I want to do even possible?


2 replies

Userlevel 7
Badge +21

Try this:
Question HTML:


none
Add the css either in the style tags here or in your header.
Question JS:
jQuery.getScript("https://cdn.jsdelivr.net/npm/blockrain@0.2.0/dist/blockrain.jquery.min.js");
jQuery('.game').blockrain();

Themes and styling related stuff here.

Userlevel 4
Badge +21

wow - back in college I could play tetris for hours on my Apple Macintosh. Would there be away to extend those 5 minutes to several hours?

Leave a Reply