Render canvas game | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Render canvas game

I made a very simple logic that the camera is centered on the player while the rest around moves with a field of 3000. On the canvas itā€™s sitting on the 25x25 tag and on the css 400x400 so it doesnā€™t get tiny. But when the players and the fruits are rendered, it have a size of 4 pixels and a half transparent. How do I fix that? Render code: https://sololearn.com/compiler-playground/chtmai0SM3dH/?ref=app

16th Oct 2023, 2:16 PM
O Jaum
O Jaum - avatar
1 Resposta
+ 7
The code is incomplete. In addition that need to be saved in SL playground called ā€žWebā€œ, together with html und css parts.
16th Oct 2023, 2:46 PM
JaScript
JaScript - avatar