• Forum
  • Jobs
  • Indie Game Source Code for Sale!!!

 
Indie Game Source Code for Sale!!!

Pages: 12
Selling indie game source code (C++) at a fair price.

Will write code when needed, although some I already have prepared to rewrite to specifications.

Examples,

-Game inventory/bag space systems.
-Combat systems.
-Character customization systems.
-Game/Enemy AI systems.
-Etc.

I do not wish to be involved specifically in any project, I only wish to write simple game mechanics code. I will not write graphics engines.

Please contact me for more information!

Contact information:
NathanielDaleShellerE@gmail.com

Source code is written for hobby, not income.

Source code sample:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include <string>
#include <iostream>

using namespace std;

int player_input; //The variable used to get input from the player
int player_class; //Initialize the variable in which the class is stored
int player_staminaD;//!!
int player_intellectD;//!!
int player_strengthD; //Default values for players stats
int player_accuracyD;//!!
int player_stamina; //Governs the players health
int player_intellect; //Governs the players magic ability
int player_strength; //Governs the players melee ability
int player_accuracy; //Governs the players ranged ability
int player_maxhealth, player_currenthealth; //Health variables
int player_level, player_xp, player_maxxp; //Variables used for toon progression
int player_armortype; //Indicated what type of armor the player can use
					  //Light = 1
					  //Medium = 2
					  //Heavy = 3
					  
//Here are all of the initializations for item related variables

int resources; //Initializes the variable "resources" used for crafting.
int gold = 0; //Initializes the variable "gold"	

//In the following function,
// the characters stats are set to
//a default based on the players clas

void init(){
	
	//The player enters a number 1-3 defining the choosen class
	cout << "Welcome, adventurer!!!" << endl << endl;
	cout << "Please select your class (1-3):" << endl;
	cout << "1 - Warrior" << endl;
	cout << "2 - Mage" << endl;
	cout << "3 - Archer" << endl;
	cin >> player_class;
	
	//Display the player's choosen class
	//and set default stats
	
	if (player_class == 1){
		cout << endl << "Welcome, warrior!" << endl;
		player_staminaD = 10;
		player_intellectD = 2;
		player_strengthD = 10;
		player_accuracyD = 5;
		player_stamina = player_staminaD;
		player_intellect = player_intellectD;
		player_strength = player_strengthD;
		player_accuracy = player_accuracyD;
		player_maxhealth = player_stamina * 10;
		player_currenthealth = player_maxhealth;
		player_armortype = 3;
	}
	
	if (player_class == 2){
		cout << endl << "Welcome, mage!" << endl;
		player_staminaD = 10;
		player_intellectD = 20;
		player_strengthD = 2;
		player_accuracyD = 2;
		player_stamina = player_staminaD;
		player_intellect = player_intellectD;
		player_strength = player_strengthD;
		player_accuracy = player_accuracyD;
		player_maxhealth = player_stamina * 10;
		player_currenthealth = player_maxhealth;
		player_armortype = 1;
	}
	
	if (player_class == 3){
		cout << endl << "Welcome, archer" << endl;
		player_staminaD = 10;
		player_intellectD = 2;
		player_strengthD = 5;
		player_accuracyD = 15;
		player_stamina = player_staminaD;
		player_intellect = player_intellectD;
		player_strength = player_strengthD;
		player_accuracy = player_accuracyD;
		player_maxhealth = player_stamina * 10;
		player_currenthealth = player_maxhealth;
		player_armortype = 2;
	}
}

void character_sheet(){
cout << endl;
cout << "Health: " << player_currenthealth << "/" << player_maxhealth << endl;
cout << endl;
cout << "Stamina: " << player_stamina << endl;
cout << "Strength: " << player_strength << endl;
cout << "Intellect: " << player_intellect << endl;
cout << "Accuracy: " << player_accuracy << endl;
cout << endl;
cout << "Resources: " << resources << endl;
cout << "Gold: " << gold << endl;
}


Although most with no programming knowledge will not understand the source code, it's just a sample of my work showing that I have experience programming.

The source code is to a console based game I wrote as a sample. This code sets the players default stats, does the math adding new pieces of gear to the players equipped set, and displays the character sheet.
Last edited on
closed account (N36fSL3A)
How well are you with pointers?
I'm skilled with the basics and beyond when it comes to C++, pointers included :P. After looking at the source code provided, it was probably not the best one to show as an example of my work, as I probably could have done better, but bear in mind this code is from one of the only full games I've written, I do not like to undertake full projects, only small bits of code. I have experience working in open source projects.
Last edited on
This seems like it would be a lot easier if you were using classes O.o
I have two problems with this.

1) The code has a lot of things that should be avoided if possible (like the major overuse of globals). Classes could have been used to make it cleaner looking.
2) All the examples you have can be found online with a few minutes of searching.

-Game inventory/bag space systems.
-Combat systems.
-Character customization systems.
-Game/Enemy AI systems.
-Etc.


Most of those can be found in archives on this site, gamedev.net, and other indie sites for free.
If you are trying to sell your talent here, then you have found a poor target market. We generally tend to be programmers ourselves. May I suggest you try to market your skills on a website devoted to game designers. They may need a coder.
closed account (1v5E3TCk)
If anyone want I can send my code for free. İt is more than 1000 lines and have little bugs but they can be corrected.

It provides:

-Market system.
-Inventory.
-Skill system.
-Combat system with more than one enemy at sametime.
-Bonus combat system for boss fights.
-Market system.
-A good traveller function.
-Editable items.
-Editable enemies.
-Editable places.
-Sleep system.
-Camping at safe zones.
-Using pots.
-Level system.
-Stat system(St-Int)
-FREE

It doesnt provide:

-Classes. It is a simple code with functions and if statements.
-A pet system. I am sure it would be better to have a pet at the combat area. And it can easy addable.
-It has a little bugs with level system but can be corrected if you want.
closed account (N36fSL3A)
-Classes. It is a simple code with functions and if statements.
I'm guessing the code is very messy.
Hey neat but does it have a market system?
No offense, but I don't think anyone is going to buy this on account of -
1. Overuse of global variables
2. It's a terminal program
3. No OOP features
4. No use of enums, switches, and other features that would make sense

All-in-all this doesn't look like code purchasing in my opinion. This isn't exactly the best site to want to sell code either. I can't think of many times where someone would buy code for a game unless they wanted a skeletal program of an engine or something of the sort.
closed account (1v5E3TCk)
Lumpkin wrote:

I'm guessing the code is very messy.


only 3701 Lines not so messy -.-
Okey maybe a little messy but really meaningful :D
Oh and I have a text-based-rpg-coder. It codes for you and you just compile it.
But it has a little missing feature and not working for now. :D

Note: Both of them arent in development.
closed account (EwCjE3v7)
@senhor
Hi
I would be interested. And if u don't wanna it's fine.just tell me on Skype or message on this
I have got a "save game" system.
and "load game" system with mine.

Other features I am still working on...

Random person generator system, oh, and a bimbo joins your team system...
closed account (1v5E3TCk)
Okey Captain I will send you the code :D
closed account (EwCjE3v7)
Thanks senhor.ill be on Skype 2marrow I was busy programming 2day. And now I gotta sleep
closed account (1v5E3TCk)
No problem cap. And everyone you can add me on skype my name on skype is "senhor97" or you can add mantas. His name is "Mantis" on skype. We have a group there and we are chatting all the day.
Personally I think you should use classes for some of those variables.

example
1
2
3
4
5
6
7
8
9
10
11
#inlcude <iostream>

using namespace std;

class Player
{
public:
/*
    variables in here
*/
};



and when you want to access them.
1
2
3
4
5
6
7
8
Player character /*declare Player*/
cin >> character.input


if (character.input == /*whatever*/
{
/* do stuff */
}
closed account (N36fSL3A)
Actually, you should almost never make variables public. It's bad practice.

If you were going to do that, might as well just use a struct.
closed account (Dy7SLyTq)
not true. thats only if you are making an interface. my purple dragon book teaches me to do it with public variables
closed account (1v5E3TCk)
I was coding my game again with classes, header and tons of oop stuff again But I have a really weird error. I have created a topic:
http://www.cplusplus.com/forum/beginner/110162/

Maybe you interested in to help me :D
Pages: 12