Forum Topic: i wanna learn a language

(411 views • 16 replies)

This topic is 1 page long.

<< < > >>
None

dburford11

Reply To Post Reply & Quote

Posted at: 10/5/09 10:42 PM

dburford11 NEUTRAL LEVEL 03

Sign-Up: 04/01/05

Posts: 414

I was wondering, what would the best language for someone who already knows PHP, to begin programming simple games? Would it be Java?

The Universe in a Billion Years - A fictional history of the universe from the future


None

blah569

Reply To Post Reply & Quote

Posted at: 10/5/09 11:13 PM

blah569 DARK LEVEL 21

Sign-Up: 01/18/05

Posts: 2,709

I really recommend using GOSU with Ruby or C++. It's very easy to use, and very easy to setup. If you have Rubygems, you can get it simply by:

gem install gosu

RubyGems is included by default if you check "Ruby Gems" after installing Ruby. Creating a window with Gosu is very easy, as well as expanding on the window.

require 'rubygems'
require 'gosu'

class GameWindow < Gosu::Window
     def initialize
          super(550, 400, false)
          self.caption = "Hello World With Gosu and Ruby!"
     end
end

gamew = GameWindow.new
gamew.show

Of course, that's very basic, but you can expand on the following sekelton with the mass of information from libgosu.org

PHP: Main | AS3: Main | Get Firefox | Host large files (fast and free)!
"Thank you for learning me English."

BBS Signature

None

Leidolfr

Reply To Post Reply & Quote

Posted at: 10/6/09 03:03 AM

Leidolfr DARK LEVEL 12

Sign-Up: 08/22/08

Posts: 4,400

C++ seems more applicable, and makes more sense than gosu, I think.

Really the easiest languages are python, and BASIC but, both are archaic and have little to no actual use.

I use C++

None

blah569

Reply To Post Reply & Quote

Posted at: 10/6/09 08:30 AM

blah569 DARK LEVEL 21

Sign-Up: 01/18/05

Posts: 2,709

At 10/6/09 03:03 AM, Leidolfr wrote: C++ seems more applicable, and makes more sense than gosu, I think.

Really the easiest languages are python, and BASIC but, both are archaic and have little to no actual use.

I use C++

You can use Gosu inside of C++, it's just a library for drawing to the output buffer, as well as handling input, sound, etc.

PHP: Main | AS3: Main | Get Firefox | Host large files (fast and free)!
"Thank you for learning me English."

BBS Signature

None

Scyllinice

Reply To Post Reply & Quote

Posted at: 10/6/09 10:53 AM

Scyllinice NEUTRAL LEVEL 01

Sign-Up: 03/04/09

Posts: 14

You've obviously never really used a dynamic language like Python.

I prefer Ruby over Python personally, but both of those languages are in no way archaic or not useful.

Please actually use a language before you say something like that. You are totally wrong.

At 10/6/09 03:03 AM, Leidolfr wrote: C++ seems more applicable, and makes more sense than gosu, I think.

Really the easiest languages are python, and BASIC but, both are archaic and have little to no actual use.

I use C++

None

Jon-86

Reply To Post Reply & Quote

Posted at: 10/6/09 01:51 PM

Jon-86 NEUTRAL LEVEL 13

Sign-Up: 01/30/07

Posts: 3,948

Actionscript 3

i wanna learn a language

PHP Main :: C++ Main :: Java Main :: irc.freenode.net

BBS Signature

Elated

RageOfOrder

Reply To Post Reply & Quote

Posted at: 10/6/09 01:58 PM

RageOfOrder EVIL LEVEL 09

Sign-Up: 08/30/02

Posts: 6,349

Brainfuck.

+++ +++ +++ +           initialize counter (cell #0) to 10
[                       use loop to set the next four cells to 70/100/30/10
    > +++ +++ +             add  7 to cell #1
    > +++ +++ +++ +         add 10 to cell #2 
    > +++                   add  3 to cell #3
    > +                     add  1 to cell #4
    <<< < -                 decrement counter (cell #0)
]                   
>++ .                   print 'H'
>+.                     print 'e'
+++ +++ +.              print 'l'
.                       print 'l'
+++ .                   print 'o'
>++ .                   print ' '
<<+ +++ +++ +++ +++ ++. print 'W'
>.                      print 'o'
+++ .                   print 'r'
--- --- .               print 'l'
--- --- --.             print 'd'
>+.                     print '!'
>.                      print '\n'

Or, if you remove all the comments,

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

At 9/28/09 06:57 PM, citricsquid wrote:
linux isn't for those who want windows. use windows if you want windows.

BBS Signature

None

Wonderful

Reply To Post Reply & Quote

Posted at: 10/6/09 03:49 PM

Wonderful FAB LEVEL 13

Sign-Up: 07/27/08

Posts: 854

At 10/6/09 03:03 AM, Leidolfr wrote: Really the easiest languages are python, and BASIC but, both are archaic and have little to no actual use.

Python is anything but "archaic," and is still in active use today.

Posted from Linux. Distro may vary.


None

kiwi-kiwi

Reply To Post Reply & Quote

Posted at: 10/6/09 05:10 PM

kiwi-kiwi LIGHT LEVEL 08

Sign-Up: 03/06/09

Posts: 660

At 10/6/09 03:03 AM, Leidolfr wrote:
Really the easiest languages are python, and BASIC but, both are archaic and have little to no actual use.

If you have nothing to do someday, get yourself some major linux distribution, install it in virtualbox or something and try to uninstall python, see what happens.

I already tried it, Ubuntu basically uninstalled the entire system when I did that.

None

RevNation

Reply To Post Reply & Quote

Posted at: 10/9/09 12:09 PM

RevNation EVIL LEVEL 25

Sign-Up: 10/20/03

Posts: 57

honestly, if you learn something like c/c++ it will help you in the future with understanding other languages, but its not easy. I would recommend python and things like pygame etc... if you want to get something decent without spending to much time.


None

phoenixflames

Reply To Post Reply & Quote

Posted at: 10/11/09 06:50 AM

phoenixflames DARK LEVEL 06

Sign-Up: 01/14/07

Posts: 90

i would have to choose visual basic it is really, really easy. i u have to do is memorize a couple things and ur golden

BBS Signature

None

robin1232

Reply To Post Reply & Quote

Posted at: 10/13/09 03:33 AM

robin1232 DARK LEVEL 16

Sign-Up: 01/19/08

Posts: 2,652

C++ if you want a career in the gaming industry


None

amaterasu

Reply To Post Reply & Quote

Posted at: 10/13/09 08:38 AM

amaterasu LIGHT LEVEL 08

Sign-Up: 03/07/04

Posts: 2,128

At 10/5/09 10:42 PM, dburford11 wrote: I was wondering, what would the best language for someone who already knows PHP, to begin programming simple games? Would it be Java?

For a first language, I would recommend picking up C# with the XNA framework. I've been using it for a little while now and I can see the merit of it for first time users. Plus C# is easier to learn than C++ for a first language IMO.

NexusTK Characters: Stegmann Cirucci Ulquiorra Ganju

Do you like chill music? Check out my latest work!

BBS Signature

None

amaterasu

Reply To Post Reply & Quote

Posted at: 10/13/09 08:43 AM

amaterasu LIGHT LEVEL 08

Sign-Up: 03/07/04

Posts: 2,128

At 10/13/09 03:33 AM, robin1232 wrote: C++ if you want a career in the gaming industry

This is the truth though, so if you are serious aim to pick up C++. After getting comfortable with learning to write software with something like C# or Java, the move to C++ will be a breeze.

NexusTK Characters: Stegmann Cirucci Ulquiorra Ganju

Do you like chill music? Check out my latest work!

BBS Signature

None

robin1232

Reply To Post Reply & Quote

Posted at: 10/13/09 11:34 AM

robin1232 DARK LEVEL 16

Sign-Up: 01/19/08

Posts: 2,652

At 10/13/09 08:43 AM, amaterasu wrote:
At 10/13/09 03:33 AM, robin1232 wrote: C++ if you want a career in the gaming industry
This is the truth though, so if you are serious aim to pick up C++. After getting comfortable with learning to write software with something like C# or Java, the move to C++ will be a breeze.

yeah, altough I could recommend spending time with even easier to learn languages like actionscript or something (object oriented languages prefered as they make the jump to C++ even less)


None

thoughtpolice

Reply To Post Reply & Quote

Posted at: 10/14/09 03:57 AM

thoughtpolice DARK LEVEL 10

Sign-Up: 03/24/03

Posts: 3,101

The ease of development leads me to say python or ruby, because they are simple and abstract.

There are bindings to libraries like libSDL from these languages, which I would recommend using (SDL has been used commercially,) and it will severely cut down the amount of time you need to spend on unimportant details (like setting up a window etc.)

C++ is probably worth knowing if you're die-hard set on writing games I guess, but it is a very complicated language compared to almost any other and takes much time to master. It has a much better type system than C too, which, in comparison, is very very welcome.

I would recommend if you go this C++ route to use something like SDL and boost, because they will save you a lot of time doing stuff you really don't need to/shouldn't re-implement (we use boost at work - some parts of it are godawful horrific, others are incredibly useful.)

Hope it helps.

omg.
Playstation Network tag: muffin-noodle
the empty set


None

iSexy

Reply To Post Reply & Quote

Posted at: 10/14/09 09:08 PM

iSexy LIGHT LEVEL 04

Sign-Up: 09/30/09

Posts: 12

When I took programming in high school they started me off with C++ and C# then visual basic and visual C++.

Have you ever noticed that Han Solo and Indiana Jones look a lot alike?


All times are Eastern Standard Time (GMT -5) | Current Time: 11:48 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!