Total Count
Thought I’d share my stats on the entire project so far. This count includes the web api, web app, web core, web backend, game client, game server, game pre-launcher, and game launcher. I took care to exclude the PHP libraries that I did not write.
The web core is code shared between the web app and web backend. The web app handles player registration and account maintenance. The game pre-launcher updates the launcher and the launcher handles player authentication and game file updates; both use the web api. The game client and game server authenticate to each other and to the web app via the web api.
You can visit the web app here: https://lodestargame.com/home
--------------------------------------------------------------- Language files blank comment code --------------------------------------------------------------- PHP 308 10266 5858 26669 Java 330 9317 3682 22777 CSS 6 641 68 3242 GLSL 54 402 86 1565 Javascript 14 262 89 1192 XML 9 101 12 501 HTML 3 8 0 42 DOS Batch 1 0 0 1 --------------------------------------------------------------- SUM: 725 20997 9795 55989 ---------------------------------------------------------------



![I think everyone should have to code a text input control. It builds char[].
I’ve come to a point where I can no longer put off the text input. Inspired by the recent text input adventures of Hume over at humespeaks.tumblr.com, I decided to buckle down and handle it.
The current iteration has most of the amenities you look for in a text box. Things like a movable, blinking horizontal and vertical cursor, key repeat with adjustable delay and repeat rate, accepted character filter, home, end, backspace and delete. It also supports arbitrary fonts, font sizes, and kerning.
I imagine this is much more difficult with a lack of string abstraction.
Also, this:
http://cloc.sourceforge.net v 1.56
T=2.0 s (160.0 files/s, 14882.0 lines/s)
---------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------
Java 264 7373 3309 16808
GLSL 54 402 86 1564
XML 2 35 4 183
---------------------------------------------------------------
SUM: 320 7810 3399 18555
---------------------------------------------------------------
Not sure why it says only 160 files and 14k lines in the top part. That is obviously not right.
As it turns out, during the creation of this control, I discovered a substantial bug in my text renderer. The renderer was using glBufferSubData to buffer new VBO data into the eldest VBO in the cache. Note: This doesn’t work when the VBO data you’re replacing is smaller than the data you replace it with.](http://24.media.tumblr.com/tumblr_mdox0vxVso1r30ciyo1_500.png)
