Adaptation au nouvel ecs #3
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: raphael/ponguito#3
Loading…
Reference in a new issue
No description provided.
Delete branch "ecs-friendly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +1,224 @@
"""
Module d'exemple de l'utilisation du moteur de jeu.
"""
Fichier inutile
@ -0,0 +88,4 @@
class Player1Score(int):
"""
Composant qui represente le score du joueur 1.
"""
C'est une ressource
@ -0,0 +94,4 @@
class Player2Score(int):
"""
Composant qui represente le score du joueur 2.
"""
C'est une ressource
@ -0,0 +100,4 @@
class Score:
"""
Composant qui represente les scores affichés a l'ecran.
"""
Plutot: marque l'entité comme étant l'affichage du score
@ -0,0 +106,4 @@
class StartAnimation(float):
"""
Composant qui represente un le moment auxquel on a lancé l'animation
"""
Préciser de quel animation on parle
@ -0,0 +112,4 @@
def __spawn_elements(world: World):
"""
La fonction permet de initializer les ellements de la scene.
"""
elllllllllements
@ -0,0 +202,4 @@
def __spawn_ball(world: World):
# Balle
Manque de doc
@ -0,0 +218,4 @@
def __bounce_on_player(a: Entity, b: Entity):
if Player1 in b or Player2 in b:
Manque de doc
@ -0,0 +229,4 @@
def __bounce_on_player_simul(a: Entity, b: Entity):
__bounce_on_player(a, b)
Manque de doc
@ -0,0 +234,4 @@
def __bounce_on_left_wall(a: Entity, b: Entity):
if Ball in b:
Manque de doc
@ -0,0 +243,4 @@
def __bounce_on_right_wall(a: Entity, b: Entity):
if Ball in b:
Manque de doc
@ -0,0 +282,4 @@
La fontion permet de faire bouger les entitees vers le haut ou vers le bas.
"""
__move_down(world)
__move_up(world)
Pourquoi faire un système qui appelle les deux autre ? Pourquoi ne pas simplement les mettre directement dans la scène ?
@ -0,0 +288,4 @@
def _update_bot(world: World):
"""
Test.
"""
...
@ -0,0 +313,4 @@
bar[Position].y += (diff / abs(diff)) * 300 * world[Delta]
# bar[Position].y += diff
bar.set(physics.Solid())
entity.destroy()
Manque de commentaires pour la compréhension
réglé plus tard
@ -0,0 +345,4 @@
def __update_animation(world: World):
for animation in world.query(StartAnimation):
Manque de doc
Mon reuf t'as pas tout résolu
ecs-friendlyto Adaptation nouvel ecsAdaptation nouvel ecsto Adaptation au nouvel ecs