[minigame] shapes puzzle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[minigame] shapes puzzle

Hi everyone, I recently finished the HTML5 / Javascript course and wanted to train on canvas so I developed this mini game : https://code.sololearn.com/Wa701UH3D2Bz If you have any tip to improve this game, feel free to comment (especially to make it more mobile friendly). Have a good day.

11th Jun 2017, 7:22 AM
Vincent Martinez
Vincent Martinez - avatar
6 Answers
+ 7
Amazing Code Bro 😵😵
13th Jun 2017, 5:17 AM
Kailash Loncha
Kailash Loncha - avatar
+ 5
Its pretty slick. Good job. I would say try to keep the width within 100% page width or 100vw to make it more approachable on mobile. Also it wants to slide to code playground when I drag the shapes.
13th Jun 2017, 5:36 AM
Russel Reeder
Russel Reeder - avatar
+ 4
I'm pretty sure the swipe to playground is a feature of the app, so you couldn't prevent it even if prevent default works on swipe (which is a good question).
14th Jun 2017, 12:42 AM
Russel Reeder
Russel Reeder - avatar
+ 3
Awesome
13th Jun 2017, 6:29 PM
Russel Reeder
Russel Reeder - avatar
+ 1
Thank you for the feedback Russel! I pushed a change to scale and position the shapes in order to avoid the scroll on narrow screen! Not sure if I can prevent the default swipe behaviour, you need to hold the touch for half second (touchstart) and then swipe(touchmove) to not trigger it (or make a diagonal swipe).
13th Jun 2017, 5:13 PM
Vincent Martinez
Vincent Martinez - avatar
0
Great job bro...This is the first step... Take a big step to make more extraordinary games
19th Apr 2021, 6:41 AM
Nagasrivani Talasila