Code for Games | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code for Games

What code would you recommend to use for coding a game. Also, how can you add in sprites on a phone for a game, or do you need to use a PC?

17th Oct 2018, 11:51 AM
Perry Troutman
Perry Troutman - avatar
1 Answer
- 1
1) It depends on what types of game you want to make. 1a) If you are talking about word game, you can check out Basketballgirl_05's code in Trending in Code Playground. She wrote with language Python. The rich content and randomness is the key of popularity. 1b) If your game is not entirely word-based, it is easier with javascript, because you can easily control the graphical layer with HTML and CSS, so your game can be more spectacular, and gain more upvotes. Upvote can make you addicting to Sololearn platforms. You can refer to the game I am coding. And also the links to other great games in my comment. 2) For the sprites, you can add it using smartphone. It's not uploading to Sololearn platform, you have to upload to external image storage server and load into your code with the link. Basically you need to set the pixel size and set frameCounter so the pictures will be loaded grid by grid each frame. An example is the game by Burey, also in Trending.
17th Oct 2018, 3:18 PM
Gordon
Gordon - avatar