c++ - Create a 2D world -
c++ - Create a 2D world -
ive got project school create tanks game ( worms or else )
with little research found best way create 2d world hold bitmap of 1 , 0 switch between background , foreground. load 2 images 1 background worms game sea or , image map placed on it. because of bitmap if shoot replace 1 in 0 there whole in map..
with qt draw canvas display bitmap.
i don't find how programme this, maybe help me out, start?
what you're describing 1's , 0's called transparency , bitmaps can made encode info in them, known alpha channel.
the key break downwards problem smaller parts , tackle each little part - question broad. so, break downwards this:
create window draw bitmap on window (no transparency - it's background) draw sec bitmap transparency modify transparency of sec bitmap @ run time c++ 2d
Comments
Post a Comment