A clone of Dune 2 - The Building of a Dynasty (by Westwood Studios)
Java C++ C Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmake_modules
doc CRC charts Jul 22, 2012
graphics remove executable attribute Sep 8, 2013
maps
resources
.editorconfig
.gitignore
ActionManager.cpp fixed Oct 10, 2013
ActionManager.hpp
CMakeLists.txt
Cell.cpp small fps boost Oct 11, 2013
Cell.hpp
Console.cpp
Console.hpp
DejaVuSans.ttf
FpsCounter.hpp
Game.cpp rebased Oct 25, 2013
Game.hpp console unit adding reenabled Oct 25, 2013
Houses.cpp
Houses.hpp
INIReader.cpp
INIReader.hpp
LICENSE
Map.cpp
Map.hpp
MapLoader.cpp Sets camera constraints to hide invisible border of map. Fixes #40 Oct 22, 2013
MapLoader.hpp
Messages.cpp
Messages.hpp unit creation now done by message Oct 25, 2013
Mouse.cpp
Mouse.hpp
Player.cpp
Player.hpp
README.md
SelectionBox.cpp renaming Oct 5, 2013
SelectionBox.hpp
Unit.cpp
Unit.hpp
UnitRepository.cpp
UnitRepository.hpp
codestyle_d2tm_qt.xml
d2tm.cpp
gui.theme
icon1.ico
ini.cpp
ini.h remove 'executable' flag, makes no sense Sep 8, 2013
install_dependencies_osx.sh create a script that installs all dependencies for osx, so i dont need Oct 11, 2013

README.md

Dune II - The Maker

A.k.a. D2TM. Is a Dune 2 clone. At this moment the most known/stable version is DEMO4 and DEMO 3.5 which are very old and using Allegro & other libs. I am proud of that project, but it is time to rewrite it and build a game mostly focussing on skirmish and networking gaming.

This is an attempt to rewrite the game from scratch using SFML 2.1. If you are looking for the source code of the 'current' D2TM (with demo binaries), then you can find it here

We try to keep it multi-platform. We test it often on Mac OSX and Ubuntu. Sometimes we test it on Windows (MinGW32 and MSYS).

If you want to know more about the dependencies used, you can read the documentation/tutorials here.

Where is the binary?

There is no binary available, instead you need to compile it yourself. Once we meet our milestones, we will release binaries for all targetted operating systems.

Contributing

  • Check the TODO list.
  • Create (or checkout) a feature branch.
  • Code.
  • Finished? Submit it as a pull request.

Compiling

This projct uses cmake to generate a platform specific makefile. Before running cmake, make sure you have installed the required dependencies

After that you do:

cmake .
make

which should deliver a ./d2tm binary file you should be able to execute.

Installing dependencies

This example is based on Mac OS X, the procedure is probably (somewhat) the same on Linux. For Windows, we have not yet tested this. We also assume you use homebrew.

If you trust us you can also execute the install_dependencies_osx.sh file which does the stuff below for you

First make sure you have installed cmake.

You will need the following dependencies:

  1. SFML 2.1 (download) or GIT repo
  2. SFGUI Git repo, for Mac OS X else go to here
  3. Thor
  4. Boost

Install SFML

  • download SFML binaries for Mac OS X(compatible with clang++) from here
  • unpack the package in /tmp, a 'SFML-2.1-osx-clang-universal' is being extracted.
  • cd to 'SFML-2.1-osx-clang-universal' directory
  • run sudo ./install.sh
  • done (you may remove SFML-2.1-osx-clang-universal)

OR:

  • git clone sfml
  • cmake .
  • make
  • make install

Install SFGUI

Install Thor

  • cd /tmp
  • git clone Thor
  • cd to Thor
  • cmake .
  • make
  • make install
  • done (you may remove the Thor directory)

Now you are ready to compile d2tm.

Install Boost

  • brew install boost

Controls

Thus far the following controls work:

Press q to quit anytime. Move camera around with arrow keys or with mouse hitting borders of screen.

Right mouse click deselects all unit. Left mouse click selects a unit. Hold left mouse button and drag a rectangle over units to select them.

What is left to do?

We use a public Trello board to keep a list of things todo. You can also see here what we're working on right now and what has been finished. If you feel like contributing, please let us know so we can move the story to 'doing' , and refer to your feature branch in the meantime.

Documentation

LICENSE

The MIT License (MIT)

Copyright (c) 2013 S. Hendriks

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.