Implemented event system and resource texture loading.