chris24walsh / SpaceHorse

Open map, 2D space exploration game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##RELEASE VERSION NOW AVAILABLE

https://www.dropbox.com/s/w4r70j10c8w71sx/SpaceHorse.zip?dl=0

Download and unzip the project to a suitable location. Navigate into 'SpaceHorse/game/Release/' and run SpaceHorse.exe.

###Introduction

This project was started with the goal of creating an open map, multiplayer, 2D space explorer. The first release candidate will aim to allow exploration of a universe, which is importable/configurable from a text file. Each planet/space station etc should be dockable with resources to mine/buy in order to level up the ship. This project is currently using C++ and the Allegro games library, and SQLite.

###Setup

####Allegro library

1. Download allegro

You can download Allegro 5.0 from this repo. Download the latest version MSVC 11.

2. Extract to disk

When it finishes downloading, extract the contents somewhere, e.g. C:\allegro, so that the contents of this folder is C:\allegro\bin, C:\allegro\include, and C:\allegro\lib.

3. Ensure solution properties are configured:

Open the Visual Studio solution file, right click on the project in Solution explorer, then click Properties:

At the top, where it says something like Configuration: Active(Debug), select All Configurations.

On the left menu select C/C++ -> General. On this configuration page, select Additional Include Directories and edit it to contain C:\allegro\include\ in its text field.

On the left menu select Linker -> General. On this configuration page, select Additional Library Directories and edit it to contain C:\allegro\lib\ in its text field.

Click on Apply at the bottom, but don´t close the window yet. Back at the top, select the Debug configuration.

On the left menu select Linker -> Input. On this configuration page, select Additional Dependencies and edit it to contain allegro-5.0.10-monolith-mt-debug.lib in its text field.

(Optional)On the left menu select Linker -> System. On this configuration page, select SubSystem and change it to Console from the drop-down box. This will give you a working terminal window in Debug mode to which you can write ...err... debug stuff ;)

Click on Apply at the bottom, but don´t close the window yet.

Back at the top, select the Release configuration.

On the left menu select Linker -> Input. On this configuration page, select Additional Dependencies and edit it to contain allegro-5.0.10-monolith-static-mt.lib in its text field.

(Optional)On the left menu select Linker -> System. On this configuration page, select SubSystem and change it to Windows from the drop-down box. This will prevent the Terminal window to appear on Release versions of your program.

Click on Apply then OK, this will close the Property Pages of the project and should prepare it for Allegro.

4. Any errors?

If you are getting errors when you rebuild the project, you may need to delete the allegroTest.sdf file located in ./allegroTest/ and reload the project (right click on the project in Solution Explorer). Contact me if you have trouble setting this up.

####Sqlite3 library

1. Download Sqlite library

Download this lib file, which has been prepared for VS Community 2015.

2. Place in project

Create a folder C:\sqlite and place the lib file there. This directory is linked by default to the project.

Other resources

[Here] (https://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5) is a link to a tutorial to set up VS with the Allegro 5 windows binary.

Here is a link to a tutorial to set up VS with sqlite3.

About

Open map, 2D space exploration game.


Languages

Language:C 97.9%Language:C++ 2.1%Language:Objective-C 0.0%