Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Space-Invaders/Debug/Space-Invaders.pdb
Binary file not shown.
11 changes: 11 additions & 0 deletions Space-Invaders/Space-Invaders/Debug/Space-Invaders.exe.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>D:\repos\Space-Invaders\Space-Invaders\Debug\Space-Invaders.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file not shown.
2 changes: 2 additions & 0 deletions Space-Invaders/Space-Invaders/Debug/Space-Invaders.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 main.cpp
Space-Invaders.vcxproj -> D:\repos\Space-Invaders\Space-Invaders\Debug\Space-Invaders.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D:\repos\Space-Invaders\Space-Invaders\main.cpp;D:\repos\Space-Invaders\Space-Invaders\Space-Invaders\Debug\main.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v143:VCToolArchitecture=Native32Bit:VCToolsVersion=14.40.33807:TargetPlatformVersion=10.0.22621.0:
Debug|Win32|D:\repos\Space-Invaders\Space-Invaders\|
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^D:\REPOS\SPACE-INVADERS\SPACE-INVADERS\SPACE-INVADERS\DEBUG\MAIN.OBJ
D:\repos\Space-Invaders\Space-Invaders\Space-Invaders\Debug\Space-Invaders.ilk
Binary file not shown.
Binary file added Space-Invaders/Space-Invaders/Debug/vc143.idb
Binary file not shown.
Binary file added Space-Invaders/Space-Invaders/Debug/vc143.pdb
Binary file not shown.
63 changes: 62 additions & 1 deletion Space-Invaders/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,66 @@

#include<SFML/Graphics.hpp>
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
sf::VideoMode video = sf::VideoMode(800, 600);
sf::RenderWindow window(video, "SPACE INVADERS");

while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
// Check for window closure
if (event.type == sf::Event::Closed)
window.close();
}


// Clear the window
window.clear(sf::Color::Black);

sf::CircleShape circle(50);
circle.setFillColor(sf::Color::Green);
circle.setPosition(400, 300);

sf::RectangleShape square(sf::Vector2f(100,100));
square.setFillColor(sf::Color::Red);
square.setPosition(1, 0);


sf::ConvexShape triangle;
triangle.setPointCount(3);
int size =100;
triangle.setPoint(0, sf::Vector2f(0, 0)); // Top vertex
triangle.setPoint(1, sf::Vector2f(size, 0)); // Bottom-right vertex
triangle.setPoint(2, sf::Vector2f(size / 2.f, std::sqrt(3.f) / 2.f * size));
triangle.setFillColor(sf::Color::Blue);
triangle.setPosition(750-size/2,0);

sf::Texture texture;
texture.loadFromFile("assets/textures/outscal_logo.png");
sf::Sprite spirite;
spirite.setTexture(texture);
spirite.setScale(0.5,0.5);
spirite.setPosition(300,250);


sf::Font font;
font.loadFromFile("assets/fonts/OpenSans.ttf");

sf::Text text("SFML is Awesome",font,50);
text.setFillColor(sf::Color::White);
text.setPosition(1, 0);

// Display whatever you draw
//window.draw(circle);
//window.draw(square);
//window.draw(triangle);
window.draw(spirite);
window.draw(text);
window.display();
}


return 0;
}
2 changes: 1 addition & 1 deletion Space-Invaders/sfml/include/SFML/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
#define SFML_VERSION_MAJOR 2
#define SFML_VERSION_MINOR 6
#define SFML_VERSION_PATCH 0
#define SFML_VERSION_PATCH 1


////////////////////////////////////////////////////////////
Expand Down
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-audio-s-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-audio-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-audio.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-graphics-s-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-graphics-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-graphics.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-main-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-main-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-network-s-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-network-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-network.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-system-s-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-system-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-system.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-window-s-d.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-window-s.pdb
Binary file not shown.
Binary file modified Space-Invaders/sfml/lib/Debug/sfml-window.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion Space-Invaders/sfml/lib/cmake/SFML/SFMLConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ if (NOT SFML_FOUND)
endif()

if (SFML_FOUND AND NOT SFML_FIND_QUIETLY)
message(STATUS "Found SFML 2.6.0 in ${CMAKE_CURRENT_LIST_DIR}")
message(STATUS "Found SFML 2.6.1 in ${CMAKE_CURRENT_LIST_DIR}")
endif()
6 changes: 3 additions & 3 deletions Space-Invaders/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
# The variable CVF_VERSION must be set before calling configure_file().


set(PACKAGE_VERSION "2.6.0")
set(PACKAGE_VERSION "2.6.1")

if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()

if("2.6.0" MATCHES "^([0-9]+)\\.")
if("2.6.1" MATCHES "^([0-9]+)\\.")
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
endif()
else()
set(CVF_VERSION_MAJOR "2.6.0")
set(CVF_VERSION_MAJOR "2.6.1")
endif()

if(PACKAGE_FIND_VERSION_RANGE)
Expand Down
2 changes: 1 addition & 1 deletion Space-Invaders/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(CMAKE_VERSION VERSION_LESS "2.8.3")
message(FATAL_ERROR "CMake >= 2.8.3 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.8.3...3.24)
cmake_policy(VERSION 2.8.3...3.25)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Space-Invaders/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(CMAKE_VERSION VERSION_LESS "2.8.3")
message(FATAL_ERROR "CMake >= 2.8.3 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.8.3...3.24)
cmake_policy(VERSION 2.8.3...3.25)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
Expand Down