Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Help needed with my game

 
Greenhorn
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:

Regards,
Sunil Chanchlani
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic