Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C game examples

Name: Anonymous 2010-12-11 1:33

I'm a newbie programmer learning C.

Can you guys point me to some basic game code for me to look at? Anything would be good, but I'm especially interesting in finding code for a very basic MUD environment.

Thanks.

Name: 4chan mud 2010-12-11 1:37

> look at op
You see a faggot
> kick op to freshmeat and sourceforge
Faggot was kicked in the direction of freshmeat and sourceforge

Name: Anonymous 2010-12-11 1:41

>>2
fuck off faggot

Name: Anonymous 2010-12-11 1:48

>>2
thx broli

Name: Anonymous 2010-12-11 1:56

>>2
sourcemeat and freshforge

Name: Anonymous 2010-12-11 2:36

frourcemorge and seshfeat.

Name: Anonymous 2010-12-11 4:46

I don't know why you need to limit yourself to one langauge, but MUD games as well as MMORPG servers and similar types of games usually have a few components such as:
1)Internal representation of world, with a public (but possibly still internal) and well-designated way of interacting with the world, as well as internal ways the mechanics of the world is updated
2)Networking subsystem which handles incoming clients, decoding/encoding sending/receiving packets. For a MMORPG this means the client actually has to handle the things like describing the world to the client (draw pretty world), while for a MUD, you don't implement packets directly, but instead take on the task of making a text-based console client as part of the server (which can be remotely accessed)
3) Networking subsystem connects to the internal world in way to influence it as well as access it
4) Optional scripting subsystem which allows customization of the internal world in a variety of ways without actually changing the world's intimate details just so you could add minor details (new critter/npc/etc). Optionally alternative language for programming (more newbie friendly?).
That's the general idea, but things do get rather complicated on large projects.
From personal experience I noticed C-based projects usually end up skipping on step 4 and instead they tend to bloat up the game engine with all kinds of things that tend to belong outside the engine, C++ ones sometimes make up inadequate languages which are rather limiting (compared to the direct approach the C-based games usually take), while fancier ones like Java/C# (or other high-level languages) tend to take more ENTERPRISE approaches at separating the engine from the world descripption, usually coming with clever ways to serialize/deserialize(save/load) the world and customize it, however these projects tend to end up quite bloated in the end. Each has its advantages/disadvantages, and you should decide carefully how you plan on structuring your game. While the shape of the code that I have in mind vs the language used is usually the common outcome, if you have a strong discipline and patience, you can avoid the usual pitfalls, however this is difficult as most authors realize the problem after many years (when the game is already mature enough).

Name: Anonymous 2010-12-11 4:54

Xarn writes games in C, you should contact him.

Name: Anonymous 2010-12-11 13:00

>>7
For OP: Lua (even if huge) or a tiny lisp dialect can help with step 4.

Name: Anonymous 2010-12-11 13:19

>>9
tiny lisp dialect
femtolisp[1], librep[2], tinyscheme[3].

--
[1] http://code.google.com/p/femtolisp/
[2] http://librep.sourceforge.net/
[3]http://sourceforge.net/projects/tinyscheme/

Name: Anonymous 2010-12-11 14:11

>>10
Why use tiny shit, if guile is available?

Name: Anonymous 2010-12-11 15:32

>>11
Why use gnu-bloat guile when ANONIX SCHEME is available and bloat-free?

Name: Anonymous 2010-12-11 22:02

http://en.wikipedia.org/wiki/MUD#External_links

so hard to find? If you are looking for someone to knit it all together for you you are at a loss. Why not start from scratch?
If you want to create something innovative there's no way around a ingame scripting language.

Name: Anonymous 2010-12-23 1:35

Name: Anonymous 2011-02-04 16:03

Name: Anonymous 2013-08-31 13:24


You still have a limited amount of levequests, once you do all of your allocated amount you have to wait a while, they reset at a rate of 3 every 12 hours. It's a little annoying when going through an already cleared zone and/or levelling crafting.

Name: Anonymous 2013-08-31 14:09


Why is everyone being mean to him? Is it really so bad to put your hand on someone's ass now?

Name: Anonymous 2013-08-31 14:54


Yukari is so lewd. I worry Tenshi isn't ready for her.

Name: Anonymous 2013-08-31 15:40



And sometimes because they're assuming that since the game is made by a filthy westerner, it's going to be full of shit and overused jokes.

Don't change these.
Name: Email:
Entire Thread Thread List