Giter VIP home page Giter VIP logo

mobilecraft's Introduction

Mobliecraft

mycraft

Mobliecraft is a learning-OpenGL iOS project completed in ZJU computer graphics course.

Transplant from my MacOS Version Mycraft.

It's a Minecraft clone with lighting effects based on GLKit on iOS use Objective-C & C++ and build with XCode.

1

1

Features

Render

  • Original block textures from Minecraft
  • Corner shadow to simulate SSAO effect
  • Point light with smooth diffusion from Torch / Glowstone
  • Time pass effect with Gradient sky & Starry sky
  • Animation when break a block / Highlight when choose a block
  • Transparent / translucent block like water / glass
  • Simple gravity engine for on-the-ground and below-water
  • Jitter perspective to simulate running effect
  • Underwater visual effects
  • Fog effect for blocks far away

Data

  • Infinite random map generation use perlin noise
  • Trees / Flowers / Grass / Cloud / Lake random generation
  • Visible face culling and frustum culling for faster rendering
  • Closed space testing and neighboring visible chunks culling
  • Corner shadow / Point light effect generate and update
  • Adjustable game settings in src/game_settings.h
  • Map storage not done yet :(

Build

Run

Just use the recent XCode and click run to get the game started

Game Controls

  • Move fingers on screen to change perspective
  • Virtual joystick to move
  • Tap the screen to place block and press to destroy
  • Switch blocks by โ† & โ†’ arrows
  • Change all game settings in src/game_settings.h

Architecture Design

mycraft_design

Reference

Tribute to best Minecraft.

Modern OpenGL example codes from learnopengl and learnopengl-cn (Perfect chinese version :)

Skybox texture & Steve model sources from Craft.

Screenshots

Original Textures

3

Sunset

4

Point Light

6

In-water Point Light

7

Underwater Visual Effects

9

Fog

10

Breaking Animation

12

mobilecraft's People

Contributors

clapeysron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mobilecraft'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.