0
need help with proper loading background in js game
https://code.sololearn.com/Wu2kG84K6N3J it's either showing the game parts or the background, i need to find out how to display both at the same time.
4 Antworten
+ 2
put your
context.drawImage(bg,0,0,600,400);
inside the draw function
+ 2
Thx worked fine=)
+ 1
Yes exactly, that was a big problem for me, im on it thx.
0
jimmy tornqvist
One suggestion:
to prevent the text from being selected when pressing the buttons, you can add a user-select:none; to your #buttonsWin css class. Also perhaps cursor:pointer;as an indicator that the buttons are clickable.
#buttonsWin{
...
user-select:none;
cursor:pointer;
}