Post Reply 
JPL Prime: An ASCII Space Game.
02-27-2019, 03:44 AM
Post: #12
RE: JPL Prime: An ASCII Space Game.
Quote:How do I go about making my program an app?

APPS key -- < Pick any App > -- [Save]
- Enter a name for your app
- Make sure to choose "None" as your base app

Now open Connectivity Kit, expand the Application Library and locate your app. Double-click will open the contents of your app. Under the program tab is your code, with a number of handy key assignment helpers already pre-inserted (just need to un-comment).

Now to get your program converted over, here is a quite simple example that you'll probably get the hang of pretty quick:
Code:
#pragma mode( separator(.,;) integer(h32) )

// list names of sub-routines at the top
RunMyApp();
MySubRoutine();

// declare global variables
MyGlobalVar:=1,OtherVar;

// what happens when the APP Start button is pressed
START()
BEGIN
  MySubRoutine(99);
END;

// define the Symb key
Symb()
BEGIN
  RunMyApp();
END;

// your program code
RunMyApp()
BEGIN
  OtherVar:=MyGlobalVar+1;
  MySubRoutine(OtherVar);
END;

MySubRoutine(mynum)
BEGIN
  RECT_P();
  TEXTOUT_P("Number is "+STRING(mynum),G0,5,5);
  TEXTOUT_P("Any key to continue ...",G0,5,25);
  WAIT(-1);
END;
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: JPL Prime: An ASCII Space Game. - Jacob Wall - 02-27-2019 03:44 AM



User(s) browsing this thread: 1 Guest(s)