+ 2
How to create a group of shadows for a group of sprites in js?
I create a match3 game based on js and i need to create shadows for a group of sprites that will move in accordance with sprites, shadow is a png element. My game on the site : pazykiv.zzz.com.ua game code : https://code.sololearn.com/W6C4z8YMQybB/?ref=app
7 Answers
+ 13
try adding these lines in your code where u want to show shadow
ctx.shadowOffsetX = 10; ctx.shadowOffsetY = 10; ctx.shadowColor = 'black'; ctx.shadowBlur = 30; ctx.drawImage(imgElem,0,0);
its showing 404 in your link š
+ 12
its hanging a lot to edit on sl..š
i will try for u tmro ...
ćļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć š
š
+ 9
var Game={};Ā
move this to line 1 from line 3
+ 1
Thanks for the answer, now the link is working
+ 1
And what next?
+ 1
You sure?)
+ 1
Thank you