Can I make a 2d mmo using c#
Posted: Tue Feb 17, 2009 12:51 am
I want to make a 2d mmo like endless-online but I want to use c#. Is it possible?
The Next Generation of 2D Roleplaying Games
http://elysianshadows.com/phpBB3/
Wonderful. MMOs also require a knowledge of network programming* (read this), database types & interfaces, database design, some form of psuedo-/simple artificial intelligence. For a MMO in the MM sense, you also need knowledge of parallel processing. And for all this, since both speed and space are of the utmost, you need to know how to optimize all of it. Also probably wouldn't hurt to know BSPs or heightmaps and also clipping planes and mipmaps.Levio wrote:You guys have obviously forgot about my c# skills I made this program
Code: Select all
label.text = (Temp - 32.0)/9.0 * 5
Code: Select all
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
int main(int argc, char *argv[])
{
struct addrinfo hints, *res, *p;
int status;
char ipstr[INET6_ADDRSTRLEN];
if (argc != 2) {
fprintf(stderr,"usage: showip hostname\n");
return 1;
}
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_UNSPEC; // AF_INET or AF_INET6 to force version
hints.ai_socktype = SOCK_STREAM;
if ((status = getaddrinfo(argv[1], NULL, &hints, &res)) != 0) {
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(status));
return 2;
}
printf("IP addresses for %s:\n\n", argv[1]);
for(p = res;p != NULL; p = p->ai_next) {
void *addr;
char *ipver;
// get the pointer to the address itself,
// different fields in IPv4 and IPv6:
if (p->ai_family == AF_INET) { // IPv4
struct sockaddr_in *ipv4 = (struct sockaddr_in *)p->ai_addr;
addr = &(ipv4->sin_addr);
ipver = "IPv4";
} else { // IPv6
struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)p->ai_addr;
addr = &(ipv6->sin6_addr);
ipver = "IPv6";
}
// convert the IP to a string and print it:
inet_ntop(p->ai_family, addr, ipstr, sizeof ipstr);
printf(" %s: %s\n", ipver, ipstr);
}
freeaddrinfo(res); // free the linked list
return 0;
}
Code: Select all
$ showip ipv6.example.com //runs the program
IP addresses for ipv6.example.com: //intial hardcoded output
//all that work does this two lines of output
IPv4: 192.0.2.101
IPv6: 2001:db8:8c00:22::171
...................................Levio91 wrote:You guys have obviously forgot about my c# skills I made this program
You guys have obviously forgot about my c# skills I made this program