View previous topic :: View next topic |
Author |
Message |
Paul
Joined: 17 Apr 2004 Posts: 447 Location: Chicago
|
Posted: Sun Feb 27, 2005 2:00 am Post subject: EH 0.5.13 |
|
|
Well, I've added better-looking explosion graphic, dead ships are removed so they don't leave ghosts, and... A CONSOLE with full scriptability, courtesy of F-Script!
EH 0.5.13
F-Script basically makes Objective-C calls from its input, it just tends to leave out all the brackets
So here are the functions I have made available currently:
Every SpaceObject (from which spacehips, including the player, and planets are derived) has these:
- (float) x;
- (void) setX:(float)x;
- (float) y;
- (void) setY:(float)y;
- (float) z;
- (void) setZ:(float)z;
- (float) angularAcceleration;
- (void) setAngularAcceleration:(float)a;
- (float) maxAngularVelocity;
- (void) setMaxAngularVelocity:(float)w;
- (float) maxVelocity;
- (void) setMaxVelocity:(float)v;
- (int) mass;
- (void) setMass:(int)mass;
- (NSString *) name;
- (void) setName:(NSString *)name;
- (NSMutableDictionary *) flags;
The player (variable name in console: "player" ) has these:
- (NSMutableArray *) planets;
- (Solarsystem *) system;
- (void) newMessage:(NSString *)message;
- (NSMutableArray *) ships;
- (NSMutableArray *) weaps;
- (NSMutableArray *) missions;
- (NSMutableDictionary *) plugins;
- (float) time;
- (NSDate *) date;
- (void) setDate:(NSDate *)date;
- (NSMutableDictionary *) govRecord;
- (int) combatRating;
- (void) setCombatRating:(int)rating;
- (int) valForFlag:(NSString *)flag;
and planets have these:
- (NSMutableArray *) goods;
- (NSString *) shipFlags;
- (void) setShipFlags:(NSString *)flags;
- (NSString *) modFlags;
- (void) setModFlags:(NSString *)flags;
- (NSString *) missionFlags;
- (void) setMissionFlags:(NSString *)flags;
- (void) setTextureFile:(NSString *)file;
- (void) setModel:(Object3D *)model;
- (void) setInclination:(float)f;
You can also use any Cocoa/NS class and function calls that already exist, such as ones on NSMutableArray and NSMutableDictionary.
I'm leaving for spring break tomorrow morning, so I'll be back in a week. Have fun! _________________ Differentiation is an integral part of calculus. |
|
Back to top » |
|
|
Paul
Joined: 17 Apr 2004 Posts: 447 Location: Chicago
|
Posted: Sun Feb 27, 2005 2:01 am Post subject: |
|
|
That's just to get you started playing around. I'll explain what the ones you don't know do later. _________________ Differentiation is an integral part of calculus. |
|
Back to top » |
|
|
Game Mogul
Joined: 30 Jan 2005 Posts: 241 Location: Neenerneener Land
|
Posted: Sun Feb 27, 2005 4:18 am Post subject: Holy cow! |
|
|
Holy cow!
How did you... with the... and the.. <jaw drops>. I've mentioned this to others before, but it seems like you say something like this:
Paul wrote: |
Hi guys, I'm going to add some super-cool, mind-bogglingly difficult thing like mouse control. |
Two days later:
Paul wrote: |
Okay, here it is. |
Are you an alien? I mean, you found F-script online, implemented it, built functions, added a console, and fixed bugs IN ONE DAY... How do you do that and balance college? I'm VERY impressed. :thumbsup:
-Mogul _________________ "Never sneak up on a turtle while he's welding" |
|
Back to top » |
|
|
Paul
Joined: 17 Apr 2004 Posts: 447 Location: Chicago
|
Posted: Sun Feb 27, 2005 1:53 pm Post subject: |
|
|
LOL
No, not an alien... just a CODING FIEND!!!! BWAHAHAHA!
Of course, I also didn't get any homework done yesterday that I probably needed too Oh, well... _________________ Differentiation is an integral part of calculus. |
|
Back to top » |
|
|
Game Mogul
Joined: 30 Jan 2005 Posts: 241 Location: Neenerneener Land
|
Posted: Mon Feb 28, 2005 4:54 am Post subject: |
|
|
I don't know, I have it on authority from very reliable sources that say that they found you walking home:
And this is when you took a vacation to Florida and put on a visor:
This is your father:
This is your grandfather:
This one was taken when your father was a model:
This one too:
This is your future daughter:
This is your daughters first picture/light-bright of you:
okay, maybe I should stop now...
-Mogul _________________ "Never sneak up on a turtle while he's welding" |
|
Back to top » |
|
|
aplasticspork
Joined: 18 Apr 2004 Posts: 136 Location: Seattle, Wa
|
Posted: Mon Feb 28, 2005 11:59 pm Post subject: |
|
|
someone has waaaaaaaay too much time on his hands...
--andrzej _________________ This space left intentionally blank. |
|
Back to top » |
|
|
Game Mogul
Joined: 30 Jan 2005 Posts: 241 Location: Neenerneener Land
|
Posted: Tue Mar 01, 2005 4:05 am Post subject: |
|
|
Thank you, thank you very much. Good night Cleveland! :Elvis:
-Mogul _________________ "Never sneak up on a turtle while he's welding" |
|
Back to top » |
|
|
|