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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -