Ahhh….better

author Posted by: whaledawg on date Sep 29th, 2008 | filed Filed under: general

So last friday I was once again trying to psych myself up for a day of pouring over obscure file processing code when I realized something. This game engine could be broken down into the following parts:

  • Core services(message routing, drawing, error handling)
  • Utilities(3D math, actors)
  • Networking
  • Physics(collision detection, friction)
  • Tools(for making an actual game)
  • File IO
  • User Interface(keyboard input, minimaps and the like)

Why am I killing myself doing the least fun all in one chunk? File IO is important but it doesn’t have to be finished before everthing else.

So I am taking a break from .OBJ files and I’m cracking the UI. And it’s the best decision ever, I’m actually having fun again. Imagine that.

The only problem with the UI is designing it showed me how weak my message routing scheme was. Basically I had a class that processed the windows messages with a giant switch statement(another obscenely over complex code leviathan I’m forced to deal with) and it called a series of pure virtual functions(OnCreate, OnDraw, OnMouseClick and the like).

The user was expected to extend this class and over ride those functions to do what he wanted. Which is great, if all of your game will fit in one class. If you want to have different classes handle different events though you were out of luck.

So I changed it to be more of a “message router” that various “message handlers” register with. Everyone who can handle a mouse event and tells the router that he wants to get them will recieve the proper notices.  Yes, I copied Java. But if it ain’t broke…

     Add A Comment

You must be logged in to post a comment.

  • chicago bears 61
  • chad ochocinco height and weight
  • chicago bears posters
  • randy moss height
  • cspan kucinich
  • dope
  • bengals kids jersey
  • greg olsen 2009 calendar
  • chicago bears schedule 2011
  • hp support chat
  • randy moss bio
  • battleship kirishima
  • c span youtube obama
  • gregg olsen books
  • hp support hard drive replacement
  • search dog foundation
  • bengals for adoption
  • tea party for kids
  • la ink phone number
  • battleship bismarck wreck
  • freida pinto miral
  • hp support 530
  • chicago bears 96
  • chad ochocinco yesterday
  • tea party 8 28 09
  • freida pinto chanel
  • wolff
  • randy moss college
  • agents
  • chicago bears number 17
  • wave
  • hp support venezuela
  • chicago bears 2009 roster
  • la ink jabberwocky
  • disconnect
  • bengals merchandise
  • vince young stats
  • la ink corey
  • search and seizure
  • chad ochocinco johnson
  • summertime
  • search engines of the world
  • mtv 25 lame
  • search engines other than google
  • hp support 6930p
  • chicago bears 08 record
  • randy moss 07 08 highlights
  • bombings
  • dis boards cruise
  • bengals images
  • randy moss 98 vikings
  • rooms
  • search 32
  • freida pinto jeansfreida pinto kissing
  • new england patriots 3 4
  • search engines usage statistics 2010
  • whaler
  • search tumblr
  • tea party chicago
  • dis systems
  • zara phillips school
  • meeting
  • search vim
  • connie
  • stadium
  • connecticut 97.7connecticut attorney general
  • connecticut lottery
  • mtv website
  • connecticut airports
  • mtv rivals
  • volunteer
  • denso
  • la ink 03x05
  • zara phillips kids
  • chicago bears 09 draft
  • tea party hats
  • new england patriots 07
  • la ink games online
  • tea party nj
  • gearbox
  • battleship texas hours
  • dis pater
  • new england patriots 84
  • frazer
  • hp support greece
  • chad ochocinco quotes video
  • hull
  • vince young usc
  • geography
  • dis windsor wi
  • 22lr
  • vince young football camp
  • want
  • bea karp
  • chicago bears 17 lisa lampanelli
  • vince young released
  • la ink tattoos
  • search with image
  • bengals xxiii
  • bengals tryouts
  • vince young depression
  • chicago bears 1985
  • tea party agenda
  • kayaking
  • zara phillips baby
  • vince young 3rd 30
  • la ink season 6
  • new england patriots wiki
  • search engines for jobs
  • sense
  • bea test
  • chad ochocinco parents
  • bea luna
  • bea 4603
  • beagle
  • bea 2011 map
  • search operatorssearch people
  • disassembledis boards
  • hp support center
  • tavern
  • sahara
  • la ink season 5 premiere
  • connecticut sun
  • iver
  • anual
  • new england patriots 50
  • bea diy
  • chicago bears football club
  • bengals games
  • chad ochocinco quits football
  • randy moss arrested
  • widget
  • la ink show
  • bengals new uniforms 2012
  • mtv true life
  • battleship wilmington nc
  • zara phillips yachtzara phillips zimbio
  • bengals forum
  • vince young rivals
  • acessories
  • 10000
  • c span shelby foote
  • chicago bears pictures
  • cingular
  • bengals arrests
  • diamondback
  • search 78search 800 numbers
  • aires
  • bengals cheerleaders tryouts 2011
  • dis poem
  • c span kozol
  • dis lyrics
  • accumulator
  • freida pinto 1995
  • mtv overdrive
  • winston
  • la ink bam margera
  • new england patriots xxl
  • sling
  • dillon
  • new england patriots espn blog
  • search google cache
  • search 990 filings
  • hp support assistant review
  • greg olsen twitter
  • chad ochocinco age
  • connecticut lakes
  • search engines compared
  • mtv 30 years
  • vince young dadvince young eagles
  • centurion
  • connecticut 7 day weather forecast
  • bea verdi
  • connecticut education
  • new england patriots helmet
  • search engines 9
  • dist 91
  • cspan washington correspondents dinner 2011
  • chad ochocinco and cheryl burke
  • search domains
  • eyelet
  • whirlpool
  • la ink watch online free
  • battleship classes
  • search engines and flash
  • connecticut 104.1
  • chad ochocinco quickstep
  • intrest
  • mtv cartoons
  • vince young jay cutler
  • protective