How to go about learning to code?

2015-09-06 5:20 am
I ve always wanted to learn how to code and recently my cousin who now writes software as a job was talking to me about it. My end goal for learning to code is to make a video game, nothing 3d or good looking, just with pistols but I still would like to try. My cousins told me to start with html... Does anyone know some good websites I can learn from? Also what types of code should I study, I don t understand much but I would assume html makes websites and java makes games... Anyway if someone knows code would you mind sharing how you learned? Thanks

回答 (5)

2015-09-06 9:55 am
Do not start with HTML

I suggest C++

It will be harder than Java but most games nowadays are made with C/C++, especially game engines.

It will be slightly harder than Java, as it allows you to manage your own memory and allows pointer arithmitic, but that will make you a better programmer.
2015-09-06 5:22 am
2015-09-09 4:54 am
2015-09-06 6:06 am
If you want to learn to code HTML is a bad suggestion since it's not even a programming language but a markup language. HTML is only used for creating websites.

If you want to make a game, better learn Java. Search online on how to get started with Java. There are many websites that teach beginners. You can also get a book about it if you prefer.

You will need an IDE such as NeatBeans to program in.

Saint Iker says C++ and it's what I learnt first. It's also a good choice, but since you mentioned Java that's fine too. You will need some external libraries to make games with C++ though. Back in my days I used Allegro for that, and it's still possible to use.

While C++ often is used for making game engines, it's of course not necessary to use that for making a simple 2D game. So for your purposes it doesn't matter what programming language you use, and Java might get you started a little quicker.
2015-09-06 5:43 am


收錄日期: 2021-04-21 14:00:10
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20150905212049AAJPE6G

檢視 Wayback Machine 備份