16
SFML projects / Rewrite of SFML in Google's Golang
« on: September 21, 2013, 10:46:23 pm »
Hey all! So I changed my name (I'm DrSuperSocks, but tedsta includes my actual name (Teddy), is shorter, and a 19-year-old shouldn't have an alias that sounds like a 13-year-old's).
EDIT:
I originally posted my whole game engine, which uses a rewrite of the Graphics module of SFML I did. But I realize now that my game engine isn't relevant to any of you, and the only thing I was really showing off was my rewrite of SFML. So, here is my rewrite of SFML in Golang. It took 3 days to write the code, then another 3 or 4 days to get the code to actually work Parts of it still feel clunky, as C++ doesn't translate perfectly to Golang. The two biggest issues are the lack of const reference and inheritance.
So far, I've only rewritten a good chunk of the graphics module. That may be as far as I go, unless I need more features out of SFML.
Check it out here: https://github.com/tedsta/gosfml
PS: There are existing SFML bindings for Go, which I was originally using, but I wanted to be able to touch the variables in primitives, like Vector2.
EDIT:
I originally posted my whole game engine, which uses a rewrite of the Graphics module of SFML I did. But I realize now that my game engine isn't relevant to any of you, and the only thing I was really showing off was my rewrite of SFML. So, here is my rewrite of SFML in Golang. It took 3 days to write the code, then another 3 or 4 days to get the code to actually work Parts of it still feel clunky, as C++ doesn't translate perfectly to Golang. The two biggest issues are the lack of const reference and inheritance.
So far, I've only rewritten a good chunk of the graphics module. That may be as far as I go, unless I need more features out of SFML.
Check it out here: https://github.com/tedsta/gosfml
PS: There are existing SFML bindings for Go, which I was originally using, but I wanted to be able to touch the variables in primitives, like Vector2.