Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed with my game  RSS feed

Sunil Chanchlani
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have developed my own version of Puyo Puyo game as a part of an assignment. But i do not know swing or any graphics techniques to display everything. I have my logic in the form of a 2D array. In the array i have -1 to represent empty space on the board and 0-3 to represent four diff. colors. I have developed the logic for rotating, moving left, right etc. But i need to display the output using java swing (Its a part of the requirement).

Can any one help me with this??

I have tried to use JPanel and was able to display a few buttons (to start or stop the game) and an empty space in the middle of the frame. But i am not able to display colored circles in the panel. If my approach is incorrect then please let me know.

Awaiting your responses... :roll:

Sunil Chanchlani
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!