What I did today

Well weeks and little progress. This own company thing is harder than it looks. Last week was bad as a friend suddenly pass away. Sad times.

This week i have been a chronic procrastinator. So i got out the book that helps me on that and am applying that for the next little while, so far so good. Didn’t muck around at all this morning. Got cracking straight out of the blocks. Lets try and keep that up eh.

You may wonder why i would post this. Well i am trying to organize some informal weekly indie thing here (Auckland NZ). Because when you work mostly on your own it is very easy to have days, weeks and even months just evaporate and you don’t really keep up with what you should be doing, and what your not doing. I know of no silver bullets, but contact with others who can tell you “what the… you should us that last month”. Or alternatively and more common, it like Dam he got soo much done. What was i doing? So until then your my informal weekly meeting :smiley:

So lets crack on.

Today I wrote a game on a computer older than almost all of you.

Imgur album

Excuse the potato quality.

As I’m heading to uni to do Game Development I have started learning c++ conventions as it’s required in my course… what an ugly language, their syntax is horrible, my cant I just do it in Java :frowning:

C++ conventions? What conventions?

You kid (maybe) but in my somewhat limited time developing with C++ I never saw anything about conventions other than bracket placement, which is really just inherited from C… Whereas in Java when I was learning the conventions were drilled into my skull by every tutorial I looked up. Just an interesting difference.

Sadly i do believe i am older.

Started working on my level editor again :slight_smile:

I increased the number of recipes a smith can execute in Vangard. This bankrupted all the smiths as they made a scatter of different implements but under the default selling rules they would not sell singletons. So a simple addition to my recipe and item lists resulted in a need to do a major rewrite of my buying/selling code!

The same problem was affecting my bakers, so now the long-standing village pie shortages should come to an end :slight_smile:

I wrote a little script to convert .bdf (bitmap font) files into C style 2D arrays! This lets me take any bdf I find on the internet and put it in my OS, which is pretty cool.

Yes, I know it’s probably disgusting for any Python enthusiasts. Don’t care.

In the process of learning to write a lexer and parser, I wrote a JSON parser myself, just for learning.

The JSON I used is like this:


{
    "employees": [
        { "firstName": "Harsha", "lastName": "Chilakapati" },
        { "firstName": "Teja", "lastName": "Chilakapati" }
    ]
}

This is very interesting, and I now understood how to read diagrams. The parser also gives error messages if present on line number and column number. Pretty cool this is working.

I’m now gonna try out extending this to support Longor’s XHON.

I bought a books bundle mainly for the books about: reverse engineering / the art of exploitation / practical malware analysis, but there were also some books about python in it.
So decided to start of lazy and learning python is really fun so far. I’m having that same “YEAH, I printed my name 10 times in console!” feeling as when I started programming :stuck_out_tongue:

Gosh, I hate json so bad… I wrote my own simple markup language (cause even the YAML is bloated for me). The format was like that:



astring: "Testing \" syntax:parsing ,. is 2..5 correct"

# A comment that starts with a hash symbol.

# Examples of arrays, keep in mind that arrays can be of only one type, you cant
# mix number and strings inside array.
moods: ["Sad", "Indifferent", "Happy"] # Strings array

ratings: [1, 2, 3, 4] # Integer array
ratios: [2.0, 3.0, 5.0] # Floats array


# A collection: indentations designate the scope, each indentation must be 2 spaces:
people: 
  john: 
    name:  "John McCrank" 
    birth: 1985
    email: "low_rider@come.com", 
  andy: 
    name:   "Andy Monkey "
    birth: 1995
    email: "pure_boy@ trolls.com"
  kate: 
    name: "Kate Broccoli"
    birth: 1998
    email: "spinach@cans.com"
 

leader: @people.john # Reference to previous element.

# The quotes inside strings must escaped:
end_word: "My mother said:  \"I don't want to eat a banana\"" 

# Multiline string example:
quote: "I dont know how long will this span
  , but certainly it wont be a single line" 

No funky stuff - only primitives, arrays and back references to allow single-pass parsing.

In my opinion JSON is still a good format over XML, because it is programmer friendly. Why I have chosen it is because GLTF model format uses JSON, and also this is an opportunity to learn how to write parsers. Next up, I’m also going to implement XML parser, and then I’ll try to write my own JBasic, basic language run on JVM.

This is made as part of my college course.

Your format is awesome by the way, especially because I like YAML and yours extend it.

Just so you guys know what he is talking about:
The XHON file format is a superset (with nifty features) of JSON that I developed.
The specification is pretty much complete (all features are in) and can be found here:

Some useful resources for writing a new language with Java/JVM:

Lexer and parser generators taking a language grammar in EBNF form:

Also interesting toolkits to build whole IDEs around a language (syntax highlighting, auto-suggest, etc.):

And here is a railroad diagram generator for EBNF while we are at it:
http://bottlecaps.de/rr/ui

Made the full islands generate with little towns!

https://pbs.twimg.com/media/CidvDRqUoAAbdGA.jpg:large

World generation is so cool! I have to include it in my next project :’)

On the topic of world generation try my looping noise if you’re making a sort of planet

Spent 4 hours looking for a bug in my LWJGL code and there was no error in the console…turned out to be a undefined int in a class -.-