TomeNET gamedev school - learning ANSI C

Discussion about topics that don't fit elsewhere.
Post Reply
User avatar
tangar
Posts: 1652
Joined: Tue Mar 03, 2015 3:49 pm
Contact:

TomeNET gamedev school - learning ANSI C

Post by tangar »

I wanna come closer to understanding - how TomeNET works so one day I'll able to help with coding. I understand that learning for it is extreamely complex and slow process, but I do not haste and ready to learn it in years :)

I'll publish my newbie notes there so maybe some other people would be interested to learn programming and help TomeNET.

TomeNET written in ANSI C (~ C89-C99)
Some people even say that ANSI C is the most efficient C-variant and the Linux kernel is actually written in it (instead of for example C++).
A few useful link to begin with:
1) wiki: C language, ANSI C
2) TomeNET source code could be found there: https://www.tomenet.eu/downloads.php
3) Short tutorial to C: https://matt.sh/howto-c

There are a lot of books about ANSI C, I'll add some info considering it after I'll try to read them.

I suppose that to understand TomeNET, we need:
1) ANSI C basics.
2) create very simple roguelike game yourself (good tutorial - 'RogueLulz, Part I: Drawing the Map, Walking Around, Basic Monsters and Attacking.' http://atdt.freeshell.org/k5/story_2007 ... _1869.html )
3) learn TomeNET source


Please don't hesitate to add more information, useful links, tutorials or anything considering this topic :)
Tangar's tileset, addon, guides & maps: English TomeNET page ||||||| Russian TomeNet page
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
User avatar
tokariew
Posts: 373
Joined: Thu May 13, 2010 8:20 pm
Location: Poland

Re: TomeNET gamedev school - learning ANSI C

Post by tokariew »

the basic that you need to know is how the ifs/else and loops work xD and maybe something about functions…
Basic of curses/ncurses library can be nice to have…
Your best friend is text editor with ability to search in all text files in given directory, some patience (I lack it xD) to read code, and some logic, to understand if statements
You have quite nice chunk of code written in Lua…
img {
max-width: 100%;
}
https://tokariew.xyz
Computation
Posts: 10
Joined: Thu Feb 15, 2018 4:58 pm

Re: TomeNET gamedev school - learning ANSI C

Post by Computation »

One of my favorite websites is freetechbooks.com. It might help you too. It has many legal free books and a lot about C as well.

BTW why does TomeNET not use GIt?
User avatar
tangar
Posts: 1652
Joined: Tue Mar 03, 2015 3:49 pm
Contact:

Re: TomeNET gamedev school - learning ANSI C

Post by tangar »

tokariew, thanks :D I have some basic experience in php coding so loops, if/else are ok.. But as I've no idea considering even basics in C, and stuff like curses/ncurses or Lua (just 1st time checked _this terms_ in wiki, thats it)... So it wouldn't be so simple as you describe to get into it.. But I'm not in haste, I'm ready to spend months and probably years in learning TomeNET code. It's pretty fun thing to do because AFAIU code is well commented :D

Computation, I don't know why TomeNET doesn't have git. I suppose cause in such way devs could have more strict control over process of development and follow their ideas how game has to be. Maybe even devs using private 'git', who knows.. Anyway you could create your git with TomeNET code, make something useful and present it to community. If devs would like your contribution, they would accept it, I suppose. First deed, then words :)
Tangar's tileset, addon, guides & maps: English TomeNET page ||||||| Russian TomeNet page
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
Computation
Posts: 10
Joined: Thu Feb 15, 2018 4:58 pm

Re: TomeNET gamedev school - learning ANSI C

Post by Computation »

tangar wrote: Tue Feb 27, 2018 10:01 pm
Anyway you could create your git with TomeNET code, make something useful and present it to community. If devs would like your contribution, they would accept it, I suppose. First deed, then words :)
My thoughts precisely. In fact, I was already ahead of you with creating the git repository.
Post Reply