Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Entity Loading

Abierto
#132 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@mcgivrer ya está trabajando en esto.

Desde el 21/12/2021.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

documentation enhancement

Load Entities from the level map file to create corresponding GameObject's and mapping.

A sample Entity class to understand what the challenge is:

class Entity {
  String id,
  Image image,
  Map<String, Object> attributes;
}

In the level file test-level-entity.lvl:

{
'name':'test-level-tileset',
'entities': { 'pixelsImage':'images/tiles/tiles01.png',
    'items':[
      { 'id':'P',
        'pos':(0,32),'size':(16,16),
        'attributes':{ 'entity':'player', 'life':5, 'energy':100, 'mana':100}
      }
    ]
 }]
}

The Use Case is:

Feature: Loading a Level

  The `LevelLoader` service is dedicated to load objects from a level file and initialize all corresponding entities.

  Scenario: 02- loading a Entities
    Given the LevelLoader is instanciated
    And the level file "test-level-entity.lvl" is loaded
    Then a level named 'test-level-entity' is defined
    And  Level contains 1 Entities
    And the Entity with id 'P' has a 'entity' attribute with value 'player'
    And the Entity with id 'P' has a 'life' attribute with value 5
    And the Entity with id 'P' has a 'energy' attribute with value 100
    And the Entity with id 'P' has a 'mana' attribute with value 100
Lenguaje dominante
Java
Estrellas
1
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mcgivrer/fromClassToGame

Todos los issues de mcgivrer/fromClassToGame

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.