Giter Site home page Giter Site logo

gofission's People

Contributors

tedsta avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gofission's Issues

Figure out way to declare component type bits as constants

Right now, you declare component type bits like so:

var FooComponentType = fission.NextComponentType()

Obviously, these variables can be modified, but they should never be modified. It would be more idiomatic if they were constant. However, you can't use a function to initialize constants since they are processed at compile time.

Fix code rewritten from SFML in rendering package

At first, I used the SFML bindings to Go, but I quickly became dissatisfied with them. With bindings you don't actually get to "touch" the variables. For instance, the Vector2 class. I hated using SetX and X methods to accomplish things. It didn't feel like idiomatic Go. So I rewrote the relevant parts of SFML in Go (it was hard). Unfortunately, the C++ design patterns SFML uses wonderfully don't work well in Go, so the rewrite feels a bit clunky. Make the SFML Go code more Go-like.

Main issues:

  • Can't pass by const reference (biggest issue)
  • No inheritance

Source files:

color.go
rect.go
rendertarget.go
sprite.go
texture.go
transform.go
transform_test.go
transformable.go
vector2.go
vertex.go
view.go

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.