How to divide gamemode in INCLUDES?
#7

Quote:
Originally Posted by [HLF]Southclaw
View Post
Here are a couple of gamemodes that follow a pretty standard module layout:

https://github.com/Southclaws/ScavengeSurvive - quite an old gamemode, code is split based on either whether it applies to player accounts, player characters or the game world. It's a good starting point but quite old so it has gathered quite a few hacks and workarounds in terms of layout that I never got around to fixing.

https://github.com/Southclaws/samp-sandbox - a much newer project that's quite young. Here I'm experimenting with some newer ways of splitting code as well as making heavy use of dependencies as packages, making each unit individually testable.

Pawn and SA:MP lives in this "bubble" where standard, logical practices don't seem to pierce. My advise is to look at some other projects in other programming languages on GitHub - you don't need to know the language, just look at how the files are structured.
The second project is super clean and easy to understand, it makes me want to learn SA:MP development, especially with how well commented it is. On the other hand, SS is very bloated and daunting to somebody who doesn't know a whole lot and with it being the primary example of modular development the good practices inside it don't reach as many people.
Reply


Messages In This Thread
How to divide gamemode in INCLUDES? - by div - 20.06.2018, 14:28
Re: How to divide gamemode in INCLUDES? - by taktaz - 20.06.2018, 14:44
Re: How to divide gamemode in INCLUDES? - by Verc - 20.06.2018, 15:34
Re: How to divide gamemode in INCLUDES? - by coool - 20.06.2018, 16:57
Re: How to divide gamemode in INCLUDES? - by div - 20.06.2018, 17:02
Re: How to divide gamemode in INCLUDES? - by Hunud - 20.06.2018, 17:04
Re: How to divide gamemode in INCLUDES? - by Garr - 20.06.2018, 17:29
Re: How to divide gamemode in INCLUDES? - by div - 20.06.2018, 17:36
Re: How to divide gamemode in INCLUDES? - by div - 20.06.2018, 17:43
Re: How to divide gamemode in INCLUDES? - by div - 20.06.2018, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)