Tetris figures creation

Alexandr's Avatar


17 Apr, 2013 02:07 PM

Hello everyone,
I've started my first robotlegs application - simple tetris game. And don't sure how to create a figures correctly.

Injector.mapValue( FigureVO, new FigureVO( FigureMatrixFactory.getNewMatrix() ) );

Dont like using static metod.


Injector.singleton( FigureMatrixFactory );
Injector.mapValue( FigureVO, new FigureVO() );

public class FigureVO 
        private var _matrix:Vector.<Vector.<Boolean>>;       
        public var matrixFactory:FigureMatrixFactory

        public function FigureVO() 
            _matrix = matrixFactory.getNewMatrix();// returns a random figure matrix


Doesn't like additional injection.

3/ Some beter ways.

  1. Support Staff 1 Posted by creynders on 22 Apr, 2013 10:42 AM

    creynders's Avatar

    TBH I wouldn't use RL for the in-game parts at all. Merely for delivering the game to the user and everything around it: leaderboards, startscreen, etc.

  2. Support Staff 2 Posted by creynders on 16 May, 2013 09:35 AM

    creynders's Avatar

    I'm closing this for now, if you have any more questions let us know!

  3. creynders closed this discussion on 16 May, 2013 09:35 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac