Coder Social home page Coder Social logo

jpenuchot / ocuttherope Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 1.56 MB

OCaml implementation of the Cut The Rope game developed by Théophile Walter and Jules Pénuchot

OCaml 94.41% Shell 0.31% Makefile 1.11% Standard ML 0.15% PHP 2.80% HTML 0.50% ApacheConf 0.02% Python 0.71%
ocaml ml cut the rope game mlg

ocuttherope's Introduction

OCutTheRope

OCaml implementation of the Cut The Rope game

Requirements

ocamlbuild and ocamlfind are both required to build this project. You can install them using OPAM.
The level editor needs python to upload levels (for the input box)

Dependencies :

  • OCaml Graphics (standard library)
  • OCaml Str (standard library)
  • Cohttp, install with opam install cohttp lwt js_of_ocaml

Build

Compile with one of these options

  • make debug ; ./game.byte
    to compile and run main bytecode version
  • make ; ./game.native
    to compile and run main native version
  • make test ; ./test.byte
    to compile and run tests
  • make expe ; ./expe.byte
    to compile and run your experiments (warning: "expe.ml" is excluded by gitignore)

Note that you must run sprites/convert.sh to generate the PPM files from PNG sprites (need ImageMagick)

Execution

Run the game with the command ./game.native [level.lvl] [-s theme] You can specify a level file (optional) and a theme after -s. The defaults themes are basic mario and ctr. Respect the order.

To Do list

Things to do (including ideas)

  • Set up projet/configuration
  • Sprites converting/loading (sprites/{THEME}/convert.sh lib/ppm.ml)
  • Main file (game.ml)
  • Physical engine
  • Rendering (lib/render.ml)
  • Management of game mechanics (lib/gamemechanics.ml)
  • Levels management (loading/saving/data structure) (level.ml)
  • Unit tests (test.ml) -- FUCK TESTS, WE'RE USING OCAML NOT JAVA FFS
  • WYSIWYG level editor and online level sharing (editor.ml)
  • Level downloader (download.ml)
  • Remove secret NASA hacking code from our code

(•_•)
( •_•)>⌐■-■
(⌐■_■)

ocuttherope's People

Contributors

jpenuchot avatar theophilewalter avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

theophilewalter

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.