is it possible to make a game by using c programming language? | Sololearn: Learn to code for FREE!

+1

is it possible to make a game by using c programming language?

3/31/2021 4:27:14 PM

Anikur Rahman

8 Answers

New Answer

+12

Martin Taylor I thought about CSV first, but I would prefer SQLite because if you have a very large CSV file and you want to update data in the mid of the file you have to rewrite all data from this position up to the end. With SQLite you can just update some bytes at an arbitrary position. This will help to keep the wear-level of the harddrive or SSD low. 🙂

+11

Of course you can code a game with C. But with C alone you will not get lucky. For the screenart you will also need some GUI framework. For saving and loading game scores or sceneries you will need some kind of database where you perhaps need SQL.

+9

Martin Taylor The database was just an idea of mine. If I would code a game, I would do it in - ehm - Python and store the data within an SQLite database. That's which I am experienced with a little bit. 😊

+3

A lot of thanks to Jan Markus, my dear friend because of your valuable answer

+2

Martin Taylor Jan Markus I have seen Android games using Sqlite for game save. But I have never seen Windows games using Sqlite. Data saved in Sqlite was very easy to hack. It told you where money and other things are stored. 😅😅😅. Some games use hash to identify any changes. you can hack that too. Their must be games for windows which use Sqlite. And I doesn't really care. But hacking computer games saved data was little bit difficult. [email protected] I have made this game without GUI https://code.sololearn.com/cz5Brg06bNZm/?ref=app

+1