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

Open source code for a beginner

11 posts in this topic

I have a firm understanding of C++ beyond the beginner stuff; I know classes, polymorphism, templates, ect... What I am looking for is some example source code that is properly written to look at. Something small and simple like Tetris or Snake, not huge like the Doom 3 source code.

I found this on LazyFoo's website. [url="http://lazyfoo.net/games/LazyBlocks/index.php"]http://lazyfoo.net/g...locks/index.php[/url] and it's working code, but there are a lot of global variables, C style functions that should be part of a class object, and so forth. I'm not bashing his code, Ive written far worse myself.

[b]I don't need perfect[/b], I just need something with a good format as a reference. Something I can use whenever I hit a roadblock to look and see "how they did it".

Anyone know of or have any open source game code I can look at? Edited by Kaanin25
0

Share this post


Link to post
Share on other sites
[quote name='Cornstalks' timestamp='1338955058' post='4946640']
...
You'll find that in programming, ...
[/quote]

Very nicely put. :)
0

Share this post


Link to post
Share on other sites
I found [url="http://code.google.com/p/ovgl/"]this open source project[/url] a long time ago through these forums. Although, the developer has not been quite as active lately and the code is a bit of a mess, it has given me some insight into how to design my engine. Personally, It was easier for me to understand than the source code for id Tech 3.
1

Share this post


Link to post
Share on other sites
[b]The Secret Mantra[/b]
[quote name='Lazy Foo' timestamp='1339086427' post='4947086']
You want to know the best way to learn design? ... go out and get your hands dirty.
[/quote]

Super awesome LazyFoo! Love ya!
-2

Share this post


Link to post
Share on other sites
Try checking [i]Allegro SpeedHack[/i], it's an allegro "contest" where people make simple games in a short time stamp (not like in hours, but still not years). The games' sources are available (or were). Worth checking!

Link [url="http://www.speedhack.allegro.cc/"]speedhack.allegro.cc[/url]
2

Share this post


Link to post
Share on other sites
[url="http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition.aspx"]This seems to be[/url] exactly what you are looking for. Also, keep in mind, it is ONE way to do things, and it favors readability over performance, but it goes beyond the level of polish of most demos/tutorials.
2

Share this post


Link to post
Share on other sites
[quote name='Lazy Foo' timestamp='1339086427' post='4947086']
Notice how I very specifically noted that that the source for the game is how not to to make game, in bold and capslock so you know I'm serious. [img]http://www.gamedev.net/public/style_emoticons/default/smile.png[/img]
[/quote]

Notice how I very specifically noted that I was not bashing your code...I understand it was a tutorial designed with the intent to show beginners how to handle the SDL library and setup a very simple game; and for that purpose you did a fantastic job, your tutorial has been very sucessfull and I myself thank you for making it.

[quote name='Lazy Foo' timestamp='1339086427' post='4947086']
You want to know the best way to learn design? Stop going around to other people's projects hoping you'll find some magical piece of wisdom and go out and get your hands dirty.
[/quote]

So you just assume that im sitting around all day just parusing through other people's code without writing any of my own? That I havn't already gotten "my hands dirty". I have been writing code on and off for some time now; I have a few past projects under my belt. I am not an infinite pool of resources unto myself and when I lack the skill and knowlege to solve a problem I seek out others who are better then me for answers.

In my particular case I had a [url="http://www.gamedev.net/topic/626312-best-way-to-design-an-object-list/"]problem[/url] with the game I am developing right now and all the solutions I had come up with on my own have been unsatisfactory. I thought maybe I could get a look at few other open source projects made by better programmers to see how they did it.

learning by example is a very valid form of education. If you don't want to help that is fine, then dont post, but please don't berate me as if im not trying.
Sorry if that was a bit of a rant, but it really upset me. I came looking for help.

Thank you very much for the resources Serapth, EnigmaticProgrammer, and Dejaime. Edited by Kaanin25
2

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