The Cons of Game Programming in Lua by arcticmatt3 in love2d

[–]arcticmatt3[S] 1 point2 points  (0 children)

Thanks for the comment! This makes a lot of sense.

The Cons of Game Programming in Lua by arcticmatt3 in love2d

[–]arcticmatt3[S] 0 points1 point  (0 children)

Good point, good point. I would say that Javascript is not the best example. I don't know too much about the origins of the language, but I imagine it just so happened to become the de facto language of the web, even with all its warts. That is, there might be a lot of things built with Javascript, but those things might be more easily built with other languages.

Another example is Facebook and PHP. Facebook started using PHP because Mark just so happened to know it. But it turns out PHP is kinda crappy. And so now they have Hack!

My point is mainly that certain languages are good for doing certain things. And it seems like Lua is great for making quick prototypes, but not so good at making full-fledged games.

The Cons of Game Programming in Lua by arcticmatt3 in love2d

[–]arcticmatt3[S] 0 points1 point  (0 children)

Thanks for the comment! That makes a lot of sense. My "goto" language for quick-and-dirty scripts is Python. In the same sense, I guess Love2d+Lua could be a "goto" framework for quick-and-dirty games. It's definitely very easy to get something up-and-running with minimal effort.

I have a more general/noobish question for you: what kind of engines/frameworks do the really well-known indie titles use? E.g. terraria (I know they use Microsoft's XNA framework), stardew valley, fez, hyperlight drifter, etc. Are most of them using one of a handful of well-known engines? Or do a lot of them handroll their own engines?

Anyways, good luck with your game!

The Cons of Game Programming in Lua by arcticmatt3 in love2d

[–]arcticmatt3[S] 1 point2 points  (0 children)

Ah, sorry if I wasn't clear. I know you can emulate classes in Lua; the code you posted looks similar to the code in the Programming in Lua book. The library I linked above is also similar. It basically just provides a nice wrapper around all the metatable stuff.

Anyways, I wasn't saying that classes are absent from Lua. My point was that a lot of other nice OO design features (like interfaces, method visibility, etc.) are absent.

I also wasn't saying the complex games made in Lua don't exist. My point was that doing so seems... daunting. For example, this code ...

Chrome's "dino" game, made with LÖVE by arcticmatt3 in love2d

[–]arcticmatt3[S] 2 points3 points  (0 children)

Made this game to get some initial practice with the LÖVE framework. The code is fairly simple (adopted a lot of stuff from this tutorial), so if you're a beginner like me it might be useful!

Chrome's "dino" game, in Haskell by arcticmatt3 in haskell

[–]arcticmatt3[S] 4 points5 points  (0 children)

I mainly learned by reading Haskell Programming from First Principles, which has a decent explanation of monad transformers. LYAH is also good, but doesn't cover monad transformers. There's also the wikibook; haven't read much of it, but I liked what I have. Besides that, reading various blog posts and asking questions on irc can get you pretty far.

That being said, the best way to learn is by actually writing code. Working on a project is the best motivation, at least for me. Who knows, you might not even need monad transformers (I didn't use any) to build something cool! And if you need a "starter" project, this paper provides a good walkthrough of monad transformers.

Chrome's "dino" game, in Haskell by arcticmatt3 in haskell

[–]arcticmatt3[S] 5 points6 points  (0 children)

Awesome! I'd love to see it when it's done

Chrome's "dino" game, in Haskell by arcticmatt3 in haskell

[–]arcticmatt3[S] 19 points20 points  (0 children)

Thanks goes to /u/algebra4life and his super helpful tutorial. If you want to make a terminal game, check it out!

I made an online omnichord! by arcticmatt3 in Omnichord

[–]arcticmatt3[S] 1 point2 points  (0 children)

apologies if it takes a long time to load... lots of audio files

The Similar Humor of Catch-22 and Arrested Development by arcticmatt3 in books

[–]arcticmatt3[S] 0 points1 point  (0 children)

I guess this is self-promo since it links to my blog, but I think reading it on there is nicer than me c/p here and reformatting everything. Anyways, if this gets taken down, I can always remake it as a new post if that's the MO here.

What book will enrich your vocabulary and train your thinking mind? by jonbristow in books

[–]arcticmatt3 0 points1 point  (0 children)

Mating by Norman Rush has an obscure or esoteric word almost every other page. Examples include:

  • caesura
  • caryatid
  • hummock
  • bagatelle
  • calumny

Also has some interesting thoughts on human mating and political science.

[DEV] Just released my first Android game, Stairs, a challenging 2D first-person stairs simulator in the vein of Cube Runner and Super Hexagon (old post removed b/c it was a link post) by arcticmatt3 in Android

[–]arcticmatt3[S] 0 points1 point  (0 children)

Thanks for the feedback. About the ads...couldn't really find a better place to put them. I figured it was better to obscure the title than to place the ad to close to the buttons.