Do What The F*ck You Want To Public License

项目介绍

ssloy/tinyraycaster 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 Do What The F*ck You Want To Public License 许可证,目前获得 2.1k 个 Star、149 次 Fork。

仓库全名
ssloy/tinyraycaster
开源许可证
Do What The F*ck You Want To Public License
Star 数
2.1k
Fork 数
149
未关闭 Issue
3

README 摘要

Project based learning: build your own 3D shooter in a weekend Check the wiki for the detailed description of what is under the hood. Screw the source code, read the wiki. If you are interested by this project, you might want to check my other tiny repositories, they were fun for me to make, I hope it will be fun for you to read. This video shows what lies in this repository: At the time I write this text, the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

tinyraycaster 用什么语言开发?

主要使用 C++ 编写,采用 Do What The F*ck You Want To Public License 许可证,目前有 2.1k 个 Star。

tinyraycaster 可以免费商用吗?

仓库标注的许可证为 Do What The F*ck You Want To Public License,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 tinyraycaster 的源码?

可以直接克隆仓库:git clone https://github.com/ssloy/tinyraycaster.git,默认分支为 master;安装与运行步骤见仓库 README。

tinyraycaster 最近还在维护吗?

仓库最近一次更新为 2019年2月20日,当前有 3 个未关闭 Issue;Star 数为 2.1k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

486 lines of C++: old-school FPS in a weekend

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

C
C++
CMake
Dockerfile
Shell

README

Project based learning: build your own 3D shooter in a weekend

Check the wiki for the detailed description of what is under the hood. Screw the source code, read the wiki.

If you are interested by this project, you might want to check my other tiny* repositories, they were fun for me to make, I hope it will be fun for you to read.


This video shows what lies in this repository: TinyRayCaster

At the time I write this text, the repository contains mere 486 lines of code:

haqreu@daffodil:~/tinyraycaster$ cat *.cpp *.h | wc -l
486

Few things tinyraycaster is NOT:

  • it is NOT a game, it is a mere stub;
  • it is NOT even a 3d engine;
  • it is NOT a place for design patterns lectures;
  • it is NOT a competitor for id Software products. People, please, I am not John Carmack and neither my students are. Focus on the word “initiation”.

Few things tinyraycaster IS:

  • it IS fun;
  • it IS a blank you can start from;
  • it IS created in one day, check the commit history. I broke my leg, so I wrote some code instead of walking!
  • it IS a project you can participate to, pull requests are welcome, and anyone can edit the wiki;
  • it IS full of bugs. Bugreports are welcome!

As an example, here are the sources for the game made by my students Salih Nascimento and Stephane Hulot, also check the following youtube video for a preview:

Thanksgiving party

Compilation

sudo apt install -y libsdl2-dev git
git clone https://github.com/ssloy/tinyraycaster.git
cd tinyraycaster
mkdir build
cd build
cmake ..
make

You can open the project in Gitpod, a free online dev environment for GitHub:

Open in Gitpod

On open, the editor will compile & run the program as well as open the resulting image in the editor’s preview. Just change the code in the editor and rerun the script (use the terminal’s history) to see updated images. Note how awesome Gitpod is, it allows to run SDL2 games directly in the browser!

评论

暂无评论