filoromz / roloex

A random project -- RPG game :)
4 stars 0 forks source link

Transfer Console interaction into a GUI java application instead #6

Closed filoromz closed 12 years ago

filoromz commented 12 years ago

Not sure if anyone has tried the game out yet, but I feel like the usage of console reading is very clunky and annoying. We have to manually type in what we want to do, (eg. "move", or "use") then press ENTER, then type in another input and it all gets annoying.

"Moving" a character should be very intuitive, like moving the arrow keys UP, DOWN, LEFT, RIGHT instead of typing in "move 1".. After talking to a few gurus (ie. Ricky).. i seriously think it would be best to move our game, especially during the early stages into a GUI framework.

There are two main Java GUI libraries that come to mind. Swing and AWT. After researching, it looks like Swing is the best bet to go as it has more functionality that AWT.

filoromz commented 12 years ago

What are your thoughts @michaelbarlow7 and @Evilfury ? ;D I still have to implement the KeyEventListeners so moving the Character will be automatic if you press the keyboard arrow keys! :)

filoromz commented 12 years ago

Just implemented KeyBindings on the JTextField which will automatically move our Hero around the map! :) There are now two ways to move the character:

  1. Typing explicitly on the JTextField "move {number}" where number is (1=left, 2=up, 3=right, 4=down )
  2. Using the arrow keys on the keyboard which will automatically move the character.