@Efi Not really, I understood it well I think.
Now I need good code examples... :S
The play-clj-examples repo is good but not great.
Do you know any good game made with it where I can check the code and the way they handle the textures?
@Efi Not really, I understood it well I think.
Now I need good code examples... :S
The play-clj-examples repo is good but not great.
Do you know any good game made with it where I can check the code and the way they handle the textures?
@ekaitz_zarraga https://gist.githubusercontent.com/Efimero/08e1ea59862512ee8e346b057024a64e/raw/b85a7cc5dabf6b30cbd033700a6fa7f8cdda2244/gistfile1.txt sorry, it got long
@Efi Bang! mind blown!
Okay okay... i have to study a little bit more.
The thing with the examples is they are so simple the design itself is made considering they *are* simple.
And I want to read some code which expected a kinda complex game.
Get what I mean?
@ekaitz_zarraga of course I do, hon
I had the same issue when learning it
what I do is pack my entities in a custom dictionary instead of the entities array, and then render them like (render! screen (-> entities :sprites :background)) for example
or you can even abstract on that and make a function that selects exactly what to draw and in which order aand gives that to (render!)
it's just a matter of what ends up on the screen, there's no opengl magics involved yet =P
@Efi hmmmmm!
Looks a nice way.
I have to learn the rest of the thing too... :S
tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.