learn c++ basics to make better games

Learn how to start making games.

was this helpful?

Yes
4
80%
No
1
20%
 
Total votes : 5

learn c++ basics to make better games

Postby simranjit » Sun Mar 29, 2015 2:31 pm

Here is a PDF book explaining basics of c++
You should read it and uunderstand the basic concepts if you have no experience with programming languages
All topics are well explianed and I myself read it to clear some doubts.
Its a PDFversion of online classes available at cplusplus.com
Its a bit old version and not suitable to learn c++ but its suitable for game editor c scripting ,but if you wish to learn c++ you should visit cplusplus.com
Here is the book
cplusplus classes.zip
(346.87 KiB) Downloaded 242 times
Everyone is bound to one's sphere of knowledge.
What he finds inside it, terms it as reality. And what is far beyond his reach, an illusion for him. But sometimes illusions can be a reality and reality merely an illusion.
simranjit
 
Posts: 88
Joined: Thu Jan 08, 2015 10:43 am
Location: Earth, The Solar System, Local Interstellar Cloud, Local Bubble, Orion–Cygnus Arm, Milky Way
Score: 21 Give a positive score

Re: learn c++ basics to make better games

Postby simranjit » Sun May 24, 2015 2:12 pm

I see,
there are many downloads but no one wants to cast vote.
Perhaps there must have been another option for "I don't know"
simranjit
 
Posts: 88
Joined: Thu Jan 08, 2015 10:43 am
Location: Earth, The Solar System, Local Interstellar Cloud, Local Bubble, Orion–Cygnus Arm, Milky Way
Score: 21 Give a positive score

Re: learn c++ basics to make better games

Postby digiot » Sun May 24, 2015 10:32 pm

simranjit wrote:I see,there are many downloads but no one wants to cast vote.
Perhaps there must have been another option for "I don't know"

No, a poll is totally unnecessary here.
Instead, let me thank you for the tip. I have many C/C++ tutorials, but this one
was new to me.
It covers C and C++ as well, very useful.

Cheers !
User avatar
digiot
 
Posts: 211
Joined: Sat Mar 17, 2012 2:29 pm
Score: 7 Give a positive score

Re: learn c++ basics to make better games

Postby Zivouhr » Sat May 30, 2015 3:33 pm

I'm still learning about C, but will C++ be applicable to Game Editor's C coding?
City of Rott Game created on Game Editor http://cityofrott.wordpress.com/
User avatar
Zivouhr
 
Posts: 549
Joined: Sat May 17, 2014 2:12 pm
Score: 59 Give a positive score

Re: learn c++ basics to make better games

Postby koala » Mon Jun 01, 2015 6:12 pm

Zivouhr wrote:I'm still learning about C, but will C++ be applicable to Game Editor's C coding?
I didn't try to code in C++. C and C++ are similar. As the name says, C++ is upgrade of C. I don't know can you do object-oriented programming in Game Editor, like making classes, but knowing C++ will help you understand some concepts in Game Editor. For instance [actor_name].[attribute] is something you will always use in C++. :D
Phascolarctos cinereus
YouTube: Marko Radivojevic
Google+: Marko Radivojevic
User avatar
koala
 
Posts: 301
Joined: Thu Mar 26, 2015 7:03 pm
Location: Serbia
Score: 30 Give a positive score

Re: learn c++ basics to make better games

Postby Zivouhr » Tue Jun 02, 2015 2:22 am

Thanks Koala for the info. I did find out through my C studies that "//" was integrated into C from C++, as the C version /* was more cumbersome compared to // . :mrgreen: As you can see, I have much to learn. 8)
City of Rott Game created on Game Editor http://cityofrott.wordpress.com/
User avatar
Zivouhr
 
Posts: 549
Joined: Sat May 17, 2014 2:12 pm
Score: 59 Give a positive score

Re: learn c++ basics to make better games

Postby Rebenely » Wed Jun 03, 2015 2:38 pm

This question might be odd, but I just want to know. I learned C and C++ from school. We are already done with some elementary data structures such as structs, linked lists, stacks, queues. I just want to know how these things can be implemented in game editor. I really can't understand. I was once thinking that structs can be used to give attributes to an actor, but I am not so sure how to do that.
User avatar
Rebenely
 
Posts: 16
Joined: Fri Apr 05, 2013 1:13 pm
Score: 1 Give a positive score

Re: learn c++ basics to make better games

Postby koala » Wed Jun 03, 2015 5:00 pm

Rebenely wrote:This question might be odd, but I just want to know. I learned C and C++ from school. We are already done with some elementary data structures such as structs, linked lists, stacks, queues. I just want to know how these things can be implemented in game editor. I really can't understand. I was once thinking that structs can be used to give attributes to an actor, but I am not so sure how to do that.
You can add attributes to an actor if you click on Variables button in Script Editor and there you can choose a variable to be Actor Variable. However, you can choose only integer, double and string. So using struct in this case is really good idea. You could make a struct:
Code: Select all
typedef struct attributes {
    Actor* act;
    int array[10];
} Attributes;
This way Actor that is pointed by act has its array of 10 integers. Not really attributes, but this is a good idea.
Phascolarctos cinereus
YouTube: Marko Radivojevic
Google+: Marko Radivojevic
User avatar
koala
 
Posts: 301
Joined: Thu Mar 26, 2015 7:03 pm
Location: Serbia
Score: 30 Give a positive score

Re: learn c++ basics to make better games

Postby PerrySteven » Sun Jun 07, 2015 4:29 am

I would agree that you can't depend on the Event Based functions all your life, but I would suggest learning the fundamentals of C, instead of C++. C++ is a rather messy programming language, and I would say it's for professionals.

Just C gives a better feel for programming, and thus can make understanding of other programming languages easier.
User avatar
PerrySteven
 
Posts: 46
Joined: Sun Jan 25, 2015 4:29 am
Location: Malaysia
Score: 1 Give a positive score

Re: learn c++ basics to make better games

Postby bat78 » Sun Jul 05, 2015 8:11 pm

Oh, now that I read this topic..

C++ has nothing to do with C except for some inherited keywords and the re-implemented standard libraries. This unites them.
C and C++ are close on lexical level, to some extent on syntactic and most of the differences are in semantic level.
Besides, C++ is Objected Oriented Programming Language while C is procedural.
Yes, C is capable to recreate some Object Oriented rules but that's it. And this is much of a bad idea.
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 1 guest