Beginner in Programming for games help please

Started by
12 comments, last by 3Ddreamer 10 years, 4 months ago

Guys really? I mean, I'd make him consider HTML5/JS if I were you, and since he has MySQL/PHP experience I'd figure he has some webdev experience. C, C++, Java is all too complex for a starter IMHO.

Well, we don't know if he wants to do web based games, which is why I was curious about what platforms he was targeting. If he wants to write native code for a platform, then HTML/JS are going to be poor choices.

Secondly, Java is often used as a language for teaching beginners (and the OP isn't even a beginner programmer), so can hardly be considered too complex. Anybody who has experience with programming paradigms and techniques should be able to pick up the three languages you mentioned without a lot of difficulty.

Advertisement

If you are absolutely just getting started, here is a really basic javascript example game. If you just view the source code, and copy and paste it into your text editor, you will be able to look at it and figure out what it does. You can make changes to the code, and then just save and view the file in your internet browser to see the effects. Whatever language you use, the code will basically function more or less like that example.

If you plan to learn Rails someday so that you can earn lots of money as a Rails developer, then you might try the Gosu gem, which runs on Ruby. Installing Ruby is really easy and so is installing Gosu. In my opinion, Ruby-based Gosu is the easiest programming language/platform to learn out of all languages and platforms. Boogeyman19946's comments are spot on. Once you learn to use Ruby, all the other programming languages will make more sense. There is also a C++ version of Gosu, which has faster processing speed, but is not as easy to learn.

Just for the sake of comparison, here is the same game as the javascript example, written in Ruby:


require 'chingu'
include Gosu
class Game < Chingu::Window
  def initialize
    super(600,400,false)
    self.caption = "Simple Game"
    self.input = [:holding_left, :holding_right, :holding_up, :holding_down, :esc]
    @player = Chingu::GameObject.create(:image => Image["face.png"], :x => 30, :y => 70)
  end
  def holding_left;   @player.x -= 3;  puts "left";   end
  def holding_right;  @player.x += 3;  puts "right";  end
  def holding_up;     @player.y -= 3;  puts "up";     end
  def holding_down;   @player.y += 3;  puts "down";   end
  def esc;            exit;                           end
end
Game.new.show

I'd try a good game engine, not because you need one, but because they tend to have AWESOME help for beginners to use their engines (Which will also teach you how to code!) We use Unity

Hi,


C#

C++

Java maybe?
but the problem is i dont know where to start



Give your ideas on how to start and i will glady accept that help

Stay the #%@*#!! far from C++ until you reach intermediate level in another coding language! This will save you months, if not years, of confusion and unnecessary delay in getting your first few games finished. The language of C++ is just fine but so extensive that you will get lost soon. It is too forgiving of bad coding habits to really be practical for a beginner.

The C# is a great choice, but Java has its place, too, especially if you like it and it is being used for scripting gameplay.

1) Choose a game engine which suits your genre of game and your skills.

2) Use the main language which is supported by that game engine.

3) Make several applications and 2D console type games (like tic-tac-toe, crossword puzzle, word search, etc.) before even touching a game engine.

4) Assemble your workflow pipeline of software and applications connected to your game engine of choice.

5) Create a few 2D games using the game engine.

6) After 1-2 years practice, begin making 3D games. (I say this because you will be tempted sooner than that! wink.png )

Read my signature below here for solid general advice...

Personal life and your private thoughts always effect your career. Research is the intellectual backbone of game development and the first order. Version Control is crucial for full management of applications and software. The better the workflow pipeline, then the greater the potential output for a quality game. Completing projects is the last but finest order.

by Clinton, 3Ddreamer

This topic is closed to new replies.

Advertisement