|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Some basic questions.
Hello,
I know you guys probably get these questions asked about 100 times. I have intermediate knowledge of PHP and MySQL and am pretty competent in both areas. I would be quite interested in creating a small 3D online game (nothing big). Preferably with multi-player capabilities. I know i can probably work out how to store session data and all that jazz using MySQL and php. I have searched around for a while and read posts in these forums. I have worked out that there are many languages you can use to generate such a game. I take it you cant use php as it is browser side, yes? So basically I'm asking- What language do i use that is going to be a bit like PHP, i have read through Java tutorials, looks pretty nice. Also i would quite like to know where to start, any good resources? and i take i will be fine with an Apache server, adobe photoshop and a text editor. Thanks in advance. |
|
#2
|
||||
|
||||
|
You most likely won’t have a single line of PHP in a project like this.
You will want to learn about Direct3D or OpenGl or the plethora of engines that do rendering for games. Then you will need to learn about TCP/IP or UDP to do communication between your client and server. You have a lot of learning to do. Personally I would use the C# language and then use XNA.
__________________
There are none so blind as those who will not see. — Jonathan Swift My 2D Physics Engine. My Remake of UQM. Both are written in C#. |
|
#3
|
|||
|
|||
|
Okay, i always thought opengl was on a machine an not on the web, so i could develop a small 3d game using c#. That was a slight relife as i was focused on using java untill i read a article by my host saying that you cant use server side java.
I had a look at the xna website, and it looks pretty good. It goes on about creating games for windows and xbox360 but what about online? and would the xpress edition do. Thanks i will look into them, |
|
#4
|
|||
|
|||
|
It seems you don’t entirely understand the constraints you need to work with. Your game description effectively boils down to 3D, online multiplayer. That’s not much, but it still gives you some immediate constraints. Start with 3D.
3D graphics means you need to have the client computer rendering the graphics. The two graphics libraries in support by hardware are OpenGL and DirectX. Therefore, you must be using a programming language that either directly or indirectly has access to those libraries. C# gets you access to managed DirectX, and XNA is a set of game development libraries that will make your life easier. It isn’t your only option. C, C++, Java, and a number of other languages with OpenGL bindings are usable. You can’t have 3D graphics being rendered on a server and then being sent to multiple client computers in realtime. Technology right now does not work that way. However, if you want online multiplayer, you need a server component that all the clients can connect to. Which basically you means you need a server and some logic. Since this is probably realtime logic, you ideally want a continously running program that acts as the server. This can be in any language that handles networking. C#, Java, C, C++, etc. etc. all work. |
|
#5
|
|||
|
|||
|
Ok, i have got my self "Microsoft Visual C# Developer 2008 Express Edition", must say it does look quite powerful and the language and syntax seem quite similar to php which is an advantage. I am following some of the tutorials on the XNA website, but one you have the object working on the machine how do i get it working on the web, and i take it i will need an IIS server?
Thanks very much for you advice, its really pointed me in the right direction. |
|
#6
|
|||
|
|||
|
Quote:
Hello, when you say this does this mean some form of hardware that needs to be installed on the server. Because im on a shared hosting and i cant install hardware like the. |
|
#7
|
||||
|
||||
|
It's a server-client environment. Oler1s explained it most. C# can handle it.
3d online environment only sends small packets of data that includes personal info say for example on a map like character status, coordinates, buddy lists over TCP/IP and UDP for chat messages. |
|
#8
|
|||
|
|||
|
Thanks, Sigh of relief! Okay looks like a better get learning some C#.
|
|
#9
|
||||
|
||||
|
Yeah, but working with client and server environment is a bit tricky. It's like working on two projects at the same time. The interaction between is the key. Goodluck on your project.
|
|
#10
|
||||
|
||||
|
Quote:
You have IIS, but don’t feel like using it. What if you have to write your own web server? Do you understand what I’m getting at here? Quote:
Ever play the game counter strike? Or battlefield 2? Or whatever hot MP game is out there. Do you have stuff running on IIS or Apache or whatever? No. You have the game. And when you want to play multiplayer, you connect to a server which is really a computer running a program continuously. That program manages all the clients that connect to it. |
|
#11
|
|||
|
|||
|
Ok, i think i get that part of it. But if i simplify my question right down it comes to -
Where/how do i run the file that generates the gameplay on the shared server? By watching the tutorial videos on the XNA website i can see that you build the file which loads models and textures etc. but im am confused about how to run it. I understand that the whole multi player situation is people connecting to the server. But i don't want to get ahead of myself and confuse myself. |
|
#12
|
|||
|
|||
|
When coding with C# does the server have to have the .NET Framework on?
|
|
#13
|
|||
|
|||
|
Hmm, i dont think i will be able to use XNA as it requires the following
"Microsoft Visual C# 2005 Express Edition" GOT "Microsoft Visual Studio 2005 Express Editions Service Pack 1" This is the problem, i download this and when i run it it says its not a valid win 32 thing. So what do i do i have the c# and the XNA but i need the service pack and it wont install without it. I just says you need Visual C# 2005 Express Edition Service pack 1. But that wont install? |
|
#14
|
|||
|
|||
|
Going back to Java, Does this quote from my host mean it will still be possible to create an online multiplayer game using Java?
Quote:
|
|
#15
|
|||
|