Flickering problem
Hi all,
I'm trying to do a Flappy bird clone on classic amiga. I want the game to be played inside a moveable window attatched to a custom screen. For the bird Im using a simple hardware sprite. the background is using an Image structure and the floor which is drawn on top of the background is also an Image struture. I wanted to use an Image instead of sprites for simplicity. Everything is working ok except the floor flickers as its being drawn. Is there an easy way to do a double buffer using intuition usig the DrawImage() method? p.s. here's a version I wrote in js http://natashaz-place.bugs3.com Just wanted to see if I can do similar on amiga:) Thanks :xmas:xmas:xmas |
Not able to offer much advice regarding the programming but why would you use a moveable window instead of having the game fullscreen?
|
Quote:
|
Quote:
|
Quote:
Be warned that an off-screen rastport does not do automatic clipping, so make sure that you don't draw outside of the bitmap's storage. |
Quote:
|
Quote:
Had me baffled for a while though as it was just painting a blank window This was down to the last parameter of the BltBitMapRastPort method as I was just passing it a 0 instead of 0xC0 for a straight copy. Thanks |
All times are GMT +2. The time now is 16:43. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.