Giter Site home page Giter Site logo

brianbruggeman / libtcod Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18.13 MB

Mirror of `libtcod` bitbucket repo

Home Page: https://bitbucket.org/libtcod/libtcod

License: Other

Batchfile 1.61% Makefile 0.30% M4 1.27% Python 9.70% C 57.79% C++ 28.62% Lua 0.69%
roguelike libtcod mirror

libtcod's Introduction

[TOC]

Introduction

libtcod is a free, fast, portable and uncomplicated API for roguelike developers providing an advanced true color console, input, and lots of other utilities frequently used in roguelikes.

1.6.3 (pre-release): Build status

What can it do?

If you want to get a quick overview of the features that libtcod provides, check out the Features page.

If you want to get a quick overview of games which have used libtcod, check out the Projects page.

libtcod is also well known for it's easy to follow tutorial, which many people have used to get started developing a roguelike. Follow the relevant links the tutorial gives, and it will point you to the right locations.

How do I get set up?

Using one of our downloads

Currently, only Windows binaries are available from the Bitbucket download section for this project. If you are programming in C or C++, various sample projects are included within the source code which can be used as examples of various features. For those who wish to program in Python which is the only scripting language support that has been contributed so far, the basics are described in part 1 of the tutorial.

Two builds are currently provided for each release:

  • 32 bit (Win32, SDL2 only) binaries also including source code.
  • 64 bit (x64, SDL2 only) binaries also including source code.

Warning: If you download these builds, run samples.exe as your very first action. If you are unable to and get an error about vcruntime140.dll being missing, you need to install the two Visual Studio 2015 runtimes. Make sure you install the 32-bit runtime. And make sure you also install the 64-bit runtime. Then run samples.exe again, and it should now work. Whether you plan to develop in C, C++, Python or some other language, this is required.

Compiling from source

These are the recommended places to obtain the source code from:

  • The latest source code release snapshot on the downloads page.
  • Clone the repository with Mercurial and checkout the tag for the latest version in the default branch.
  • Clone the repository and checkout the bleeding edge from the tip in the default branch.

All compilation methods, whether Windows or autotools, are located within the build/ subdirectory.

Windows users can either run the top-level 'build.bat' script, or locate and open the provided solution directly using Visual Studio. The solution is currently for Visual Studio 2015, and the free community edition is highly recommended.

For all other platforms, you need to make use of the autotools support. This is a standard approach used for decades, and if you are not familiar with it, you can Bing (or Google) the topic and learn more. Explicit instructions for Linux, which should be relevant, are provided here.

SDL2

SDL2 is the latest version of SDL. Release 2.0.5 (changeset 007dfe83abf8) of SDL2, is currently used for the official Windows builds. If you choose to use a different version of SDL2, please be sure to mention it in any issues you create. And if you are using the bleeding edge (the latest unreleased/untagged changes), please rule out that this is the cause of any problems you encounter, before creating issues.

Getting Started

libtcod comes with a sample application, implementations of which are provided in each of C (samples_c.c), C++ (samples_cpp.cpp) and Python (samples_py.py). This provides a decent overview of the basic features, in an interactive fashion. Each should be identical for the most part, so if you are using Windows, downloading the precompiled binaries and running the included samples.exe which is compiled from the C source code, should be representative of the other versions.

The popular Python tutorial is a good way to both build up a simple roguelike, and get familiar with the basics of libtcod.

libtcod's People

Contributors

cottog avatar fabianwolff avatar hexdecimal avatar jice-nospam avatar mingos777 avatar quejebo avatar rmtew avatar tomassedovic avatar zsparal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.