Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 11-07-2009, 01:23 PM   #1 (permalink)
Jr. Member
 
BlackFox's Avatar
 
Join Date: Mar 2009
Posts: 489
BlackFox is on a distinguished road
Default Drawing in layers?

Does the draw method draw things by their placement in code? Like I would draw a car and then an overaly over it and the zombie would draw under the overlay. Is that how it works?
__________________




BlackFox is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 11-07-2009, 01:33 PM   #2 (permalink)
lost in paradise with rae
Support Team
Moderator
Expert Zuner
 
Red Sky's Avatar
 
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,660
Red Sky is just really niceRed Sky is just really niceRed Sky is just really nice
Send a message via MSN to Red Sky
Default

whatever order you draw them in is how they will appear
(if you draw a car first, the car will be underneath)





Red Sky is offline   Reply With Quote
Old 11-07-2009, 06:35 PM   #3 (permalink)
Jr. Member
 
BlackFox's Avatar
 
Join Date: Mar 2009
Posts: 489
BlackFox is on a distinguished road
Default

Oh, is that how DiNo made his games so 3D looking?
__________________




BlackFox is offline   Reply With Quote
Old 11-07-2009, 09:16 PM   #4 (permalink)
lost in paradise with rae
Support Team
Moderator
Expert Zuner
 
Red Sky's Avatar
 
Join Date: Nov 2007
Location: Pennsylvania
Posts: 2,660
Red Sky is just really niceRed Sky is just really niceRed Sky is just really nice
Send a message via MSN to Red Sky
Default

I'm not entirely sure how DiNo made his games, but from experience with a tile engine, I know you can draw things in layers, that is, a background layer, a layer with some things that you walk over, another layer that the player is on, as well as collision objects, and finally a top layer that would have things like tree tops so that it appears that you are going under something, even though you really aren't, it's just drawn on top of the player.





Red Sky is offline   Reply With Quote
Old 11-08-2009, 11:11 AM   #5 (permalink)
Jr. Member
 
BlackFox's Avatar
 
Join Date: Mar 2009
Posts: 489
BlackFox is on a distinguished road
Default

Hmm.. That's pretty cool.
__________________




BlackFox is offline   Reply With Quote
Reply

Bookmarks

Thread Tools