This article describes a Virtual Learning Environment based on elements related to Gamification. The environment reproduces situations that can arise in case of fires in buildings; the student exercises in security measures through various situations immersed in the environment, which require a decision in order to get out as fast as possible from a building in flames without suffering any damage. The prototype was developed with RPG Maker, a platform used for the development of role-playing video games