I'll be working on the Console class today.
I realised today that my simple buffered input system was't quite up to speed with what I needed. In order to get combos and hook up a Quake style console I needed the ability store sequenced input too. So now my system has evolved a little, I still have KeyState, MouseState and JoystickState systems for reading the devices, but they now have an overall InputManager class that stores a queue of events. The system can now be used for simple buffered input as well as an input event journal.
I'll be working on the Console class today.
I'll be working on the Console class today.
Previous Entry
4E4 Event system
Next Entry
4E4 Update
Comments
superpig
Where's my peanut, bitch?
June 18, 2005 07:57 AM
June 18, 2005 10:27 AM
Consoles are fun! That's always been one of my favorite parts of coding games and such.
How do you plan on dealing with variables and such. In my most recent console class, I had it set up so each cvar in the console is linked to a real variable (using an AddCvar function).. Etc.
Anyways yeah. If you want to look over my old console class and see if there's anything majorly wrong with it (aside from the lack of templates and proprer OO), I'd appreciate it :).
http://b0x.elitecoders.org/files/b0xc0n0.2src1105.rar
Thanks :)
(I'm sorry, I feel like I just whored your journal :x lol)
How do you plan on dealing with variables and such. In my most recent console class, I had it set up so each cvar in the console is linked to a real variable (using an AddCvar function).. Etc.
Anyways yeah. If you want to look over my old console class and see if there's anything majorly wrong with it (aside from the lack of templates and proprer OO), I'd appreciate it :).
http://b0x.elitecoders.org/files/b0xc0n0.2src1105.rar
Thanks :)
(I'm sorry, I feel like I just whored your journal :x lol)
June 18, 2005 10:43 AM
OMG JOURNAL WHORE!
Heh, just kidding. Actually, my game runs off the back of a GameMonkey Script virtual machine, so my console 'commands' are actually lines of script that are sent back to the VM and executed. Anything such as 'CVars' are actually bound to the respective script interface and can be accessed with the console.
Heh, just kidding. Actually, my game runs off the back of a GameMonkey Script virtual machine, so my console 'commands' are actually lines of script that are sent back to the VM and executed. Anything such as 'CVars' are actually bound to the respective script interface and can be accessed with the console.
June 18, 2005 11:35 AM
Advertisement
Latest Entries
Old Code
4284 views
Chamois - Fluent Assertion Syntax for C++
5736 views
On C++ Naming Conventions
12783 views
First version of FlatBuffers in .NET
3847 views
FlatBuffers in .NET
10984 views
Porting Accidental Noise Library to .NET
5547 views
Cloudy Requests
1921 views
Advertisement