Star Wars: Base Scout                       


OVERVIEW

After evacuating Crait, the rebel alliance needs a new base! Search through the million or so star systems to find the most secure underground base. The deeper you can make it underground the better. Resources are scarce for the rebels so try to save as much as fuel as possible. Also hurry as the rebels need a new base. Environment is procedurally generated so a cave will appear the same every time you visit it. Searching for the right planetary system might be essential to the rebel alliance. Each planet will have a different gravity. When running the game, enter the numerical designation for the unknown planetary system to visit.  Use the joystick in port 2.  Button will thrust up. You can also thrust left or right.  Make it to the right side of the cave to explore deeper. 


RUNNING THE GAME

In the vice emulator, select FILE->Autostart disk/tape image
Select the file BaseScout.d64


GAME INSTRUCTIONS

At the prompt, enter a number from 1 - 1000000000 .  Note entering a value of 0 will give you a totally randomly generated world.  The other values will take you to a repeatable procedurally generated world.  Here are some suggested worlds:

World:311   Name:Dagobah   Gravity:6.4
World:113   Name:Tatooine   Gravity:5
World:659   Name:Hoth   Gravity:8.5
World:1221   Name:Mars   Gravity:3.7
World:213   Name:Titan   Gravity:1.5
World:3500   Name:The Moon   Gravity:0.97
World:3346   Name:Psychlo   Gravity:14.75
World:4259   Name:Endor  Gravity:3.3
	

In joystick port 2, use the button to thrust up.  Left and right will also take you in those directions.  This will use up fuel.  The goal is to make it to the right side of the screen so you can continue exploring more cave levels on the planet.  Avoid the boulders as well as as the top, bottom, and left side of the screen.

After game ends, the program will exit to basic.  Highest level achieved along with time and fuel spent will still be displayed.

On vice hits the keys   Control+Home to clear the screen.  (Makes next step easier)

Type    RUN    to play again.


DEVELOPER’S NOTES

The game was written in 10 lines of basic for the Commodore 64.  The following code can be copied here and pasted into a Vice emulator by right clicking on the vice window.  (Make sure to hit return after pasting)


Listing:

1inputw:dIl(3),h(3),v(3):pO2040,255:y=99:fOi=0to2:rEl(i):rEh(i):rEv(i):nE
2s=rN(-w):pO53281,rN(1)*15:c=rN(1)*15:fOz=16321to16382:pOz,0:nE:g=rN(1)*15
3pO646,c:?chr$(147):pO53279,0:x=20:pO16323,15:pO53269,1:pO53248,x:pO53249,y
4nu=int(rN(1)*15)+50+(le*10):fOi=0tonu:ro=int(rN(1)*24)+1:co=int(rN(1)*26)+3
5pO1024+co+ro*40,209:nE:?chr$(19):pO646,0:?"level"le"time"t"fuel"f"sys"w
6pO16320,6:fOi=0to2:if((pE(56320)aNl(i))=0)tHo=o+h(i):p=p+v(i):f=f+1:pO54296,15
7nE:data 4,-8,0,16,0,-16,8,8,0
8pO53248,x:pO53249,y:p=p+g:pO53287,0:if pE(53279)<>0theneN
9ifx<250thenx=x+(o/64):y=y+(p/64):t=t+1:pO54296,0:gO6
10le=le+1:fOi=0to150:pO54296,j:pO54296,0:j=(j+1)aN15:nE:gO3


Variable List:

c color of boulders
s seed
le level
nu number of boulders
ro boulder row
co boulder column
t time
f fuel
g gravity
w world
i,j = general loop counter
x = sprite x position
y = sprite y position
t = time elapsed
l = keyboard direction lookup table
h = delta horizontal movement from keypress
v = delta vertical movement from keypress
o = hor velocity
p = ver velocity
