/sfml-vala

The project SFML in vala binding

Primary LanguageValaGNU General Public License v3.0GPL-3.0

SFML-VALA binding

vala binding of project SFML

the documentation is here:

https://nda-cunh.gitlab.io/sfml-vala-binding/sfml/sf.html

Exemple:

using sf;

void main()
{
	var window = new RenderWindow(VideoMode(200, 200), "SFML works!");
	var circle = new CircleShape();

	circle.setFillColor(Color.Green);
	circle.setRadius(100);

	while (window.isOpen())
	{
		Event event;
		while (window.pollEvent(out event))
		{
			if (event.type == EventType.Closed)
				window.close();
		}

		window.clear();
		window.draw(circle);
		window.display();
	}
}

simple snake in sfml-vala here: https://gitlab.com/nda-cunh/snake-sfml