In game programming

CrashMan054

Commander
Oct 23, 2014
1,146
329
150
RSI Handle
CrashMan054
I don't know about you, but being able to reprogram your ship to show a GIF of some random meme every time you get a double kill sounds awesome. If they do add this, I hope it's an existing language(so those of us who can already program just fine in 5 languages don't have to learn a 6th and probably explode).

What would you do if you could reprogram your ship?
 

ghost53574

Space Marshal
Oct 8, 2014
252
107
2,360
RSI Handle
https://robertsspaceindustries.com/citizens/xgh0st
#include<stdio.h>
#include<string.h>
#include<time.h>
#include<stdlib.h>
#include<SC.h> //whatever you use to call the main header/s

#define MainOrg = "TEST SQUADON BEST SQUADRON!"

void Loop(int i);
int _Loop(int i);
void Spam(void);

int main(int argc, char *argv)
{ srand(time(NULL)); int i, r = rand(); string temp; printf("Welcome to your TEST ship pilot!\n\nPlease drink a MountainDew for verification."); scanf("%s", &temp); if (temp != "drink") { printf("Verification failed!\n\nGoodbye..."); Ship.GetCurrentShip.Eject(); } else { printf("What is your favorite color?"); scanf("%s", &temp); if (strlen(temp) > 0) { Ship.GetCurrentShip.Eject() } else { printf("Welcome aboard pilot, initializing alcohol analyzer..."); Loop(rand); }} return 0;}

void Loop(int i)
{ int k; for (k = 0; k < i; i++) { _Loop(k); Spam(); }}

int _Loop(int i)
{ Loop(++i); }

void Spam(void)
{ printf("%s", MainOrg); }

----------------------------------
I mainly program in C# right now and forgot the len() was python and strlen() is for non-array's (i.e. only strings). :<
 
Last edited:

CrashMan054

Commander
Oct 23, 2014
1,146
329
150
RSI Handle
CrashMan054
I'll bet they'll make it into something dumb like java just to spite us :P
"Hey look, it's TEST. Give them some java, those guys are crazy"
 
Forgot your password?