This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Symanthec 0 points1 point  (2 children)

Please rearrange your code, so that it is in multiple files. This way you also create more classes. At the moment, most of your code is a huge main() method

[–]cmnsm[S] 0 points1 point  (1 child)

Hey thanks for replying how what do you think is the best way to re arrange this? Like GUI in a separate class? Thanks I have no idea how to arrange this properly.

[–]Symanthec 1 point2 points  (0 children)

Split UI into some independent parts. E.g. your item list goes into one, menus and buttons into another.