2022-01-11 09:52:42 索煒達(dá)電子 587
文件編號:L24
文件大?。?/strong>7.9M
代碼行數(shù):256行(主程序)
開發(fā)環(huán)境:VS2019、OpenGL
猿創(chuàng)承諾:該源碼均通過親自測試可正常運(yùn)行
簡要概述:使用:c++、openGL 3+、sfml、glm、parallel_hash_map、FastNoise。
操作說明:
特征:
-無限世界(從零到數(shù)十億)
“活”水
-陰影
-改變太陽位置的能力
運(yùn)行效果:
目錄│文件列表:
├ 代碼演示
│ └ openglCraftx64
│ │ Minecraft.exe
│ │ openal32.dll
│ │ vcruntime140_1.dll
│ ├ resources
│ │ │ arial.ttf
│ │ │ atlas.png
│ │ │ natlas.png
│ │ ├ audio
│ │ │ │ wood1.ogg
│ │ │ └ wood4.ogg
│ │ └ textures
│ │ └ gui
│ │ │ cross.png
│ │ │ curr_tool.png
│ │ └ tool_bar.png
│ └ shaders
│ │ block_wrapper.frag.glsl
│ │ block_wrapper.vert.glsl
│ │ shader.frag.glsl
│ │ shader.vert.glsl
│ │ shadow.frag.glsl
│ │ shadow.vert.glsl
│ │ water.frag.glsl
│ └ water.vert.glsl
└ 項目源碼
└ Minecraft
│ Minecraft.sln
├ Dependicies
│ ├ include
│ │ ├ GLEW
│ │ │ └ GL
│ │ │ │ eglew.h
│ │ │ │ glew.h
│ │ │ │ glxew.h
│ │ │ └ wglew.h
│ │ └ SFML
│ │ │ Audio.hpp
│ │ │ Config.hpp
│ │ │ GpuPreference.hpp
│ │ │ Graphics.hpp
│ │ │ Main.hpp
│ │ │ Network.hpp
│ │ │ OpenGL.hpp
│ │ │ System.hpp
│ │ │ Window.hpp
│ │ ├ Audio
│ │ │ │ AlResource.hpp
│ │ │ │ Export.hpp
│ │ │ │ InputSoundFile.hpp
│ │ │ │ Listener.hpp
│ │ │ │ Music.hpp
│ │ │ │ OutputSoundFile.hpp
│ │ │ │ Sound.hpp
│ │ │ │ SoundBuffer.hpp
│ │ │ │ SoundBufferRecorder.hpp
│ │ │ │ SoundFileFactory.hpp
│ │ │ │ SoundFileFactory.inl
│ │ │ │ SoundFileReader.hpp
│ │ │ │ SoundFileWriter.hpp
│ │ │ │ SoundRecorder.hpp
│ │ │ │ SoundSource.hpp
│ │ │ └ SoundStream.hpp
│ │ ├ Graphics
│ │ │ │ BlendMode.hpp
│ │ │ │ CircleShape.hpp
│ │ │ │ Color.hpp
│ │ │ │ ConvexShape.hpp
│ │ │ │ Drawable.hpp
│ │ │ │ Export.hpp
│ │ │ │ Font.hpp
│ │ │ │ Glsl.hpp
│ │ │ │ Glsl.inl
│ │ │ │ Glyph.hpp
│ │ │ │ Image.hpp
│ │ │ │ PrimitiveType.hpp
│ │ │ │ Rect.hpp
│ │ │ │ Rect.inl
│ │ │ │ RectangleShape.hpp
│ │ │ │ RenderStates.hpp
│ │ │ │ RenderTarget.hpp
│ │ │ │ RenderTexture.hpp
│ │ │ │ RenderWindow.hpp
│ │ │ │ Shader.hpp
│ │ │ │ Shape.hpp
│ │ │ │ Sprite.hpp
│ │ │ │ Text.hpp
│ │ │ │ Texture.hpp
│ │ │ │ Transform.hpp
│ │ │ │ Transformable.hpp
│ │ │ │ Vertex.hpp
│ │ │ │ VertexArray.hpp
│ │ │ │ VertexBuffer.hpp
│ │ │ └ View.hpp
│ │ ├ Network
│ │ │ │ Export.hpp
│ │ │ │ Ftp.hpp
│ │ │ │ Http.hpp
│ │ │ │ IpAddress.hpp
│ │ │ │ Packet.hpp
│ │ │ │ Socket.hpp
│ │ │ │ SocketHandle.hpp
│ │ │ │ SocketSelector.hpp
│ │ │ │ TcpListener.hpp
│ │ │ │ TcpSocket.hpp
│ │ │ └ UdpSocket.hpp
│ │ ├ System
│ │ │ │ Clock.hpp
│ │ │ │ Err.hpp
│ │ │ │ Export.hpp
│ │ │ │ FileInputStream.hpp
│ │ │ │ InputStream.hpp
│ │ │ │ Lock.hpp
│ │ │ │ MemoryInputStream.hpp
│ │ │ │ Mutex.hpp
│ │ │ │ NativeActivity.hpp
│ │ │ │ NonCopyable.hpp
│ │ │ │ Sleep.hpp
│ │ │ │ String.hpp
│ │ │ │ String.inl
│ │ │ │ Thread.hpp
│ │ │ │ Thread.inl
│ │ │ │ ThreadLocal.hpp
│ │ │ │ ThreadLocalPtr.hpp
│ │ │ │ ThreadLocalPtr.inl
│ │ │ │ Time.hpp
│ │ │ │ Utf.hpp
│ │ │ │ Utf.inl
│ │ │ │ Vector2.hpp
│ │ │ │ Vector2.inl
│ │ │ │ Vector3.hpp
│ │ │ └ Vector3.inl
│ │ └ Window
│ │ │ Clipboard.hpp
│ │ │ Context.hpp
│ │ │ ContextSettings.hpp
│ │ │ Cursor.hpp
│ │ │ Event.hpp
│ │ │ Export.hpp
│ │ │ GlResource.hpp
│ │ │ Joystick.hpp
│ │ │ Keyboard.hpp
│ │ │ Mouse.hpp
│ │ │ Sensor.hpp
│ │ │ Touch.hpp
│ │ │ VideoMode.hpp
│ │ │ Window.hpp
│ │ │ WindowHandle.hpp
│ │ └ WindowStyle.hpp
│ ├ includeFull
│ │ ├ fast_noise
│ │ │ │ FastNoise.cpp
│ │ │ └ FastNoise.h
│ │ ├ glm
│ │ │ │ CMakeLists.txt
│ │ │ │ common.hpp
│ │ │ │ exponential.hpp
│ │ │ │ ext.hpp
│ │ │ │ fwd.hpp
│ │ │ │ geometric.hpp
│ │ │ │ glm.hpp
│ │ │ │ integer.hpp
│ │ │ │ mat2x2.hpp
│ │ │ │ mat2x3.hpp
│ │ │ │ mat2x4.hpp
│ │ │ │ mat3x2.hpp
│ │ │ │ mat3x3.hpp
│ │ │ │ mat3x4.hpp
│ │ │ │ mat4x2.hpp
│ │ │ │ mat4x3.hpp
│ │ │ │ mat4x4.hpp
│ │ │ │ matrix.hpp
│ │ │ │ packing.hpp
│ │ │ │ trigonometric.hpp
│ │ │ │ vec2.hpp
│ │ │ │ vec3.hpp
│ │ │ │ vec4.hpp
│ │ │ │ vector_relational.hpp
│ │ │ ├ detail
│ │ │ │ │ compute_common.hpp
│ │ │ │ │ compute_vector_relational.hpp
│ │ │ │ │ func_common.inl
│ │ │ │ │ func_common_simd.inl
│ │ │ │ │ func_exponential.inl
│ │ │ │ │ func_exponential_simd.inl
│ │ │ │ │ func_geometric.inl
│ │ │ │ │ func_geometric_simd.inl
│ │ │ │ │ func_integer.inl
│ │ │ │ │ func_integer_simd.inl