Inital Fase Setup

This first part to setting up FASE, is a bit of a bore, but needs to be done.  Program setup.  Gasp for your breath, it’s not horrible.

First, everything built here is built with C. Of course with C, you can intermix assembler, but I try to leave that alone.  The logic should be spelt out.  Besides, I’m rather fond of C.

This is possible with the hard work of the fine programmers who brought us Z88DK.  We are going to use an older version of Z88DK (although I’m sure the newer versions work OK as well).  This version is used by the Mojon Twins for use with their Churrera game engine.

I’ve placed this version of Z88DK on my Github page.

https://github.com/andydansby/z88dk-MK2

This version of Z88DK is being used only because my game Xelda is using it, otherwise I would have tried to link it to the newer version of Z88DK.  I’m fairly certain that this version is more than enough to complete this game.

So, the first step is to download Z88DK from the link above.

Create a new folder on you ROOT drive in the ROOT directory and rename that directory to Z88DK10.

Extract the files to that directory.

 

root

Be patient, there’s alot of files there. 45+ megs of files.

Well with that out of the way, go ahead and google and install SDCC, Small Device C Compilier.

Now we want to add the Z88DK10 directory to your windows path.

In windows 10, go to Control Panel\All Control Panel Items\System

or right click on your Windows start button and select RUN – Control Panel – System

select Advanced System Settings

windows advanced

Go to the Advanced Tab and select Environment Variables

advanced enviroment

 

Find the Path setting (in your USER variables on top)

pathways1

There are a few items we need to edit or add here. You can see that mine is already added, but adding items yourself is rather easy.

First Highlight Path and select Edit

pathways2

 

pathways3

As you should see from my screenshot, SDCC and Z88DK are already entered. On your machine,
SDCC should already be added to the path when you installed it, if not, then you are going to want to install it.

I’ll show you the steps for Z88DK, and you may or may not have to do the same for SDCC.

pathways4

Select the New Button and type in
C:\z88dk10\bin

If you have to do the same for SDCC, then do so.

Select OK

Let’s start with User Variables

pathways5

Now select New

pathways6

 

pathways7

Type in the Variable name
Z80_OZFILES

Type in the Variable value
C:\z88dk10\lib

 

Now let’s repeat for the next one

pathways8

 

Type in the Variable name
ZCCCFG

Type in the Variable value
C:\z88dk10\lib\config

Now let’s do some slight editing on your System Variables

pathways9

Highlight Path and select the Edit Button.

pathways10

We need to add 3 system variables, pressing enter each time you enter in a new one.
The three variables you need to add are:

C:\z88dk10\bin
C:\z88dk10\bin\myRoutines
C:\z88dk10

That should be everything for your system variables, now you should be ready to compile.

I’m sure there are better tutorials on this sort of thing, but that’s my version.  Could this all be done via a batch file, I’m sure it could, but it gives me a headache to think about it and to think about troubleshooting it.  This way is not bad at all and only take a few minutes out of your day.


With that out of the way, now we simply need to create a directory from within the Z88DK10 directory for FASE, this is where we are going to place the game/sprite engine.

Within the directory of FASE, you will need to create another directory to place your game in.

Download the FASE engine from my GitHub Page at

https://github.com/andydansby/fase1.03wyz

And place the contents in your C:\Z88DK10\FASE directory and you are ready to go.

 

Advertisements

Author: andydansby

I'm a hobbyist coder working with the ZX Spectrum. Living in New York state near the Syracuse area. I grew up in Virgina. The first computer my parents bought for me was a Timex Sinclair 2068.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s