|
|
MrGriggs
|
|
Reply #32 Posted on: January 18, 2011, 08:44:02 am |
|
|
Joined: Dec 2010
Posts: 128
|
int main() { switch ( Begin ) { case default: int numofinst = 0; instance_create(30,30,ball, //path of sprite); //This instance is desired to move down and right instance_create(2,2,TheGame, //path of sprite); //This instance is an instance which shall do nothing int Begin = 1; break;
case 1: step(); draw(); break; } }
void declareinst() { string instance_name[numofinst]; int instance_xposition[numofinst]; int instance_yposition[numofinst]; string instance_sprite[numofinst]; return; }
void instance_create(int x, int y, string name, string spritepath) { numofinst +=1; declareinst(); string instance[numofinst] = {name}; int instance_xposition[numofinst] = {x}; int instance_yposition[numofinst] = {y}; string instance_sprite[numofinst] = {spritepath}; return; }
void dostuff(int xammount, int yammount) { int instance_xposition[curinst] +=xammount; int instance_yposition[curinst] +=yammount; return; }
void step() {
for(i=0;i<numofinst;i++){ if i=1{ int curinst = i; dostuff(3,3); //Move by 3 pixels the instance "1" down and right. } } return; }
void draw() //Draw shit to the screen {
// return;
}
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #33 Posted on: January 18, 2011, 09:10:56 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
MrGriggs: I won't have access to them until later today.
HaRRiKiRi: I've deleted those files twice already. Someone keeps accidentally resurrecting them. I will delete them a third time, if it pleases the court.
MrGriggs: What is that?
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #41 Posted on: January 19, 2011, 09:32:34 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
I've fixed it, but now GCC misbehaves if it doesn't have the correct path.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
|
Reply #43 Posted on: January 19, 2011, 09:41:43 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Since we don't force users to add anything to their path, GCC needs to be invoked with an understanding of where its precious DLLs are. This is the first MinGW release for which this is the case, because the MinGW team decided that DLLs really aren't so bad. So now even programs created with MinGW have dependencies on DLLs, and working around that is difficult.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
MrGriggs
|
|
Reply #44 Posted on: January 19, 2011, 09:44:54 am |
|
|
Joined: Dec 2010
Posts: 128
|
Meaning that not only users who want to run ENIGMA project executables will need the DLLS packaged with the file, but also OpenAL as it stands already?
Would you not be able to incorperate the DLLS into the project file that's created, I suppose that will increase the ultimating size considerably.
Quick re-think
Do you mean that the DLLs will need to be under ENIGMA's directory? That will be fine in my opinion, the ENIGMA project needs to just remain under 700mb, - 1gb, anymore and it's too much, I personally feel that this is a brilliant project, many large development platforms of today are fairly large!
|
|
« Last Edit: January 19, 2011, 09:52:44 am by MrGriggs »
|
Logged
|
|
|
|
|