Something, Something, Game Development

Something, Something, Game Development

by bau5

HI GUYS. I'M HERE. So I'm in this Game Development class. Never been super interested game dev or anything, just thought it would be a good chance to do a bunch of programming, and yeah I was pretty much right. We're using LibGDX which is more or less a Java Library/API/wrapper around a C++ implementation of OpenGL or something. Anyways it's pretty neat I guess. Also dumb at times, but it's whatever.

So this was definitely an adventure getting up and running. Our last homework was literally hangman, so this was a bit of a leap. I followed a pretty great tutorial to a basic version of the engine set up, mostly because I wanted to do it "right". It was definitely a good way to go, so the final stages were really extensible and it was super easy to implement new things.

Probably my favorite part of the whole program was the Mapper. I designed a little thing to read a text file and create a map based off it, and the implementation just turned out great. Changing the level became as simple as editing a text file and reloading the game real quick. Some pictures attached below.

So this consumed my life for the last week or so, and sweet jesus was it a struggle. Learning new libraries can be a bitch. Figured this was a good place to start. I'll probably be posting my entries around this time, just cause my weekends are usually tied up. Struggle on :)

GIF of it inaction

Repo here

Last Edited on Mon Feb 29 2016 03:15:02 GMT-0500 (EST)

ferris commented

NICE! Congrats on starting, and cool to see you're trying new stuff as well. Also cool to see some scala gamedev :D

on Fri Feb 26 2016 13:01:32 GMT-0500 (EST)

bau5 commented

yeah, it was actually pretty nice! I mixed scala and Java a bit. Some things just feel weird to do in a functional language, so i put that in Java. but it's like 80% scala. I need to unprivate the repo and then i'll post a link

on Fri Feb 26 2016 13:08:46 GMT-0500 (EST)

ferris commented


on Fri Feb 26 2016 13:10:20 GMT-0500 (EST)

baggers commented

cool! Would love to hear more on the scala in games stuff, what works what feels crappy, etc. Looking forward to next week's one

on Mon Feb 29 2016 01:38:19 GMT-0500 (EST)

bau5 commented

Yeah I'm doing an RTS next, but it's going to be a while before that one gets an entry, not due for a month or so. So far I really like doing it in Scala over Java.

What comes to mind first is pattern matching. Scala's pattern matching is just so nice, and Java doesn't really have anything like it to the extent Scala does. It's just much easier and more concise and comes in SUPER handy over and over and over again. Also I didn't get a single NPE crash this entire process, where when I do anything in Java that shit gets thrown around constantly. Java didn't have an option type up until 1.8, but Scala has and its implemented really well and using it over nulls is just winning constantly.

P.S. i added a link to the repo in the original post 👍 It isn't the greatest code but meh.

on Mon Feb 29 2016 03:20:03 GMT-0500 (EST)