Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Ups and Downs...

Sign in to follow this  


Well Iam working on my event system today again. Its the last thing Iam having a problem with at the current time and it just dosent seem feasible to do the things I want to do.
Who would have thought hiding the SDL API complety from game code would be this much of a pain.

I have the system right now.. my engine has a video/drawing class, it has a audio class (these work fine the way i want to use them.) Then I have my system class which is going to handle all loading/saving and events and for now thats it but it is open to more.. But that dosent work with what I want to do which is have my player class access the system class event system. but instead my system class event system has to handle all the actions of the game like if w is pressed then do the game class action of move north or drop block(depending on game)

I just had a semi idea .. each part of the game gets its own system event and it jumps into that when the gmae is at that point likeyou have your map.system.event then if esc is pressed it goes to menu.system.event which is really just another message loop of its own... and it handles the event each way in its own way.. of course it seems like it would take quite a bit of wrapper work to hide SDL but this sounds like a pretty good idea...

Man I love these journals just writing that out gave me a idea i feel is good.. Iam going to work on that after work..

What do you all think.. am I just shooting off in the wrong direction? either way Ill find out I guess........ until next time
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!