A Copy Of Minecraft... But not in c, c++, java, but in ruby!
IDE by Aptana Studio.
The files won't execute properly if there is no ruby interpreter or no gitbash installed.
When you try to execute, please check out the 'gemlist.txt' and see if there is anything missing from your computer.
The core gem for this program is glu,opengl.
Very important library for this game, called 'rbSFML' is used for this game.(It's not a gem library!)
It's recommended to build and install the library by your own.
I've posted a pre-compiled library file at past commits, but i deleted since it's not recommened.
Recommended setup is,
SFML
rbSFML(SFML 2.3.2)
Ruby
GIT(2.5.0.1+)
Rake(10.4.2+)
glu(8.3.0)
opengl(0.10.0)
Incase you want to build the library by your own, here is some instructions.
If you already have a build of sfml, you could just skip to number 3.
Warning! based on windows only!
Currently tested on mingw32-MSYS and mingw 64bit versions.
-
Install Cmake. Cmake download site : https://cmake.org/download/ 'rbSFML' is kind of a wrapper library, that doesn't has the basic function.
So what you would need is the sfml library, and it requires cmake to build one.
(I used gui version of cmake for more accuracy.) -
Build Sfml SFML source download : https://www.sfml-dev.org/download.php\ Since 'rbSFML' is updated until 2.3.2 of sfml, it's recommended to use 2.3.2.
If you don't know how to use cmake to build things, you should find it out by yourself. -
Install Git Recommended to use option cmd prompt command + git prompt command.
Git Download Link is above description. -
Install Ruby After installing it, open a command shell, and type these :
gem install rake
gem install glu
gem install opengl
-
Fetch rbSFML, build, install After downloading rbSFML, you could follow the instuctions of the main page(https://github.com/Groogy/rbSFML).
-
Run! If you did setup correctly, the program will start properly.
Currently, chunk loadings and loading distance methods are working.
And ray-tracing for block placement and removeal are implemented.
Added pause menu, and a initial menu.
And frustrum culling for preformance.
Also we need a map generator.
Although i've made this through, I'm still using the deprecated opengl methods.
(Such as glRotatef or glTranslatef.)
If you want a .exe file, necessary commands can be found on "OcraCmd.txt".
Use the command on Git Bash at /src.
Make sure you have the latest ocra is installed in your bash.
No other O/S than windows are supported yet.
gem install ocra
This program is available as open source under the terms of BSD-3-Clause License.
Copyright(c) 2017 Kim Hi Su. See LICENSE for further details.