Skip to content

A collection of projects, graphical or otherwise.

License

Notifications You must be signed in to change notification settings

Kwang316/Coding-Projects

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ;)

About

A collection of projects, graphical or otherwise.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%