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 »

8)
Attachments
Zwidget.zgeproj
Zwidget
(9.18 KiB) Downloaded 1066 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 »

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 »

Updated - Now you can travel with wasd + arrows. Thanks to Kjell's code, H points you at 0,0,0.
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

: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 »

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