juanbalian35 / a-star-c-11-sfml-implementation Goto Github PK
View Code? Open in Web Editor NEWVisualization for "A*" pathfinding algorithm in a grid-based map developed with SFML, C++
Visualization for "A*" pathfinding algorithm in a grid-based map developed with SFML, C++
Hi, I just want to say thank you for making this public. You have no idea how much time I spent looking for grid based pathfinding tutorial for SFML.
I just had to make a tiny change to make it compile on OS X:
diff --git a/include/Node.h b/include/Node.h
index 35bb251..58a29b5 100644
--- a/include/Node.h
+++ b/include/Node.h
@@ -2,6 +2,7 @@
#include <memory>
#include <vector>
+#include <cstdlib>
#include <SFML/System/Vector2.hpp>
template<typename T, typename V>
diff --git a/src/Game.cpp b/src/Game.cpp
index b988352..8bcef7c 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -22,7 +22,7 @@ void Game::run(){
void Game::loadTexts(int height){
//Load font
- font.loadFromFile("d:/SFMLpro/Sansation.ttf");
+ font.loadFromFile("media/Sansation.ttf");
const auto green = sf::Color(0, 140, 0);
Thanks again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.