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

Programming Tutorial

8 posts in this topic

Hi friends,

I would like to ask you, how can i learn the basics of computer programming?
Is there some video tutorial, or something like that??
If Yes then Please share with me.
0

Share this post


Link to post
Share on other sites
Khan Academy has a few introductory videos:

http://www.khanacademy.org/cs/tutorials/programming-basics
1

Share this post


Link to post
Share on other sites
This should answer your questions: http://www.gamefromscratch.com/post/2011/08/04/I-want-to-be-a-game-developer.aspx

I personally use C# with SharpDX, because I´m not sure about the future of XNA.
But you could use Unity3D with C#: http://unity3d.com/

C++ has Ogre3D, Allegro, SFML, ... as far as i know

If you know your language well, you should start writing 2D games like Pong, Space Invaders, ...
Don´t rush to 3D and don´t think about programming a (m)morpg. This are some hard tasks wich need experience.

Know your goal, and get to it.
0

Share this post


Link to post
Share on other sites
If your completely new to programming then I highly recommend python. Its about as simple as programming gets (short of visual tools anyway) while being a very powerful language at the same time. The skills you learn in python will then apply to other languages. Someone has already posted a python 3 video tutorial. Each generation of python is ever so slightly different. 2 is still remarkably common, 3 is relatively new but all the best tutorials are for 3. 2 is slowly being phased out. If you find the tutorials that suit you best are for 2 then use 2 but otherwise you might aswell use 3, just make sure on the python website you download the correct version for your tutorial (I believe that would be either 2.7 for python 2 or 3.1 for python 3). One python tutorial thats meant to be pretty good can be found here: http://inventwithpython.com/chapters/ (python 3)

C# and java are often recommended too. These are also excellent choices although harder than python (I happen to know both python and C#, have not used java although I hear java and C# are very similar in syntax and difficulty).

For comparison here is the same program written in python 3 and in C# 4.

[size=6]Python[/size]

[source lang="python"]import random
import time

def displayIntro():
print('You are in a land full of dragons. In front of you,')
print('you see two caves. In one cave, the dragon is friendly')
print('and will share his treasure with you. The other dragon')
print('is greedy and hungry, and will eat you on sight.')
print()

def chooseCave():
cave = ''
while cave != '1' and cave != '2':
print('Which cave will you go into? (1 or 2)')
cave = input()

return cave

def checkCave(chosenCave):
print('You approach the cave...')
time.sleep(2)
print('It is dark and spooky...')
time.sleep(2)
print('A large dragon jumps out in front of you! He opens his jaws and...')
print()
time.sleep(2)

friendlyCave = random.randint(1, 2)

if chosenCave == str(friendlyCave):
print('Gives you his treasure!')
else:
print('Gobbles you down in one bite!')

playAgain = 'yes'
while playAgain == 'yes' or playAgain == 'y':

displayIntro()

caveNumber = chooseCave()

checkCave(caveNumber)

print('Do you want to play again? (yes or no)')
playAgain = input()
[/source]

[size=6]C#[/size]

[source lang="csharp"]using System;
using System.Collections.Generic;
using System.Text;

namespace DragonRealm
{
class Functions
{

}

class Program
{
static void displayIntro()
{
Console.WriteLine("You are in a land full of dragons. In front of you,");
Console.WriteLine("you see two caves. In one cave, the dragon is friendly");
Console.WriteLine("and will share his treasure with you. The other dragon");
Console.WriteLine("is greedy and hungry, and will eat you on sight.");
Console.WriteLine();
}

static string chooseCave()
{
string cave = "";
while ((cave != "1") & (cave != "2"))
{
Console.WriteLine("Which cave will you go into? (1 or 2)");
cave = Console.ReadLine();
}
return cave;
}

static void checkCave(string chosenCave)
{
Console.WriteLine("You approach the cave...");
Console.WriteLine("");
System.Threading.Thread.Sleep(800);
Console.WriteLine("It is dark and spooky...");
Console.WriteLine("");
System.Threading.Thread.Sleep(800);
Console.WriteLine("A large dragon jumps out infront of you! He opens his jaws and...");
Console.WriteLine("");
System.Threading.Thread.Sleep(1200);

Random random = new Random();
string friendlyCave = random.Next(1, 3).ToString();

if (chosenCave == friendlyCave)
{
Console.WriteLine("Gives you his treasure!");
}
else
{
Console.WriteLine("Gobbles you down in one bite!");
}
}

static void Main(string[] args)
{
string playAgain = "yes";
while (playAgain == "yes")
{
Console.Clear();
displayIntro();
string CaveNumber = chooseCave();
checkCave(CaveNumber);

Console.WriteLine("Do you want to play again? (yes or no)");

playAgain = Console.ReadLine();
}
}
}
}
[/source]
You can see for yourself which of the 2 is simpler to follow. I do have to say, that program could be simplified for a beginner a little further (in which case they begin to look a little more similar). The original python code I found here: [url="http://inventwithpython.com/chapter6.html"]http://inventwithpyt...m/chapter6.html[/url] I then ported it to C# myself a few days ago in order to practice my C# skills.

I do not recommend learning an un-managed language first. C++ is an excellent example of an un-managed language. Later on then C++ is probably the best language but its also one of the hardest to work with and immense for a newcomer. Not impossible for a newbie but no offense you haven't googled for a programming tutorial yourself yet so I doubt you have the patience to learn C++.


EDIT:
Jesus christ the forum's code tag does not work well, but then it does say experimental I guess. Edited by 6677
0

Share this post


Link to post
Share on other sites
Use this: http://www.codecademy.com

It's similar to Khan Academy but it's not just videos, it's interacting and using codes also. There you can learn Javascript, Python, Ruby, and more. It's very beginner friendly so don't be afraid of trying it out.

Make sure to create an account to track your progress
1

Share this post


Link to post
Share on other sites
If you haven't decided on the languages yet. I'd also recommend Python and C# for the starters. If you're planning to take a university course in the near future, you may expect that they will teach you Java (hopefully - some schools start from C - which is a great language but not the easiest to master).

As for the complete guide for beginners, I'd highly recommend [url="http://www.amazon.co.uk/Programming-Python-Complete-Introduction-Developers/dp/0321680561/ref=sr_1_1?ie=UTF8&qid=1349544857&sr=8-1"]this[/url] book. I used it myself to learn Python and I must say, that the book is well organized and straight to the point. Edited by Vodahmin
0

Share this post


Link to post
Share on other sites
[quote name='FLeBlanc' timestamp='1349446043' post='4987118']
Khan Academy has a few introductory videos:

[url="http://www.khanacademy.org/cs/tutorials/programming-basics"]http://www.khanacade...gramming-basics[/url]
[/quote]


I visit to this link ..... This link is too Good...
Thanks for sharing this link ..

[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
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