Giter Site home page Giter Site logo

projectmindcraft's Introduction

ProjectMindCraft

ProjectMindCraft is a programming video game online.

Getting started

Download a release zip file corresponding to your platform and decompress the archive. On windows, run MindCraft.exe; on OSX run MindCraft.app; and on Linux run MindCraft.

Pressing Escape opens the main menu with the following choices:

  1. Enter Camera Mode to explore the world.
  2. Enter Editor Mode to write and upload code that will modify the behavior of the objects in the world.
  3. Enter Console Mode to show the latest error messages from the server.
  4. Enter Stats Mode to display statistics about events in the game.

Quick programming guide

The bot.h file defines how the bot's data is structured. A bot knows its position, its orientation and the objects visible in front of it. At each tick (second), the bot has to take an action such as WALK or TURN. It is up to the player to write a program that will take the decision for the bot.

Programs are single functions that take a bot as an argument and return an error code. For example, the following program will always take the decision to WAIT:

#include <mindcraft/game0/bot.h>
uint64_t idle_bot(struct bot *bot) {
	bot->rw.action = BOT_WAIT;
	return 0;
}

Beginners are invited to try bot_coroutine.h:

#include<mindcraft/game0/bot_coroutine.h>
BEGIN_BOT
while (true) {
	TURN_RIGHT
	WALK
	WALK
}
END_BOT

More examples are provides in the bots directory.

Download release v2.2-alpha

YouTube DevLog

YouTube Playlist:

  1. https://youtu.be/ji8kWSmT3Ys
  2. https://youtu.be/tzbaCrTJsdo
  3. https://youtu.be/uAWcOc-E1UQ

YouTube Let's Play

  1. https://youtu.be/haaWyKG_bU0

Discord Server

Daily updates/chat on discord

https://discord.gg/HzAcR8a

Challenges

Submit your solution to a challenge with a pull request:

  1. spiral_bot.c
  2. meteorite_harvester_bot.c

projectmindcraft's People

Contributors

carverdamien avatar

Stargazers

Florian avatar Arnaud Favier avatar

Watchers

James Cloos avatar  avatar

projectmindcraft's Issues

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.