• 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
Beem

Check Out This Awesome C++ Lesson

24 posts in this topic

I taught my friend C++ over Steam chat, here's how it went.. Enjoy.

5:37 PM - Jack: Also you need to put semicolons all over the place.
5:37 PM - Jack: There's not much ryhme or reason as to where you put them, but trsut me, you need them.
5:39 PM - Scamster: [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
5:40 PM - Jack: Whenever some comes to me and says their game is broekn, I tell them it's probably a semicolon, and it almost always is.
5:40 PM - Jack: No why I say there is no rhym or reason is because...
5:40 PM - Jack: class SomeClas { }; <= needs semicolon
5:40 PM - Jack: but
5:41 PM - Jack: namespace SomeNamesapce {} <= doesn't ened semicolon.
5:41 PM - Jack: And...
5:41 PM - Jack: switch(somevalue){} <= doesn't need semicolon.
5:41 PM - Jack: but.
5:41 PM - Jack: enum SOMENUM{}; <= needs semicolon.
5:41 PM - Jack: Also
5:41 PM - Jack: for(int i=0; i<3; i++){} <= has semicolons in weird places, but doesn't need one at the end.
5:42 PM - Jack: What's alright though is if you add a semicolon where you don't need one, in many cases it's okay.
5:42 PM - Jack: not the namespace one thugh. Edited by Beem
0

Share this post


Link to post
Share on other sites
[quote name='Alan Greenspan' timestamp='1353631940' post='5003349']
Wow. You're funny. Not.
[/quote]
Wow. You're funny. Not.

@OP: I appreciated it :)
0

Share this post


Link to post
Share on other sites
[quote name='Cornstalks' timestamp='1353632933' post='5003350']
[quote name='Alan Greenspan' timestamp='1353631940' post='5003349']
Wow. You're funny. Not.
[/quote]
Wow. You're funny. Not.

@OP: I appreciated it [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
[/quote]

You've got to be kidding me, this sounds like a joke some tween who just started learning C++ made to his friend who knows nothing about programming.
0

Share this post


Link to post
Share on other sites
[quote name='Alan Greenspan' timestamp='1353634503' post='5003355']
[quote name='Cornstalks' timestamp='1353632933' post='5003350']
[quote name='Alan Greenspan' timestamp='1353631940' post='5003349']
Wow. You're funny. Not.
[/quote]
Wow. You're funny. Not.

@OP: I appreciated it [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
[/quote]

You've got to be kidding me, this sounds like a joke some tween who just started learning C++ made to his friend who knows nothing about programming.
[/quote]
I have a decent response for that, but I'm not going to feed the troll. It just sucks you have to be a kill joy on this site.
0

Share this post


Link to post
Share on other sites
Killing joy is my job here: [img]http://public.gamedev.net//public/style_emoticons/default/angry.png[/img]

In responce to OP - Interesting topic, but I fail to see the humor in the post
0

Share this post


Link to post
Share on other sites
It's not really funny (at least to me, and I know a bit of C++) because semicolons in C++ actually have do a rhyme and reason to them, except perhaps the namespace one. But that's just my opinion, no one else's and unlike the (now banned) member above, I do not draw unwarranted conclusions from it.
0

Share this post


Link to post
Share on other sites
not really sure what the OP is attempting to do here, humor seems to be the objective, but i personally don't really see any here...and truly hope he's not being sincere.
0

Share this post


Link to post
Share on other sites
I smiled and then remembered it was morning. It's generally much better advice than any advice I would have given when I was starting ("Just keep trying to turn all the *s into &s or ->s until it compiles").
0

Share this post


Link to post
Share on other sites
[quote name='Beem' timestamp='1353289535' post='5002193']
5:40 PM - Jack: Whenever some comes to me and says their game is broekn, I tell them it's probably a semicolon, and it almost always is.
[/quote]

Like that would [b]break[/b] their game. It won't even compile.
Not funny. [img]http://public.gamedev.net//public/style_emoticons/default/rolleyes.gif[/img]
0

Share this post


Link to post
Share on other sites
[quote name='Beem' timestamp='1353289535' post='5002193']
5:40 PM - Jack: Whenever some comes to me and says their game is broekn, I tell them it's probably a semicolon, and it almost always is.
[/quote]

im hertbroekn

[img]http://public.gamedev.net//public/style_emoticons/default/tongue.png[/img]
0

Share this post


Link to post
Share on other sites
[quote name='Shippou' timestamp='1353648061' post='5003381']
Killing joy is my job here: [img]http://public.gamedev.net//public/style_emoticons/default/angry.png[/img]
[/quote]
That's very hard to do when you have an utterly adorable red fox as your avatar. [img]http://public.gamedev.net//public/style_emoticons/default/happy.png[/img]
0

Share this post


Link to post
Share on other sites
[quote name='Servant of the Lord' timestamp='1353696762' post='5003554']
[quote name='Shippou' timestamp='1353648061' post='5003381']
Killing joy is my job here: [img]http://public.gamedev.net//public/style_emoticons/default/angry.png[/img]
[/quote]
That's very hard to do when you have an utterly adorable red fox as your avatar. [img]http://public.gamedev.net//public/style_emoticons/default/happy.png[/img]
[/quote]
I need a more menacing avatar ....
0

Share this post


Link to post
Share on other sites
[quote name='phantom' timestamp='1353713630' post='5003603']
Someone called for a menacing avatar? [img]http://public.gamedev.net//public/style_emoticons/default/happy.png[/img]
[/quote]

y helo thar
0

Share this post


Link to post
Share on other sites
[quote name='Shippou' timestamp='1353709320' post='5003593']
I need a more menacing avatar ....
[/quote]
Rawr.

Consider yourself avatar-menaced.

What I find funniest about this topic is that Alan Greenspan was banned. Was it because of this topic or was there another topic somewhere where a moderator told him off before banning? Can’t view his profile to check his posts to find it.


L. Spiro Edited by L. Spiro
0

Share this post


Link to post
Share on other sites
[quote name='L. Spiro' timestamp='1353724738' post='5003645']
What I find funniest about this topic is that Alan Greenspan was banned. Was it because of this topic or was there another topic somewhere where a moderator told him off before banning? Can’t view his profile to check his posts to find it.
[/quote]
He was a GameDev troll who's been around before. [url="http://www.gamedev.net/topic/631115-911-never-forget/"]Thread 1[/url]. [url="http://www.gamedev.net/topic/631064-how-do-i-make-a-game/"]Thread 2[/url]. [url="http://www.gamedev.net/topic/631397-howdy-i-have-an-idea/"]Thread 3[/url] (likely him). [url="http://www.gamedev.net/topic/630911-valve-introduce-greenlight-fee-is-100-too-much/page__st__20"]Thread 4[/url] (his post was deleted in this one, but it's been quoted). etc. These are just the ones I can find with a quick google. I don't know if there were any private messages or stuff, though.

I'm surprised this thread went the way it did and didn't turn into something like [url="http://www.gnu.org/fun/jokes/declarations.html"]this[/url]... But I've not been disappointed.
0

Share this post


Link to post
Share on other sites
There's perfect reason to the semicolon rules in C/C++.


You need a semicolon after a } any time you are working with something that can be instantiated. Otherwise, you don't.

This is to support the following syntax:

[code]struct Foo
{
int member;
} InstanceOfFoo;

InstanceOfFoo.member = 42;[/code]


Can you instantiate structs? Check. Classes? Check. Enums? Check. Namespaces? Nope! Therefore, namespace does not need a trailing semicolon. (For that matter, functions and the bodies of code blocks follow the same pattern.)
0

Share this post


Link to post
Share on other sites
[quote name='ApochPiQ' timestamp='1353742709' post='5003696']
There's perfect reason to the semicolon rules in C/C++.


You need a semicolon after a } any time you are working with something that can be instantiated. Otherwise, you don't.

This is to support the following syntax:

[code]struct Foo
{
int member;
} InstanceOfFoo;

InstanceOfFoo.member = 42;[/code]


Can you instantiate structs? Check. Classes? Check. Enums? Check. Namespaces? Nope! Therefore, namespace does not need a trailing semicolon. (For that matter, functions and the bodies of code blocks follow the same pattern.)
[/quote]
tell that do/while loop
;D

-edit-
I see now the "after }" you mentioned..
anyway I found a discussion on the do while semicolon:
http://stackoverflow.com/questions/942251/in-c-c-why-does-the-do-whileexpression-need-a-semi-colon Edited by Icebone1000
0

Share this post


Link to post
Share on other sites
[s]Red name [i]without[/i] strikethrough is reserved for moderator names.[/s] [b][Edit:][/b] Whoops, that was a previous version of the site. Ignore that. Edited by Servant of the Lord
0

Share this post


Link to post
Share on other sites
[quote name='Dynamo_Maestro' timestamp='1353781990' post='5003789']
The 'Banned' status is very misleading with the strike-through, I thought it meant he was unbanned from a previous ban
[/quote]
Heh, yeah, I'd vote for a strikethrough name (normal color) with red Banned tag (no strikethrough).

As for menacing avatars, I almost changed my avatar one of the frames from [url="http://www.chiefsplanet.com/BB/attachment.php?attachmentid=55242&stc=1&d=1142920093"]this[/url] to illustrate how I was feeling at the time... nothing was working ha.
0

Share this post


Link to post
Share on other sites
[quote name='Cornstalks' timestamp='1353785969' post='5003802']
I almost changed my avatar one of the frames from [url="http://www.chiefsplanet.com/BB/attachment.php?attachmentid=55242&stc=1&d=1142920093"]this[/url] to illustrate how I was feeling at the time... nothing was working ha.
[/quote]

o god, that's awesome!=-)
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