What I did today

Added texture mapping to my renderer and model loader.

(click for full size)

http://i.imgur.com/22TJEaX.png

  • Jev

Got most of my widgets working properly. Iā€™m painstakingly rebuilding the entire UI in Battledroid, having completely changed all the underlying code and the format of the XML that defines it. Why you ask? Because it was so difficult to use and so fiddly that the only person who could design UIs with it was Chaz, and heā€™s busy elsewhere on Basingstoke. Meaning I was well and truly stuck. Now I can design the UIs myself! Hurrah. Still takes ages though. Pixels here, pixels there.

Cas :slight_smile:

A thankless task Cas. But have you simply reversed the problem, perhaps now you can create the UIs but Chaz canā€™t? :slight_smile:

I think Iā€™ve made it easier for both of us :persecutioncomplex:

Behold the old code to, for example, just do a simple button:


	<area id="=$#ChangeEmailForm.CANCEL_BUTTON_ID" inherit="button.spec" text="=$lwjglapplets.generic.CANCEL"><anchor x="left" d="0"/><area inherit="button.focus.spec"/><area inherit="button.mouseon.spec"/><area inherit="button.glow.spec"/></area>

and hereā€™s what the same bit looks like now:


	<button id="$#ChangeEmailForm.CANCEL_BUTTON_ID" x="west" width="40%" text="$lwjglapplets.generic.CANCEL"/>

Doesnā€™t look much simpler until you have 500 lines of it all using the same ā€œareaā€ tagā€¦

Cas :slight_smile:

nice update, still think that XML is way too verbose (unless you have a gui tool to auto-generate it or something), if you are rewriting might be a good chance to look at JSON, YAML or Google Protocol Buffers.

We just got stuck with XML as a legacy, too late to go changing it now. Probably Json might have been easier on the eye.

Cas :slight_smile:

Simples, XSLT it into JSON.

This goes for today and yesterdayā€¦

I worked on my online profile/resume. Since the afternoon, yesterday, I have been adding and rewriting to my portfolios on the most popular websites, such as LinkedIn or Behance. I have also been organizing my exact skills and accomplishments, completions and projects, etc.

:slight_smile:

Bought http://www.mercurylib.com/, no longer using http://merc.radiri.us/ for the project.

About to redesign the site.

  • Jev

Waged war with Google and won.
Both for JGO and enterpricy job.

Google has changed my mindset: if itā€™s broke, itā€™s probably their fault. Retry API calls until they succeed, and/or restart the whole procedure - because that fixes it.

I long for those rock solid Amazon cloud servicesā€¦ Googleā€™s crash/fail/timeout or are returning results that are flat out wrong.

Butā€¦ it works nowā€¦ going home from work at 21:30 :cranky:

Got #4 on the Leibniz code golf :slight_smile:

https://www.hackerrank.com/challenges/leibniz/leaderboard/filter/language=java

CopyableCougar4

Oh man, someone was beating me!
Was. 8)

Anyway, Iā€™ve been studying concatenative languages, which are fascinating, and for some reason I felt compelled to try and write a recursive function in the style (naturally fibonacci) and keep it hygienic:

[quote]` The Fibonacci sequence: (loosely defined as all F(x) where x < 2 is 1)
[dup [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if] /fib def

` execution stack of fib(2):

2 fib
2 dup [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if
2 2 [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if
2 [drop 1] [dup 2 - fib swap 1 - fib +] 2 2 < if
2 [drop 1] [dup 2 - fib swap 1 - fib +] false if
2 dup 2 - fib swap 1 - fib +
2 2 2 - fib swap 1 - fib +
2 0 fib swap 1 - fib +
2 0 dup [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if swap 1 - fib +
2 0 0 [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if swap 1 - fib +
2 0 [drop 1] [dup 2 - fib swap 1 - fib +] 0 2 < if swap 1 - fib +
2 0 [drop 1] [dup 2 - fib swap 1 - fib +] true if swap 1 - fib +
2 0 drop 1 swap 1 - fib +
2 1 swap 1 - fib +
1 2 1 - fib +
1 1 fib +
1 1 dup [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if +
1 1 1 [drop 1] [dup 2 - fib swap 1 - fib +] 2 < if +
1 1 [drop 1] [dup 2 - fib swap 1 - fib +] 1 2 < if +
1 1 [drop 1] [dup 2 - fib swap 1 - fib +] true if +
1 1 drop 1 +
1 1 +
2
[/quote]
I may have to write an implementationā€¦

FORTH really was an interesting language BTW.

Factor seems to have taken over, although still obscure.

Nice! interesting. Never heard of it :slight_smile:

Itā€™s a little while ago (I think It was 2 day ago that I finished it), but I didnā€™t have time to post here (school & coding & that = too much) :slight_smile:

So I present you: The haskell Expression interpreter that can output graphical stuff:

About ~30 hours of work (using hint, my own library DeclarativeGraphics, highlighting-kate, Gtk2Hs).

Got character creation in - nearly there for a playable demo.

https://dl.dropboxusercontent.com/u/1668516/shots/fore/shot5.png

Cheers,

Kev

Whatā€™s the big advantage to a free library like for example LibGDX?

Mercury is free, I donā€™t know what got you to think otherwise.

Anyway, I would say the biggest advantage is the utter simplicity of the library and its lightweight framework. While GDX has a lot of useful features and great cross-platform support, Mercury isnā€™t built around the same goals GDX is built around.

If you want something thatā€™s very fast to setup and easy to get something going with, use Mercury or Slick2D.
If you want something thatā€™s very cross-platform and efficient for developers looking to get the most out of a library, use libGDX.

Thatā€™s how I like to sum it up.

That said, the library is still in development and not recommended for people thinking about pursuing large projects with it.
We plan on having a beta release in December, and by then it will hopefully be dev-ready.

  • Jev

I guess this is what I get for trying to implement a dynamic language in Javaā€™s type system:

http://pastebin.java-gaming.org/9fb0e50031f19

:persecutioncomplex:

EDIT: better, still nasty: http://pastebin.java-gaming.org/fb0e0630f191d
EDIT2: actually not bad: http://pastebin.java-gaming.org/b0e037f091d13

Oh ok, IC. I was thinking it is commercial, because you were saying you ā€œboughtā€ it.

Iā€™m using Slick2D for my project right now, but Iā€™m strongly considering switching to libGDX for the cross-platform advantages you also mentioned.