r/Julia • • May 17 '20

Make game

Hi guys, can you give me some tips on how can i make simple platform game in julia. Thanks in advance.

0 Upvotes

10 comments sorted by

10

u/moelf May 17 '20

don't

4

u/yoghurt125 May 17 '20

Well I don't have choice

0

u/moelf May 17 '20

how come

2

u/yoghurt125 May 17 '20

I must do it as project for my univeristy class.

5

u/[deleted] May 17 '20

That's a weird thing to ask you to build in Julia. Anyway, if you want it to have real graphics (not text based), you probably want to search for an SDL (Simple Direct Media Layer) library.

I've never used SDL with Julia before, it's probably not something many people have done, but here's one by a quick search, there are probably a few others in various states of completion.

https://github.com/jonathanBieler/SimpleDirectMediaLayer.jl

3

u/[deleted] May 17 '20

wrap it all in a while loop until they click something to exit.

5

u/[deleted] May 18 '20

For graphics, something like Makie could help. It is made primarily for interactive data visualization, but can be used to render your video game's frames and make it interactive.

3

u/yiyuezhuo May 18 '20

If you want a serious game and know something about html/javascript, consider use of Julia as a server with a html5 frontend (Julia will be used to compute... planet dynamic?..). Or considering it's an assignment, you can just make some random console games leveraging "print". Many examples written by Python may be interesting.

2

u/shorty66 May 18 '20

You might want to have a look at REPLTetris.jl

0

u/WrongAndBeligerent May 18 '20

Here's a tip, try trying before asking for tips.