GithubHelp home page GithubHelp logo

cppcraft's Introduction

cppcraft

Installation

Pull repo, compile for your OS using makefile

Win64:

Install mingw-builds (dual target) to a folder that makes sense, ie. c:\MingW64. Include c:\mingw64 in PATH enviroment variable (google it). Open a console in the cppcraft repo folder, execute: mingw32-make -j8

Should compile right out of the box for windows (And the .exe is static)

Linux64:

For linux you need to install xorg-dev, libbass for linux x64 and you need to compile GLFW3 BASS: www.un4seen.com GLFW: http://glfw.org

(I don't have alot of experience with linux!)

The workspaces are for CodeLite IDE, however feel free to use any IDE you want to

Generating a world

Unfortunately the generator is currently for windows only. Star the generator, execute '.all' just to test. '.all' is a batch file, as seen in the batch folder. The generator will output to a specific folder that may not exist already. Create the world folder (I believe the structure Worlds/test in the Debug/ folder, same as game client) If the folder doesn't exist, the generator will still work, the game will be started, and nothing will show up except a blue sky. If the world was successfully created it should load a small area.

Once the smaller area is created, you might want to create a bigger world: .huge

This operation typically takes 20-30 minutes.

Playing the game

config.ini contains all the configuration variables. You typically want to adjust screen size, fullscreen, number of worker threads used and lighting ray length. Number of lighting rays & length affect performance greatly on the CPU side. Screen size affects GPU greatly. When not debugging or making rapid changes use windowed mode, otherwise fullscreen offers better experience.

cppcraft's People

Contributors

coherentthought avatar drremorse avatar fwsgonzo 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.