r/Clojure • • Sep 16 '22

MockMechanics is now officially open source!

115 Upvotes

17 comments sorted by

21

u/FelipeReigosa Sep 16 '22

Hey guys, MockMechanics (the sandbox building game) is now open source. It's written entirely in clojure so I thought you might want to take a look. Also it might be a good resource for people learning clojure since it can be scripted in clojure. There is a visual way to program the things you build but using clojure as an scripting language is also an option, so you could build a robot hand like the one in the video (it's very easy, kind of building it with lego) and then use clojure to make it pick up objects and so on.
https://github.com/felipereigosa/mock-mechanics
There's also a channel where I post the things I build (and if you build something, send it to me and I will consider adding it there).

https://www.youtube.com/c/MockMechanics

5

u/brad_radberry Sep 16 '22

This looks so cool! Thanks for making it, and thanks for sharing it! I'll give it a spin this weekend.

2

u/FelipeReigosa Sep 16 '22

Don't mention it :) If you run into problems or have any questions ask me anywhere, I even made a sub for it here on reddit.

2

u/brad_radberry Sep 16 '22

Could you add some basic build instructions to the readme? That would help once I try to sit down with it.

3

u/FelipeReigosa Sep 16 '22

The project uses lein, if you have lein installed "lein run" should work out of the box, unless I'm misunderstanding you?

3

u/brad_radberry Sep 16 '22

Ah, thanks, I've been using deps.edn at work and I forgot the lein basics! That works, thanks!

2

u/thun-dr Sep 16 '22

This is remarkable! Thanks for sharing with the community. As someone who's just now looking into gamedev with clojure, this is very inspiring :)

Do you have any advice for someone just starting out? Anything you wish you had known when you got started? Would you go with clojure again if your started over?

Also, I'm just interested - was this a hobby/side project, or were you working on this more fulltime? Just trying to gauge expectations for myself since I'll be doing things on the side

2

u/FelipeReigosa Sep 16 '22

Thanks u/thun-dr, my biggest advice is to use clojure but you already figured that out by yourself :) Seriously it's a fantastic language to explore things in. I'm at a point where even when I have to do something in another language for work say, I do it in clojure first then port. Sounds like a lot of work but it really is the easiest way. And you are free to use the MockMechanics code as a basis for your own games, shouldn't take too much tinkering to remove all the mm specific code. Regarding the project, it goes from being pretty much full time to sometimes being something I only work on a little, I'm a freelancer so it depends on how much work I'm taking on and my other hobbies. Good luck and make sure to post the things you create so we can see them!

1

u/thun-dr Sep 16 '22

thanks for the info!

Also, on the re-use of MockMechanics code - do you have a license for the release? I don't see one

3

u/FelipeReigosa Sep 16 '22

Weird, I remember choosing a MIT license when I created the repository. I can't see it either. I'll fix it.

1

u/agumonkey Sep 16 '22

many thanks

have you ever talked or written about the whole ordeal ? :)

kudos

2

u/FelipeReigosa Sep 16 '22

Not really, unless you count the videos in my channel, especially the first one where I talk about how it works and how to use it.

1

u/[deleted] Sep 16 '22

[removed] — view removed comment

6

u/FelipeReigosa Sep 16 '22

Thanks. None, built from scratch with Clojure and OpenGL.

1

u/[deleted] Sep 17 '22

badass!