LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2009, 11:10 PM   #1
smarty_x007
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Exclamation Network Game Design - Graphics Tools


I want do design a simple network game (like tic-tac-toe,or checkers) on linux and looking for somr graphics tools which could be used to render simple 2D graphics along with some network programming. I am good at java programing but i dont know how to handle images etc in java and render graphics. i know netork programming in java and c.
please help out about how should i approach a solution to the problem.

Game Scenario: (although it sounds childish, it will make someone drill down to his basics.)

1) 2 player network game.
2) one player uploads an image from his hard disk and rotates it and sends to another user
3) other player over the network corrects the orientation of this image and sends it back to the first player.
4) the first player declares the second a winner or loser.
 
Old 09-22-2009, 05:33 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
probubly better to have all the resources (images, sound, etc) on both computers
so all you have to net acorss the network are instructions
i have no network experence but some game experence but your question isnt clear
 
Old 09-22-2009, 05:47 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
just figured your post out
you can just send the image over a sockit stream but it may take a while
seems like a crazy idea 2 me
 
Old 09-29-2009, 03:30 AM   #4
detectedstealth
LQ Newbie
 
Registered: Sep 2009
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
Send the original image to both players, then only send the manipulation data on any future updates. IE: Player 1 uploads picture, picture is sent to Player 2. Player 1 rotates the picture then sends only the transformation (rotation/scale/translate) matrix to player 2, player 2 takes this transformation matrix and applies it to the image on his screen. Player 2 then makes his changes and the new transformation matrix is sent to player 1. NOTE: You will have to make sure the player who is waiting for the other player cannot manipulate the image.

The only time you should be sending the image over the network is on first load/upload of a new image.

As for the technology just use SDL for this, unless you want to do advanced manipulations to the image (IE: GIMP/Photoshop) then use OpenGL.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web design tools for Firefox LXer Syndicated Linux News 0 03-05-2008 12:50 PM
help on web design and back end programming tools amolgupta Programming 7 02-21-2006 02:12 PM
a small game design algorithm feetyouwell Programming 4 03-23-2004 03:08 PM
Any 2D/3D CAD design tools available? Swampy Linux - Software 1 01-29-2004 06:28 AM
website graphics and design software versaulis Linux - General 1 12-01-2003 02:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration