• Stars
    star
    598
  • Rank 74,853 (Top 2 %)
  • Language
    C++
  • License
    MIT License
  • Created about 8 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A minecraft clone written using C++, SFML, OpenGL and GLEW.

HopsonCraft

Note: Game is undergoing redesign at the moment.

To see source as it was in ep 4 "Creating Minecraft", view here:

https://github.com/Hopson97/HopsonCraft/tree/e803ca5fbf51df134cfa7e87c14275c6c73fce8e

Note

When I made this, I was highly inexperienced at programming (Less than 2 years), and the code is mostly pretty messy and game crashes a lot.

I have kept it on my GitHub for historical reasons, seeing as I have videos about this on my YouTube channel.

Versions (As seen in the YouTube videos)

This game has gone through major rewrites and refactors overtime.

To see the source code as it was in episodes 1, 2 and 3 of "Creating Minecraft in C++/ OpenGL" videos, look at an older commit here:

https://github.com/Hopson97/HopsonCraft/tree/90a5d596d07dfe71b5dbf47ec76c0b0802ec9dfa

Dependencies

The project requires these libraries: SFML (minimum 2.4), GLEW 2.0+ (OpenGL 3.3+), and OpenGL Maths Library (GLM).

Compile using compiler flags:

Windows -> -std=c++14 -O3 -s -lglew32s -lglu32 -lopengl32 -lsfml-graphics -lsfml-audio -lsfml-system -lsfml-window

Linux -> -std=c++14 -O3 -s -lGLEW -lGLU -lGL -lsfml-graphics -lsfml-audio -lsfml-system -lsfml-window

All the libaries for Linux (At least, on Ubuntu) can be installed with

sudo apt-get install libsfml-dev

sudo apt-get install libglew-dev

sudo apt-get install libglm-dev

Contributing

An easy way to contribute is to look for the ///@TODO parts in the code. please actually test before doing a pull request.

You can view the code style in contributing.md

You can view useful implementation details in implementation.md

Also, checkout the TRELLO! https://trello.com/b/P8ZbobQH/hopsoncraft

Description

Simple Minecraft clone written using C++.

Screenshots

Trees

Mountain

Cliff

Credits

Design

Matthew Hopson, https://github.com/Hopson97/

Programming

Matthew Hopson, https://github.com/Hopson97/

Art

Matthew Hopson, https://github.com/Hopson97/

Special Thanks

Anton Golov, https://github.com/jesyspa

Zoltan Fazekas, https://github.com/zfazek

More Repositories

1

MineCraft-One-Week-Challenge

I challenged myself to see if I could create a voxel game (Minecraft-like) in just one week using C++ and OpenGL, and here is the result
C++
2,634
star
2

open-builder

Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server
C++
700
star
3

Empire

A cellular automaton I made up myself, written in C++/ SFML
C++
147
star
4

SFML-Game-Framework

Beginner framework for SFML games and other applications.
C++
145
star
5

Asciimon

Pokemon-inspired game created using Rust for terminals which support ANSI escape commands.
Rust
124
star
6

Hopson-Arcade

Bunch of small arcade games made in C++ and SFML
C++
93
star
7

CellularAutomaton

A collection of varios Cellular automaton programs written in C++using SFML for graphics
C++
82
star
8

Sort-Algorithm-Visualiser

A sort algorithm visualisation GUI, created using Java and the Swing framework.
Java
66
star
9

Minecraft-Tutorial

The source code for my tutorial series
C++
56
star
10

Stonks

Simulate stonks in python
Python
34
star
11

Pixelator

Input an image, out comes pixel art
CMake
29
star
12

multi-pong

Multiplayer pong using UDP sockets and a client/server model.
C++
25
star
13

rusty-gl

Wrapper over gl-rs, to make code look more like Rust and less like C while still having classical OpenGL control as you would in C
Rust
24
star
14

Kingdom

Probably a tempoary name. A simple game where the world is top down and made out of tiles.
C++
22
star
15

Basic-SFML-Game-Engine

A very simple SFML game engine/ framework.
C++
20
star
16

HopCity

Isometric city building game
C++
18
star
17

Raycast

Raycasting experiments using sfml
C++
17
star
18

cpp-project-generator

For personal use, easily creates new C++ project files with Cmake etc
C
16
star
19

Android-Apple-Drop

A game created for UoP programming competition, using python and Zelle's graphics.py module
Python
14
star
20

Yavge

Yet Another Voxel Graphics Engine - just playing around (tm)
C++
12
star
21

Hopson-Land

Practice RPG created for learning C++. This was one of my first projects.
C++
11
star
22

Pyoro

C++ w/ SFML (unfinished) attempt at Pyoro
C++
11
star
23

Rocha

Embeddable "scripting assembly" language and VM for C++, made for fun.
C++
10
star
24

Data_Structures_And_Algorithms

Bunch of data structures (eg Linked List, Array List) and algorithms (eg Sorting, Searching) implemented in different languages
Java
10
star
25

Pathfinding-Visualiser

Pathfinding Algorithm Visualiser
C++
9
star
26

Yare

Yet Another Render Engine. Just messing around with OpenGL stuff
C++
9
star
27

socket-playground

Playing around with TCP and UDP sockets, learning how they work etc
C++
8
star
28

ThinMatrix-OpenGL-Engine

Following the ThinMatrix "LWJGL" tutorials, but using C++ and OpenGL rather than Java
C++
8
star
29

Multiplayer-Pong

Testing SFML networking by creating a simple pong game.
C++
7
star
30

IAS-Computer

Implementation of an 8-bit IAS Computer with custom opcodes
C++
7
star
31

City-Game

A simple game based of a few Scratch projects such as "Scratch City" and "Dot Village"
C++
7
star
32

Hero

Based on the game "Hero" by "Faceos" on Scratch, it is a simple RPG game.
C++
7
star
33

DotVillage

Based on the game on Scratch, dot village is a city building game.
C++
7
star
34

design-patterns-explained

Source code for design pattern explained videos
C++
6
star
35

SDL_Nuklear_Example

Example of using modern OpenGL with SDL2 with a Nuklear GUI in C
C
5
star
36

ASCIImonClassic

Pokemon in ASCII
C++
5
star
37

Slonda-Man

A clone of the game "Slender" made in C++14, Modern OpenGL, GLM, and SFML
C
5
star
38

Balic

Bad And Lossy Image Compressor: The perfect compressor (which doesn't actually compress, just lowers image quality giving the impression of compression) for all your lossy needs, created using C++ and SFML
CMake
4
star
39

Conglomerate

A program to combine a C++ or C project into a single "conglomerate" file. Created for the sake of practicing using the C++17 file system module
C++
4
star
40

Bisqwit-Perspective-Test

This is an attempt to translate the "QBASIC" portion of Bsiqwit's "Creating a Doom-style 3D engine in C" but in C++
C++
4
star
41

AdventOfCode_2021

Solutions to advent of code 2021
Python
4
star
42

LuaBird

Flappy Bird experiment using raw Lua C API with SFML for graphics
C++
4
star
43

3D-Alien-Cubes

One of my first OpenGL Projects, basically a simple walking scene.
C++
4
star
44

sabre

Client/Server UDP Library built ontop of SFML (Experimental). Designed to just be copy-pasted into an existing SFML project.
C++
4
star
45

Minesweeper

Console/ ASCII classic Minesweeper game.
C++
3
star
46

Pong3D

Pong with some extra OpenGLy depth
C++
3
star
47

Ancient-Projects

A bunch of old projects from when I was learning how to program
C++
3
star
48

HOP-Virtual-Machine

A simple virtual machine/ interpretted langauge/ assembler
C++
3
star
49

hoperload

2.5D clone of the classic Miniclip game "Motherload"
C++
3
star
50

Haskell-Programming-From-First-Principles-Exercises-

My answers to the exercises in the Haskell Book http://haskellbook.com/
Haskell
3
star
51

cursed_code

Dare you enter the realm of cursed plus plus. Competitor to https://github.com/LegatAbyssWalker/amazingCode
C++
3
star
52

SFML-Engine-2

Improved version of my simple SFML framework made from scratch
C++
2
star
53

OpenGL-Spooky-Scene

OpenGL Spooky scene using OpenGL 4.5 (Direct State Access)
C++
2
star
54

Flyweight-Test

Just seeing what flyweight is all about
C++
2
star
55

enet-example

Minimal enet example thing
C++
2
star
56

Gorbitsa

Implementation of https://esolangs.org/wiki/GORBITSA to learn go
Go
2
star
57

SFMLStarter

Starter framework for SFML based applications
C++
2
star
58

MatLib

A little (fake) C++ library that is basically the the C++ standard library. I am just making this for fun and for learning.
C++
2
star
59

Advent-Of-Code-2022

AOC 2022
Python
2
star
60

Faster-Than-Wind

Experimental Faster Than Light clone made in C++ using SFML.
C++
2
star
61

hopson97.github.io

A little website which has some of my personal projects summed up, as well as more information about myself, and other cool stuff
HTML
2
star
62

PyRPN

Mini Reverse Polish Notation (Postfix notation) parser and evaluator
Python
2
star
63

opengl-text

Tests to get an text rendering using modern OpenGL and using sf::Font as the font handler
C++
2
star
64

PongSFML

Pong attempt using SFML netwok module
C++
1
star
65

Mall-Map-Dashboard

Configurable dashboard for a mall map
JavaScript
1
star
66

JavaTests

Just some projects for practicing Java and it's GUI APIs
Java
1
star
67

haskell-excerises

Bunch of haskell excerises from my uni
Haskell
1
star
68

Project-Euler-

Project Euler fun
Python
1
star
69

sfml-conan-example

Example of using SFML with conan.io
CMake
1
star
70

SFML-Imgui-OpenGL-Example

Example of using SFML, Imgui, and OpenGL. Supplementary to https://github.com/Hopson97/SDL_Nuklear_Example
C++
1
star
71

Attack

Some kind of old heli attack clone
C++
1
star
72

Advent-of-Code-2023

Advent of Code 2023
Python
1
star
73

CppTests

Just some projects for me to play around and test some things out in C++ and libraries/APIs eg SFMl, OpenGL etc
C++
1
star
74

Raydes

A simple game insprited by "raids" in Runescape (Dungeoneering).
C++
1
star
75

Kattis

Trying out https://open.kattis.com/problems to improve my problem solving skills
Python
1
star
76

Stick-RPG

A stick RPG clone made using SFML and C++
C++
1
star
77

Simple-OpenGL-Rectangle-

A small program that used GLEW/ OpenGL, SFML and GLM to render and transform a rectangle, fully commented with steps
C++
1
star
78

Compute-Shader-Test

Compute shader OpenGL experiments
C++
1
star