GithubHelp home page GithubHelp logo

minitek's Introduction

Minitek

Minicraft but better 🙃

Minitek (or MyRPG officially) is a first grade end-year project €pitech.

About

The goal was to reproduce exactly Minicraft in C.

We had 4 weeks but with a very poor organization we only had a bit more than one week.

The subject is 6 pages long so here's a summary of the requirements and constraints :

  • Collision System
  • Particle Engine (i cheated on this one, particles are entities so i did't get the points)
  • Menus
  • Basic Combat System
  • Inventory and status
  • Saving system
  • "Open" world

But the funniest part nothenless :

  • No LibC (malloc, free, (f)open, (f)read, (f)close, fwrite, memset, (s)rand, opendir, readdir, closedir allowed)
  • CSFML Lib for graphics
  • LibMath allowed
  • No other external lib is allowed if you want to do something, code it yourself.

In €pitech projects we need to follow something called "𝓛𝓮 𝓒𝓸𝓭𝓲𝓷𝓰 𝓢𝓽𝔂𝓵𝓮" basically some rules we need to follow but we're heavily penalized if we don't follow them, those rules are here to help us produce clean code but tends to produce this kind of attrocities in big projetcs.

You'll see a lot of printf in the code as they are THE way to debug programs i forgot to remove them, i actually got penalized for those. You'll notice no function exceed 20 lines too.

Enough talk here's some screenshots !

Screenshots

Main Menu

In game

Installation instructions

You're currently reading the README of the Linux version, for the Windows see here.

Just go to the releases section and download the linux build. (i'm too lazy to start my arch, coming soon)

There's a generator demo program now too

make fclean && make gen_demo

To use it : ./gen_demo

Keys :

  • P / M : Increase / Decrease Map resolution.
  • A / Z / E / R : Set Map Level, Surface / Underground (1/2/3)
  • Esc : Quit
  • Any other key : Regenerate a map

Build It !

If you want to build it yourself you'll need gcc, make and CSFML to compile it.

To install the CSFML library please refer to your distribution package repositories.

On Arch you can get it on the AUR with csfml-bin.

Clone the repo.

Open the folder in your terminal.

Type make and Enter.

? ? ? ? ? ? ? ?

And done !

minitek's People

Contributors

hollowshiroyuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lifecanvs

minitek's Issues

license?

Hi. Have you decided on a license for your project?

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.