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

How To Start Game Programming With C++

11 posts in this topic

Background : I have just finished my bachelor program in university , I have studied computer engineering , I can write codes with c++ , c# and java ... i am better with c# , i have done more coding with it . recently i have decided to work on game programming ... i intend to continue this as my main career , not just doing it as a hobby .

 

Question : i am really confused , i have written very simple game like hangman with c# , my problem now is that i have no idea how to start games with little graphic , for example a simple 2d game like mario (i know it's too much for me now and i don't intend to make something like that ) . how am i suppose to draw the platform ? or assign keys to move a character through the screen and the platform ? is there any guide or book that can teach the basics with working with graphics ?

 

I'd appreciate any help

thanks  

0

Share this post


Link to post
Share on other sites
There were many way to develop a game.
A game was composite by many sub-system.
For example: Main System of Game, Characters System, Graphics System, Control System ... etc. Maybe you should try to study one of sub-system you interested.
Or, you can study Unity 3D. It is very complete game develop system.
0

Share this post


Link to post
Share on other sites

That depends really what your target is and how low level you would work.

 

Is your goal to write a game an learn mainly game mechanics I would advice you to find some API or Engine an build your game up on that. For 2D I'm not sure but SDL might be a good starting point. For 3D UnrealEngine or Unity both are very powerfull and "easy to use" (regarding their power) engines.

 

If your wan't to learn on the techniques behind and study how to write an engine you should lern about the differnt subsystems.

For input: Study window creation and system message handling on your prefferd OS.

For rendering: Learn about D3D (11) and OpenGL

For Physix: Learn about PhysX, Havok or something similar.

aso.

0

Share this post


Link to post
Share on other sites

Question : i am really confused , i have written very simple game like hangman with c# , my problem now is that i have no idea how to start games with little graphic
I don't know about c#, but with C++, you get graphics functionality by using a 3rd-party library.

 

SDL and SFML are basically plain rectangles in a window (or full screen) that you paint on, with keyboard/mouse support for getting key-press and mouse move events.

 

If you want more normal application-ish, you can use a GUI toolkit. I mostly only use Qt (although it provides more than Gui support), but there are loads of other such toolkits. Typically you end up with a 'normal' gui application, and not 'a game'.

 

Unreal or Unity for c# are full blown frameworks for making 3D games, they provide a lot more functionality. Can't tell you much about it, as I never looked at any of them.

0

Share this post


Link to post
Share on other sites
Have a look at my website www.MarekKnows.com there I've posted step by step video tutorials showing how to program in c++ and OpenGL to create games.
1

Share this post


Link to post
Share on other sites

thanks to you all guys ... they were all helpful ... i think i should do some reading before asking any other questions  :D ....

0

Share this post


Link to post
Share on other sites

It is good that you have all of that programming experience, though I am not sure about your skill level. No doubt, you have enough to begin simple game development.

 

I tried Java, C#, and now C++.   In the game industry, a lot of AAA games use C++ for the back end programming and some scripting language for the game itself, such as Lua, C#, Python, or combination of two.  Some make their own scripting language loosely based on an existing one.

 

The "game engine" backend programming is a full time job to create by itself, unless you have years to spend on it. Typically, teams make the game engine and other teams make the game itself, with some overlapping in some game development organizations.

 

If this is only a hobby, then do what you want to do. If this is a career choice, then I recommend the taking of one of two paths:  Build or Join a game development company  /// OR /// Go Indie Developer. 

 

More to your question>>>

Take a look at SDL.  (Simple DirectMedia Layer)  It is designed for OpenGL and C++ development, but there are libraries / bindings for many other languages and you can even use it for Direct 3D API in certain situations. SDL simplifies and streamlines development so that issues such as control devices (keyboard, mouse, controller, etc.) are much more accessible and the development is more productive. SDL is a set of libraries as a layer between your game (or other software) and the existing API in computing devices (usually OpenGL or similar).  SDL also makes development more productive for 3D or 2D rasterizing or rendering. There are libraries for open source sound, window creation (with or without borders), loading screens, and error messages. There are also plugins for some of the best debugging and other analysis tools. SDL is very good for beginning and intermediate development.  It can get complex for advanced dev, particularly in testing and debugging, but some popular games use at least part of the SDL package.

0

Share this post


Link to post
Share on other sites

 You must first get yourself familiar with the concept of a game loop.

These resources might be helpful:

Then, you need to know how to implement various sub-systems of the game and will have to select the libraries which you want to use for that purpose.

You can use libraries like SDL/SFML to take care about sub-systems like Graphics, Sound, Input Handling, etc.

 

Next, you will have to learn how to create a complete game architecture so that you can integrate all sub-systems properly.

Here's a great book which summarizes all this well: Game Coding Complete, Fourth Edition

1

Share this post


Link to post
Share on other sites

I would start by installing SFML and going through their tutorials.


Absolutely, totally and radically agreed. SFML is a delight for us, the beginners who are 'not so beginner' and so want sufficient control but with ease of use
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