View Full Version : modifying the source code for ubuntu...

April 28th, 2012, 11:36 AM
Hey Guys.... i am new to Ubuntu and its forums....
I have made a simple snake game which runs on windows, but now wish to modify its code so that it runs on Ubuntu....
what all do i need to know for achieving this??
The game has a proper installation process and an application that runs it... and i wish the same outlook for Ubuntu... please help me

April 28th, 2012, 12:45 PM
What's it written in?

The Cog
April 28th, 2012, 12:51 PM
Moved to programming talk.

For a start, what language is it written in, and what GUI widgets does it use?

April 28th, 2012, 03:43 PM
"Proper installation process", as in, an installer program? No, that's not the Linux way. You'll want to (when it works) make a deb package.

April 29th, 2012, 07:36 AM
Its in C with standard windows header files.... maybe i'll find alternatives for them in Ubuntu but what about graphics.h??

April 29th, 2012, 05:04 PM
You might use Gtk instead of Windows GDI, graphics.h is only for turbo c's command line graphics library, however, in Linux you might use GCC. I suggest you to change it to Gtk's because Gtk also provides abundant libraries that you need :)

April 29th, 2012, 08:19 PM
I would suggest you look at the cairo graphics library or even SDL if you need something more. cairo graphics is a 2D graphics library. Gtk has been ported to this library.


As DaviesX pointed out you could port your code to Gtk, for the window management side.