• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
stein102

c++ code examples

17 posts in this topic

I'm transitioning from Java to C++ and I'm finding the process of going through a book very tedious. Would it be a good idea to look over code examples and just see if I can figure out what's going on there as opposed to finishing this book? (Accelerated c++).

 

Also, can anyone provide some decent C++ code examples?

0

Share this post


Link to post
Share on other sites

I have done this and found most of it quite easy to understand. Most of its the same if written different and the few things that are brand new can be easily looked up. I have done lots of java but only basic C++ but I can still read through programs and understand whats happening so it does help.

0

Share this post


Link to post
Share on other sites
Try the tutorial series in my sig. It shows how to build a non trivial c++ app in detail.
2

Share this post


Link to post
Share on other sites

Well, it's still fairly basic, I'm not extremely far into the book(Haven't had a ton of time to work on it). My goal is to transition from Java into C++ and be writing the same level code as quickly as possible. Any tips?

0

Share this post


Link to post
Share on other sites

Write code. Lots of it. Use the book as a reference if all else fails, or (preferably) just look it up online.

 

Any suggestion on things to write? I always have a hard time thinking of good programs to write with good learning value

 

Also, is the tutorial at cplusplus.com any good?

Edited by stein102
0

Share this post


Link to post
Share on other sites

I would say if you are starting out anything and everything has good learning value because you are trying new things. So why not start with a simple game like tic-tac-toe or hangman and then expand on it to use new programming concepts as you learn them.

1

Share this post


Link to post
Share on other sites

cplusplus.com is rife with errors and misinformations. I'd stick to another site, until you are good enough to spot an error in their code before wondering why not only does their example not work, but their specifications are missing or impossible.

 

I've tried emailing in corrections, but he didn't quite get what I was saying; he kept replying with a description of what the functions are supposed to do, despite me telling him that his example function does not do that at all.

1

Share this post


Link to post
Share on other sites


LearnCpp.com is pretty good.


How far would those tutorials take you?

Just looking at the contents and not the material inside each tutorial it looks like they'd teach a lot and covers a lot of material. I didn't look to see how in depth they were but considering who linked them I would trust they are good.. Though of course just learning from tutorials won't be enough. Actually applying these concepts in code is what takes you far. By doing this you see what can and can not be done and then you go and research how it can be done. Then you apply that. Keep doing that and next you know you'll find yourself programming in C++ no problem.

Though keeping a good book on C++ is still important in my opinion even just for reference or maybe learning the Standard Library.
0

Share this post


Link to post
Share on other sites

 


LearnCpp.com is pretty good.


How far would those tutorials take you?

Just looking at the contents and not the material inside each tutorial it looks like they'd teach a lot and covers a lot of material. I didn't look to see how in depth they were but considering who linked them I would trust they are good.. Though of course just learning from tutorials won't be enough. Actually applying these concepts in code is what takes you far. By doing this you see what can and can not be done and then you go and research how it can be done. Then you apply that. Keep doing that and next you know you'll find yourself programming in C++ no problem.

Though keeping a good book on C++ is still important in my opinion even just for reference or maybe learning the Standard Library.

As for books, I have Accelerated C++ and Programming Principles and Practice Using C++, are there any other books I should look into?

I just want to make this transition as fast as possible so I can get back into writing games like I was in Java.

0

Share this post


Link to post
Share on other sites

As for practice: http://projecteuler.net/

Do some of those, even if it is just the beginning ones. It gives you projects to work on as you are learning. Have a new feature you just learned? Try to use it to solve one of the problems. Your program may not be the most direct way to solve the problem, but it gives you something to work on and you can use the direct way to verify your answers.

0

Share this post


Link to post
Share on other sites

As for practice: http://projecteuler.net/

Do some of those, even if it is just the beginning ones. It gives you projects to work on as you are learning. Have a new feature you just learned? Try to use it to solve one of the problems. Your program may not be the most direct way to solve the problem, but it gives you something to work on and you can use the direct way to verify your answers.

 

Amazing, I totally forgot about these. Haven't really looked at them since I first started programming. Going to give these a whirl for sure, hopefully I can get a good amount of them done. As for books though, what would you suggest? I was considering the following books to aid my learning:

 

The C++ Programming Language

The C++ standard Library

 

Which one of these would better suit my needs?

0

Share this post


Link to post
Share on other sites

The C++ programming language (the Bjarne one) is pretty heavy going, I wouldn't recommend it for learning, but it is a good reference. Dunno if the C++11 update is out yet, I'd hold out for that if it hasn't. But as I said, not a good book for learning (reads more like a university textbook).

 

The standard library one is probably going to be better for learning.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0