Re: Sub Commander Project (Don)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> 
> Don, 
> I did a little reworking on your example code.
> 
> The main change was to separate painting the screen from the updating of the
> pixmap. They should be indepenant in order to process Windows messages
> properly.
> You should only paint the screen when Windows or your program needs to. The
> pixmap updating happens outside of that event. To demostrate this you can now
> use the Numpad + and - keys to speed up and slow down the speed of the radar
> sweep. 
> 
> Another change you need to do is to make the ship's movement independant of
> the radar speed. In fact, to 'move the dot' you need to calculate the position
> of the submarine and the position of the ship(s) based on their individual
> vectors
> and speed then translate the difference between the vectors onto the radar
> scope.
> 
> 
> Also, I've added a cheesy effect of having the 'dot' fade after the sweep.
> 
> You cold also add a grid or vector lines onto the scope's screen to aid the
> player.

><snip> 

> -- 
> Derek Parnell
> Melbourne, Australia
> Skype name: derek.j.parnell

smile

You've just been added to The Sub Commander Project's list of contributors

Chris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu