This is point and click puzzle solving game made by Games For Kings (G4K) about escaping the Fantasy Castle.
Wait for big yellow CONTINUE sign in the top right corner to start the game..
The rule of thumb is to click everywhere in order to get as much hints as possible to be used later for problem solving. One of the first puzzles is the one with the clock. The first image you saw was one with 4 cubes depicting numbers 1,2,3 and 4. These numbers you must use to "program" the clock, by using left button to set hours and right button to "memorize" those values. This is how you get your first key. More less you will be playing with numbers throughout the whole game, collecting keys and yellow and red stars. Keys are used to open secret doors, so you can get more stars. In the end, you should place all those stars on a designated spots marked on the exit door, and this is how you eventually get out. If you ever get stuck, there's an original video walkthrough below, made by g4k.