• (2 Pages)
  • +
  • 1
  • 2

Game Programming in Linux for Windows Programmers - Part 1 Perfect for those who are new to Linux and familliar with Windows.

#16 pfff  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 14-January 10

Posted 14 January 2010 - 02:52 PM

Nice tutorial.
Was This Post Helpful? 0
  • +
  • -

#17 Guest_Mike*


Reputation:

Posted 03 March 2010 - 11:26 PM

The tutorial is brilliant, thought i must mention a few things here, the title states "Game Programming in Linux for windows programmers" why would you make a tutorial using C when the industry standard is C++? another point to mention is your source comments "/* */" is good for multiple lines of comment but for single lines it is cleaner to start the line with "//" it has the same effect but uses less characters (though it doesnt make any difference in size for these tutorials larger source files that are heavily commented will benefit from it) also for small single file apps such as these 2, creating the object file (*.o) is an un-needed step in compiling. Also i must side with thspca in regards to the use of Terminal
Was This Post Helpful? 0

#18 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Posted 03 March 2010 - 11:31 PM

Quote

why would you make a tutorial using C when the industry standard is C++?

Most console game development (that I have seen) is done in C & Assembler.
Was This Post Helpful? 0
  • +
  • -

#19 Guest_Mike*


Reputation:

Posted 04 March 2010 - 09:59 PM

the only console app i see here is the hello world app, the sdltest is a gui app, as for console games being done in c and assembly, that may be so but console games are really a thing of the past (unless you are talking about dungeon crawlers and multi-user dungons) having that said, because this is a game programming tutorial (most people are not going to want to learn how to program a game that may require running from the console) they are going to want to make something a little more up-to-date which would by todays industry standards would state to use C++ instead of C
Was This Post Helpful? 0

#20 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Posted 04 March 2010 - 10:41 PM

By console I mean a gaming console, not the command line input console. The code I've done on Xbox & GBA was all done in Standard C & Assembler. Just as well the Nintendo DS is mostly GBA code except for the added functionality of networking & a 2nd graphical processor.
Was This Post Helpful? 0
  • +
  • -

#21 Guest_Mike*


Reputation:

Posted 05 March 2010 - 04:55 PM

well, good for you in programming Nintendo DS and XBOX games in C and Assembly, but if you have a look at http://stackoverflow...for-video-games you will clearly see that C++ is also the standard for console games (even the XBOX 360 SDK is C++)
Was This Post Helpful? 0

#22 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Posted 06 March 2010 - 04:56 AM

View PostMike, on 05 March 2010 - 05:55 PM, said:

well, good for you in programming Nintendo DS and XBOX games in C and Assembly,

I believe that when I said "from my experience", it's to say from my perspective & not necessarily the way things are. I'm not really sure why you need such an attitude about it.

Maybe rather than being condescending & pointing out your idea of flaws on this tutorial, you could become a member here & submit your own tutorials sharing with us your knowledge & experience in game development.
Was This Post Helpful? 0
  • +
  • -

#23 Melon Bread  Icon User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 43
  • Joined: 08-March 10

Posted 09 March 2010 - 11:02 AM

WOW, this Is Great..
I Have Always Wanted To Know How To Do This In C

This post has been edited by Melon Bread: 09 March 2010 - 11:29 AM

Was This Post Helpful? 0
  • +
  • -

#24 WolfCoder  Icon User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 783
  • View blog
  • Posts: 7,610
  • Joined: 05-May 05

Posted 09 March 2010 - 01:11 PM

I'll continue these once they fix the logs because I've been indexing all parts of these there so you could go from one to the next.
Was This Post Helpful? 0
  • +
  • -

#25 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Posted 01 December 2010 - 04:30 PM

I use NetBeans IDE for C/C++. Feels a lot like Visual Studio and has a built-in profiler of sorts. :)
Was This Post Helpful? 0
  • +
  • -

#26 WolfCoder  Icon User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 783
  • View blog
  • Posts: 7,610
  • Joined: 05-May 05

Posted 05 September 2011 - 09:52 PM

View PostMike, on 05 March 2010 - 05:55 PM, said:

well, good for you in programming Nintendo DS and XBOX games in C and Assembly, but if you have a look at http://stackoverflow...for-video-games you will clearly see that C++ is also the standard for console games (even the XBOX 360 SDK is C++)


I know I'm necroing myself but I think it's important to note that just because something is the industry standard doesn't mean it's a good thing, I mean why are you poking around Linux in the first place when "clearly Windows is the standard for games"? hee hee-!
Was This Post Helpful? 1
  • +
  • -

#27 ryan20fun  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 109
  • Joined: 20-December 10

Posted 27 September 2011 - 02:28 AM

nice tutorial.

um using Ubuntu 11.04

i can compile the hello world part, but it wont run for some reason.
and the SDL on wont compile because the sdl header is missing.

the package manager said that sdl was installed.

so what am i supposed to do now ?
Was This Post Helpful? 0
  • +
  • -

#28 meepo64  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-March 12

Posted 03 March 2012 - 07:45 PM

I am running Ubuntu 11.10. I was able to compile the hello world fine, but it doesn't run.

I did the sdltest.c section simply copy/pasting your code into my newly made file. and did the same for the "Makefile" for the sdltest, but when I tried to compile the Makefile for the sdltest.c here's what I got:
Running tool: Build

Using Makefile from ~/Desktop/sdltest
make: Entering directory `/home/tina/Desktop/sdltest'
gcc -c sdltest.c
gcc -lSDL sdltest.o -o sdltest
sdltest.o: In function `main':
sdltest.c:(.text+0xa): undefined reference to `SDL_Init'
sdltest.c:(.text+0x23): undefined reference to `SDL_SetVideoMode'
sdltest.c:(.text+0x3c): undefined reference to `SDL_Quit'
sdltest.c:(.text+0x4d): undefined reference to `SDL_PollEvent'
sdltest.c:(.text+0x73): undefined reference to `SDL_MapRGB'
sdltest.c:(.text+0x92): undefined reference to `SDL_FillRect'
sdltest.c:(.text+0xa1): undefined reference to `SDL_Flip'
make: Leaving directory `/home/tina/Desktop/sdltest'
collect2: ld returned 1 exit status
make: *** [compile] Error 1

Exited: 512

any help would be great!

Thanks!
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2