Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Game Graphics w/ Scrolling Background

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2008, 02:51 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default Game Graphics w/ Scrolling Background

I've just started playing with building a game app. I need to include a scrolling background - think vintage arcade games like Defender or Lunar Lander.

I also need to draw game graphics in the foreground.

So far, the scrolling background works great. The foreground graphics also work great. The problem is that my background is an image control; if it's visible, then the foreground graphics are hidden.

So I'm guessing that an image control lays over the form, and whatever's on the form gets hidden by the image, whether I draw of the form's ForeLayer or not. True?

My apologies for regressing back to 'beginner' status on this one - I haven't yet had much opportunity to explore the graphic functions.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #2 (permalink)  
Old 03-28-2008, 11:15 AM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 49
Send a message via MSN to hung Send a message via Yahoo to hung Send a message via Skype™ to hung
Default

why not use drawer from imagelib to draw the background then drawer to draw your object in front.

e.g.
' background
drawer_draw2("bmpbg", mapwin.x, mapwin.y, mapwin.w, mapwin.h, 0,0, false)
' then object1
drawer_draw2("bmp1", 0,0,bmp1.Width,bmp1.Height, ptc.x,ptc.y, true)
__________________
Yours,

Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth
Reply With Quote
  #3 (permalink)  
Old 03-28-2008, 11:30 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Gary
In addition, make sure not to miss out the sprite.dll library.
Reply With Quote
  #4 (permalink)  
Old 03-28-2008, 01:14 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default

Thanks, gentlemen - I've actually made some progress on this. See this link: http://www.basic4ppc.com/forum/questions-windows-mobile/2027-please-help-test-program.html

I am actually using an approach similar to what was suggested; the Sprite library, while extremely cool, will not work for this application.

Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrolling Tape Calculator erzee Share Your Creations 0 07-22-2008 11:10 AM
Scrolling TextBox with HardwareKeys Elrick Questions (Windows Mobile) 8 04-17-2008 04:46 PM
A graphics program (first step) forisco Code Samples & Tips 1 12-23-2007 05:11 AM
Animating a piece of graphics? AcerN30 Questions (Windows Mobile) 5 12-19-2007 04:52 AM
Graphics Library Nachtfalke Questions (Windows Mobile) 1 05-11-2007 12:50 PM


All times are GMT. The time now is 09:01 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0