Oolite Bulletins

For information and discussion about Oolite.
It is currently Wed Aug 23, 2017 7:35 pm

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Mar 16, 2017 4:07 pm 
Offline
Dangerous
Dangerous
User avatar

Joined: Mon Feb 20, 2017 2:14 pm
Posts: 106
I know that the spinning Cobra appears to be some kind of trademark of the Elite/Oolite project and name. But maybe, for some of you, this is a little bit boring, so I decided to shape things up a little, by adding a list of the default ships to the start routine, and have it pick one, then spin that on the screen.

I changed the justCobra switch in the setupIntroFirstGo: method of src/Core/Universe.m into this bit:
Code:
if (justCobra)
	{
		// Lets get an array of all possible ships and entities, then show one
		// at random.
		NSMutableArray *ships = [[NSMutableArray alloc] init];
		[ships addObject: PLAYER_SHIP_DESC];
		[ships addObject: @"adder"];
		[ships addObject: @"anaconda"];
		[ships addObject: @"asp"];
		[ships addObject: @"boa"];
		[ships addObject: @"boa-mk2"];
		[ships addObject: @"cobra-mk1"];
		[ships addObject: @"constrictor"];
		[ships addObject: @"coriolis-station"];
		[ships addObject: @"dodecahedron-station"];
		[ships addObject: @"ferdelance"];
		[ships addObject: @"gecko"];
		[ships addObject: @"icosahedron-station"];
		[ships addObject: @"krait"];
		[ships addObject: @"mamba"];
		[ships addObject: @"moray"];
		[ships addObject: @"python"];
		[ships addObject: @"rock-hermit"];
		[ships addObject: @"tharglet"];
		[ships addObject: @"thargoid"];
		[ships addObject: @"transporter"];
		[ships addObject: @"viper"];
		[ships addObject: @"viper-interceptor"];
		[ships addObject: @"worm"];

		srand(time(NULL));
		int r = rand() % 22;

		/*- cobra - intro1 -*/
		//ship = [self newShipWithName:PLAYER_SHIP_DESC usePlayerProxy:YES];
		ship = [self newShipWithName:[ships objectAtIndex: r] usePlayerProxy:YES];
	}



Recompiled... aaaaaand:

Image

Image

Image

Enjoy 8)

_________________
DeeperSpace HUD | pleiadian's Oolite GitHub


Top
   
PostPosted: Thu Mar 16, 2017 5:31 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4898
Image


Top
   
PostPosted: Mon Mar 20, 2017 3:01 pm 
Offline
Above Average
Above Average

Joined: Mon Mar 06, 2017 8:26 am
Posts: 17
Niiiice! A bit of variety! :D


Top
   
PostPosted: Thu Mar 30, 2017 2:09 pm 
Offline
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
User avatar

Joined: Tue Apr 01, 2008 12:55 pm
Posts: 817
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
@another_commander
Just like the queen, disguised as a farmer's wife, offering the poisoned apple to Snow White. :lol:

EDIT
Quote:
Niiiice! A bit of variety! :D
@terry
Indeed! I also got tired of the almond cookies! :lol:

_________________
Xubuntu 14.04LTS / Windows 7 Home Premium
Intel Core 2 Quad Q9450 2.66GHz - 6GB DDR2 - Palit GeForce GTX 750 Ti StormX Dual (2048MB DDR5)
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited