Thread: Minecraft
View Single Post
Old May 5 2011, 02:55 PM   #831
Jadzia
on holiday
 
Location: England
Re: Minecraft

Robert Maxwell wrote: View Post
The only alternative I can think of is maybe turning your custom vehicle into an entity, which would eliminate all of its block properties.
This is what I meant by 'sprite'.

I'll guess that moving blocks (gravel) are also sprites while they are moving.

chunk update sees that gravel can fall --> delete gravel block -> create gravel sprite -> sprite moves to destination. When sprite arrives at destination --> delete sprite --> create gravel block


which would eliminate all of its block properties.
Not necessarily. The boat-made-of-blocks could be a second instance of the game grid, and the engine renders both game grids ~ superimposed... as long as Notch hasn't defined the game grid using the dreaded singleton pattern.
__________________
.

Last edited by Jadzia; May 5 2011 at 03:12 PM.
Jadzia is offline   Reply With Quote