Inspiration
I knew nothing of game development in python, so I set out a quest to learn to code minecraft. I figured that may have been too easy, so I also gave myself the challenge of coding minecraft in as few lines as possible. In the end I learned how to do this and made a python script that ran a super basic version minecraft in 15 lines of code (14 if your not including a space between the import statement and the code)
What it does
📷 Pictures:


How we built it
I built this using the ursina python game engine which made it much easier and quicker to code
Challenges we ran into
It was really difficult to shorten the code down. I had a goal of making the code only 50 lines. I managed to accomplish that, so I decided to challenge myself even more and tried making it 30 lines, then 25 lines, then 20 lines, and finally 15 lines. All of the code for each line is in the github repo, so you can see the game get progressively worse as you run the files with fewer lines of code
Accomplishments that we're proud of
To have finished the project, I didn't even think it was possible, so I surprised myself when I coded it in 100 lines. After that, I worked on shortening the code as much as possible
What we learned
I am proud to have learned a lot about game development this weekend
What's next for Minecraft in Python
I have some more ideas for improving the game overall that I didn't have time for this weekend. I would like to add a hot bar and more blocks to the game. Also, when the chunk size is too large, it lags the game too much, so I would also like to work on optimisations
Built With
- python
- ursina
Log in or sign up for Devpost to join the conversation.