Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualLennyLen

Posted 15 November 2012 - 03:28 AM

so you mean I dont need to learn any tools to program a game


As Álvaro has already stated, the only two things you absolutely need are an editor to write your code, and a compiler to convert it to something useful. There are other tools available to programmers, such as IDEs, to make things easier and improve productivity, but in my opinion, it's best to start with the basics and understand what you are doing from a root level first.

could you let me know how exactly the game works and what eactly happens in the back scene..


You're going to have to be more specific, as the only thing that all games have in common is taking input from the user, processing all the data, and then doing some output. In that respect, games are the same as pretty much any program.

what files are included and what is make files and cmake files,terminals,etc?



The files required to make a game again vary, but there will be the code itself (.cpp and .h file for C++), any assets the game needs (ie graphics and sounds). Maybe some scripts if the game is advanced enough. Again, this is a very vague question, so it's hard to give you a specific answer.

As for cmake - its a tool for building makefiles. For large projects, you will usually have multiple source files, which means you don't want to have to manually compile them individually and then manually link them together. This is where makefiles come in. A makefile is a set of rules that specifies how the program will be built from it's sources. Using cmake allows people to 'easily' create multiple makefiles for different platforms and configurations, without having to write the makefiles themselves. It also makes generating makefiles easier if the project is added to at a later point.

A terminal is just a command line interface for passing commands to your computer. If you are familiar with Windows, its built-in terminal is cmd.exe

#1LennyLen

Posted 15 November 2012 - 03:26 AM

so you mean I dont need to learn any tools to program a game


As Álvaro has already stated, the only two things you absolutely need are an editor to write your code, and a compiler to convert it to something useful. There are other tools available to programmers, such as IDEs, to make things easier and improve productivity, but in my opinion, it's best to start with the basics and understand what you are doing from a root level first.

could you let me know how exactly the game works and what eactly happens in the back scene..


You're going to have to be more specific, as the only thing that all games have in common is taking input from the user, processing all the data, and then doing some output. In that respect, games are the same as pretty much any program.

what files are included and what is make files and cmake files,terminals,etc?



The files required to make a game again vary, but there will be the code itself (.cpp and .h file for C++), any assets the game needs (ie graphics and sounds). Maybe some scripts if the game is advanced enough. Again, this is a very vague question, so it's hard to give you a specific answer.

As for cmake - it's a tool for building makefiles. For large projects, you will usually have multiple source files, which means you don't want to have to manually compile them individually and then manually link them together. This is where makefiles come in. A makefile is a set of rules that specifies how the program will be built from it's sources. Using cmake allows people to 'easily' create multiple makefiles for different platforms and configurations, without having to write the makefiles themselves. It also makes generating makefiles easier if the project is added to at a later point.

A terminal is just a command line interface for passing commands to your computer. If you are familiar with Windows, it's built-in terminal is cmd.exe

PARTNERS