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

Unity examples/tutorials for a C++ programmer?

14 posts in this topic

I'm a C++ programmer and I wanted to try Unity. I have watched the standard Unity tutorials (from their main page).

 

Do you know any good "source codes" to download? I find these very hard to find... I just wanted to download a few projects and check how it's done (theory can get you so far, checking how others did is a better way to learn to me). Especially something that is not 3D (I'm doing mostly 2D/GUI/text based strategies).

0

Share this post


Link to post
Share on other sites

Why not just download Unity and try it out ? , it comes with an example game and if you got some programming experience allready you can just jump in head first. (its not that difficult)

0

Share this post


Link to post
Share on other sites

Why not just download Unity and try it out ? , it comes with an example game and if you got some programming experience allready you can just jump in head first. (its not that difficult)

Yes I did it. It's just that is seems they have just this one/very few examples only. And none of them are 2D stuff.

0

Share this post


Link to post
Share on other sites
Yes I did it. It's just that is seems they have just this one/very few examples only. And none of them are 2D stuff.

 

iirc, Unity doesn't have a dedicated 2D Library, (or didn't last time i checked) you have to use the GUI side of it if you wish to use it for 2D.

0

Share this post


Link to post
Share on other sites

 

Yes I did it. It's just that is seems they have just this one/very few examples only. And none of them are 2D stuff.

 

iirc, Unity doesn't have a dedicated 2D Library, (or didn't last time i checked) you have to use the GUI side of it if you wish to use it for 2D.

 

 

You can also set a camera to use orthographic projection + there are some 2D libraries / plugins in the asset store.

 

Allthough for a 2D game there might be far more suitable engines than Unity out there.

Edited by SimonForsman
0

Share this post


Link to post
Share on other sites

I learned as I go. It might feel a bit strange to work with unity from the start, but once you get used to how things are handled internally, it's pretty easy to do stuff. Eventually you will know what you want to achieve and with a big community like unity has, it only takes a google search like "unity3d how to make object follow the mouse" and you will get plenty of hits that can help you out or refine your search.

 

As for tutorials, I found that the videos on burgzergarcade were ok to start with and get a grasp on how things work (check out the hack and slash one)

0

Share this post


Link to post
Share on other sites

Unless you are set on using Unity for 2D, if you already know C++, why not just use SDL and/or OpenGL for your 2D game?

 

If you want it to work on webpages (and without a plugin), have a look at using the Emscripten compiler. One of my personal projects is to re-implement the Unity API using C++ and the above technologies. So far I have found them to be very capable.

Edited by Karsten_
2

Share this post


Link to post
Share on other sites

Correct me if I am wrong, but considering what I've read into Unity Community forums, Unity uses C# instead of C++. Hopefully, there'll be a way to combine Unity with C++ but this is not the official way of doing things. Again, maybe I'm wrong. I've never make use of Unity, so ...

 

Let me quote some posts that might be helpful for you:

You don't really use C++ in Unity. You can in certain specialized cases, such as plugins, but not for scripting. And definitely not for Flash.

Short answer is no, you can't use C++ with Unity. In Unity, you can code in C#, UnityScript or Boo. You then deploy the same code to all the platforms supported by Unity. It does the conversion for you.

That said, I think that's the reason why you don't find many resources available for C++ in Unity. 

Edited by Zeldforged
0

Share this post


Link to post
Share on other sites

I've been using Unity with C# for about half a year and now moving back to C++. I can give u source code for this project  if you want: http://www.youtube.com/watch?v=u3vNamukTQs

 

Mainly it's just trail and error. To make it 2D you just change in camera properties to Ortho.

 

Mainly unity is good because it supports wide range of platforms like Android, iOS, Windows, Mac, Linux... it is good engine to know since it is quite popular among small companies. But C++/SDL/OpenGL is much much more important to know :)

1

Share this post


Link to post
Share on other sites

I've been using Unity with C# for about half a year and now moving back to C++. I can give u source code for this project  if you want: http://www.youtube.com/watch?v=u3vNamukTQs

 

Mainly it's just trail and error. To make it 2D you just change in camera properties to Ortho.

 

Mainly unity is good because it supports wide range of platforms like Android, iOS, Windows, Mac, Linux... it is good engine to know since it is quite popular among small companies. But C++/SDL/OpenGL is much much more important to know smile.png

 

Indeed, Unity is great for mobile games since you don't really have to worry that much(most of the time it just works) about the whole cross platform thing and on the Android side they do tons of work to get things working on the extremely wide range of devices out there (Something that can be a major headache to do yourself). On the PC the big advantage really is the webplayer (There are plenty of other engines and also lower level frameworks that offer mac,win,linux support)

0

Share this post


Link to post
Share on other sites

You can try the 3dbuzz tutorials for unity.  One of them goes through the whole process of making a pseudo 2d space invader style game.   It is very basic but it does cover all the points you need to get started.

0

Share this post


Link to post
Share on other sites

Correct me if I am wrong, but considering what I've read into Unity Community forums, Unity uses C# instead of C++. Hopefully, there'll be a way to combine Unity with C++ but this is not the official way of doing things. Again, maybe I'm wrong. I've never make use of Unity, so ...

 

Let me quote some posts that might be helpful for you:

You don't really use C++ in Unity. You can in certain specialized cases, such as plugins, but not for scripting. And definitely not for Flash.

Short answer is no, you can't use C++ with Unity. In Unity, you can code in C#, UnityScript or Boo. You then deploy the same code to all the platforms supported by Unity. It does the conversion for you.

That said, I think that's the reason why you don't find many resources available for C++ in Unity. 

 

He says he is a C++ programmer wanting to do something in Unity, not that he wants to use C++ in unity.

 

Or that's what I got from it at least :)

0

Share this post


Link to post
Share on other sites

You can't program C++ with Unity.

 

Just learn some basic JavaScript (it's very easy, especially from a C++ background) and then read the documentation.

 

If you're having trouble getting "real" games together, look at some tutorials to make pong or other easy games.

1

Share this post


Link to post
Share on other sites

 

He says he is a C++ programmer wanting to do something in Unity, not that he wants to use C++ in unity.

 

Or that's what I got from it at least smile.png

Correct. I'm just a C++ programmer that looks for examples/tutorials suitable for a C++ programmer's mindset (so without unneeded lenghty explanations like what "if" statement or "bit operator" is biggrin.png). I know Unity uses C#.

Edited by Acharis
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