Sure, here's a playable sample game called "My Secret Magic Power Awakens."
In this simple game, you control a character represented by a blue square. You can move the character to the right using the right arrow key. The objective is to defeat the enemy, represented by a red square, by pressing the spacebar when the character is close enough to the enemy.
Once you defeat the enemy, you will receive a victory message. If you reach the right end of the game container (90% progress), you will receive a congratulations message.
Please note that this is a very basic implementation to showcase the game mechanics. In a full-fledged game, you would have more elaborate gameplay, magic types, skill trees, and interactions.