Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-08-09 00:00:00Z and 2020-08-10 00:00:00Z
How is the Teeworlds Source-Code actually structured?
Can someone explain which parts of code to find in which package? What's in base or what's the difference between engine and game and everything xd
Some kind of description would be nice : D
@suicidalLenahx3 base contains code used everywhere, but specifically lowlevel stuff to make crossplatform easier, system.c is like a little libc, cuz in old times stuff blah blah, engine is the game engine, it has most of what u need to make a game: rendering, sound, config, input, networking, in the game u got the higher level client and server
11:59
@suicidalLenahx3 most of the time u will only change stuff in src/game
12:00
if you want to add a config option it is in variables.h, gamecore.cpp for physics, game/server/entities/character.cpp for the character spawned when a player is alive, essentially a tee
12:01
game/server/player.cpp represents a player, and its present when you are dead or alive
12:01
(the character gets deleted when ur ded)
12:02
the client is madeup of components, i think its fairly easy to get around it
12:02
if you want to add a chat command its in ddracechat.h(edited)
12:03
you should look at how another command is made
12:03
just copy it
12:07
oh and Snap means Snapshot, its the info sent to the client, most entities have it (i say it cuz i spent months not knowing what "Snap" meant and i facepalmed