Flash 3D Sokoban prototype with Flare3D – Textures

The Flash 3D Sokoban prototype with Flare3D is growing, and this time I applied some textures to game elements.

The following script, which will be explained after I’ll made the same thing with Away3D, show three interesting Flare3D features:

* Applying textures on a Cube.
* Applying textures only on some faces of a Cube.
* Applying different materials to the same Cube, then apply filters on them

here it is the source code:

and this is the result:

Move use LEFT, RIGHT and UP arrow keys to move the player. As you can see, the player and the crate goals aren’t textured, moreover the crates do not change texture when over the crate goals. This happens because I plan to add new features to such elements.

Download the source code.

  • Dylan

    I can already see a flash version of minecraft in the making :)

  • Scott

    Looks great, shame about the occasional (but consistent) rendering glitches with the goal squares.

  • Cool example, but two things. I wish the rotation was somehow different so it didn’t involve the square going through the walls/crates, and, more importantly, if you hold right and up, you can spin through the walls out in to nothing.

  • Bmanatee

    if you hold down left and up you go through the wall

  • Ispooky

    Cool

  • Strange i thought applying textures would fix the polygon bug on the floor. Maybe a bug in the vertices!?

    The support for the mousewheel to scroll in/out is nice, even tho my browser still gets the “scroll-signal” too – but i guess that shouldnt be a problem to prevent.

  • marcus

    just a simple question about ‘can move / hit test’.

    if this is not tile game, how can I test if a move is allow or not allowed? Can I use some ‘physics engine’ (like Flave etc) to determine if a move is allowed?

    regards.

  • Looks great, shame about the occasional (but consistent) rendering glitches with the goal squares.

  • tenksss….:)