Jump to content
  • entries
    46
  • comments
    207
  • views
    39,865

An in-game console


AggrorJorn

4,137 views

 Share

After creating my Component based engine structure for my main project, I have now moved on to the next stage of development: an in-game console.

 

Possibilities

To sum up what you can do with it, here is a little video demonstration.

 

 

On the To-Do list

Although the core of the console is finished and working the way I want it to work, there are some slight improvements.

  • Grapics are simple boxes at this point. I want to go for Valve's in-game console look , which looks simple but suits its purpose really well.
  • console.jpg
  • Used command are stored and can be retrieved with arrow keys.
  • Error message or help text should be displayed above the command line.
  • Show a cursor.
  • Adding useful commands, like toggle sound, sound volume, load level, set players health, ammo, armor etc.
  • Trying to build the console as a library so that it can be easily included in other projects.

  • Upvote 3
 Share

10 Comments


Recommended Comments

I use SFML packages to support multiple arguments. I first used void pointers, but I like this a lot better. It works really simple:

packet << floatValue1
packet << stringValue
packet << someInteger
packet >> Vec3Leadwerks

//Later when you read it again
packet >> var1 // float
packet >> var2 // string
packet >> var3 // int
packet >> var4 // Vec3

Link to comment

I am not using any library. I just draw rectangles and print text on it. I do had to create my own GetChar function since the LE3 api does not have that. I can share it if you want.

Link to comment

No Furbolg, I meant exactly what Jorn answered (about the screenshot posted just after the video). Ok thanks Jorn, thank you for your kind sharing option but I'd like a robust full-fledged GUI library with all the whistles&bells (labels, textfields, textareas, windows, boxes, popup lists, grid, buttons and any other common widgets)... will take a look again at CEGUI.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...