• Stars
    star
    156
  • Rank 239,589 (Top 5 %)
  • Language
    C++
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

A collection of projects, graphical or otherwise.

Coding-Projects

A collection of projects, graphical or otherwise.

This project uses SFML 2.5.1

To run any of the programs, create a main.cpp file, include "program.h" and write Program.run(window);

example for Visual Studio 2017 to run LorenzAttractor:

main.cpp

#include "stdafx.h"
#include "LorenzAttractor.h"
#include <SFML/Graphics.hpp>

int main()
{
  /// Create a window
  
  bool isFullscreen = true;
  sf::RenderWindow window;
	window.create(sf::VideoMode(1980, 1080), "Coding Projects", (isFullscreen ? sf::Style::Fullscreen : sf::Style::Default), sf::ContextSettings());
	window.setPosition(sf::Vector2i(0, 0));
  window.setVerticalSyncEnabled(true); 
	window.setFramerateLimit(60);
  
  
  /// Important part is here
  
  LorenzAttractor.run(window);
}

Controls : H to switch to the next attractor

W/A/S/D for moving in the plane

Space/Shift to move up and down

Up/Down/Left/Right to turn the camera

These will feel familiar to Minecraft players ;)