Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

JPenuchot/OCutTheRope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml implementation of the Cut The Rope game

Requirements

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

Dependencies :

  • OCaml Graphics (standard library)
  • OCaml Str (standard library)
  • Cohttp, install withopam 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 runsprites/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 arebasicmario andctr. Respect the order.

To Do list

Things to do (including ideas)

  • Set up projet/configuration
  • Sprites converting/loading (sprites/{THEME}/convert.shlib/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

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp