Zwidget

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Zwidget

Post by y offs et » Tue Feb 09, 2010 10:07 am

8)
Attachments
Zwidget.zgeproj
Zwidget
(9.18 KiB) Downloaded 759 times
Last edited by y offs et on Wed Feb 10, 2010 4:47 pm, edited 2 times in total.

User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post by jph_wacheski » Tue Feb 09, 2010 3:55 pm

This is a handy thing,. I would like to see a vector style one build into the editor.
iterationGAMES.com

User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Post by y offs et » Wed Feb 10, 2010 9:01 am

Updated - Now you can travel with wasd + arrows. Thanks to Kjell's code, H points you at 0,0,0.

User avatar
Kjell
Posts: 1715
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell » Wed Feb 10, 2010 12:49 pm

:arrow:

Some suggestions regarding the Model.

- Put all your pixel information in a single bitmap.
- Construct a single mesh instead of relying on multiple RenderTransform + RenderSprite calls.
- Don't rely on Alpha/One blending for masking, as it will make your object semi-transparent / invisible on a white background.
- Although it doesn't matter ( since you're only using a single clone ), there's no reason to put any resources in Definitions unless each clone needs their own individual instance of those components. So just put them in Content instead.

K

User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Post by y offs et » Wed Feb 10, 2010 4:20 pm

Kjell - All true, except...

When you finish your project (if it ever finishes :) ), you just delete the widget model.

Updated again - this time I'm finished.

P takes you back to start position.
Although it doesn't matter ( since you're only using a single clone ), there's no reason to put any resources in Definitions unless each clone needs their own individual instance of those components. So just put them in Content instead.
Now, here is a point of discussion. Yes, this is the best way at runTime, but during designTime it sets up "dependencies" which complicate "undo" decisions. With drag and drop, the designer can move bitmaps and materials to content easily before final publication, and reap the performance benefits then. The difference shows up in loading time and frame rates.

Like I said before,

viewtopic.php?t=540

ZGE rocks!

Post Reply