Skip to content

Turtle Graphics system using modern C++ and SDL, with an interactive Interpreter.

License

Notifications You must be signed in to change notification settings

cschladetsch/TurtleGraphics

Repository files navigation

Turtle Graphics

CodeFactor License Release

A cross-platform Turtle graphics system written using modern C++ and SDL, and best practices.

Has both native Visual Studio project for ease of use and access, and fast build speeds. Also has a CMake-based system for cross-platform support (Linux, macOS, etc).

Features:

See YouTube Playlist for real-time video commentary on development.

Building

You will need to install SDL into the External folder from the root folder of the project. Up to you how you do this.

Either use the Visual Studio solution directly, or CMake otherwise.

Using CMake

The usual:

$ mkdir -p build && cd build && cmake .. && make

Development Videos

Google Lint Filters

These are the filters I use for Google's cpplint to suite my tastes more. The bash function I use is:

lint() {
	cpplint --filter=\
		-build/include_order,\
		-readability/utf8,\
		-whitespace/indent,\
		-whitespace/line_length,\
		-runtime/references\
        $*
}
  • -build/include_order - need to ignore because of pre-compiled headers
  • -readability/utf8 - I just really want to use Unicode © symbol
  • -whitespace/indent - I refuse to put a single space before access modifiers
  • -whitespace/line_length - Tried to enforce this, but these days it's not needed
  • -runtime/references - Google doesn't like you to pass objects by reference. I like to sometimes pass objects by reference. Apparently I should use a pointer instead, which is insane to me.

Todo

Maybe have multiple Turtles?

About

Turtle Graphics system using modern C++ and SDL, with an interactive Interpreter.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published