r/howdidtheycodeit • u/totallyspis • Apr 06 '21
Question How does one make a standalone game in the Quake 1 engine?
There's a game currently in development called Wrath: Aeon of Ruin. It's an "old school" fps and the devs kicked it up a notch by developing the game with the Quake 1 engine instead of making a modern engine look old school.
My question is, how does one go about learning how to do this? I know the Quake engine is open source, but is my only option to try to just figure it out on my own? I know quake modding and mapmaking are popular, but are there any online sources on making a standalone game with the engine?
57
Upvotes
15
u/[deleted] Apr 07 '21
I never dug into the quake engine, but I do this with a few open-source web games.
I literally read the source code and follow the data. For example - the function controlling the character speed, what happens if I directly modify it?
It takes a few days of headbanging against the wall. But c'est le vie.
I think it's easier with games with a massive mod scene since you can follow the data a lot easier. Start changing textures, then weapons, then the title screen. See where in the code it's being controlled.
6
u/Zalon Apr 07 '21
There's basicly 2 schools of quake modding/game making today. Either you base your game on Darkplaces or you base it on FTEQW, both are "Quake Clients". DarkPlaces is based on Quake's engine code, while FTEQW is based on the QuakeWorld engine code.
Today they however both support the Quake and QuakeWorld protocols. FTEQW is the most advanced and I believe most activily developed.
Killpixel is out of the SinglePlayer modding community for Quake, so he has based Wrath on the DarkPlaces engine.
To make a game using one of these engines, you write your game code in QuakeC, which is the same you'd use if you were to make a game using Valve's Source engine, however in an extended form.
Others have already linked to guides on QuakeC, I will however provide you with a good source in QuakeWiki.org, they have quite a bit of info on QuakeC and a good collection of tutorials.
If you stay away from using the modern QuakeC extensions, your game should be able to be run even in the original Quake engine, you should however not bother with this, as the modern clients have much better system support.
To get you started, shpuld, who makes a lot of gamejam games based on the Quake engine, has made a clean QuakeC code base. He also has many examples and the code for all his games on his github. He has created a great modern menu system in Client-Side QuakeC aswell.
There's also a group called Vera Visions who has made a modern Quake based SDK.
If you're looking for other people making games/mods based on Quake, there's the #dev-corner on the Quake.World Discord, there are also some mapping based discords, but I do not have these.
4
u/Billy2600 Apr 07 '21
It's worth noting that gameplay code in the Quake 1 engine is written in QuakeC.
2
u/godprobe Apr 07 '21
It's not the Quake engine, but I've just finished reading the Wolfenstein 3D "Game Engine Black Book", and there's also one for Doom that I'll read next. Giving it a brief scan should give you a good idea of the actual "how" for learning an FPS engine, without having to dive directly into the source code -- yet. Quake would also be more advanced than either of those, but also from an era where you didn't have to specifically code for three different sound cards, etc.