Skip to content

feat: add spike system and add this into TrapSystem#38

Merged
AyakorK merged 1 commit intodevelopfrom
feature/spike_trap
Oct 28, 2024
Merged

feat: add spike system and add this into TrapSystem#38
AyakorK merged 1 commit intodevelopfrom
feature/spike_trap

Conversation

@Thomlam
Copy link
Copy Markdown
Contributor

@Thomlam Thomlam commented Oct 28, 2024

Summary by CodeRabbit

  • Nouvelles fonctionnalités
    • Ajout de nouveaux pièges, y compris spike_prefab et crossbow_up_prefab, dans la scène de jeu.
    • Introduction d'un nouveau mécanisme de piège avec la classe Spike_Trap, permettant de détecter et d'infliger des dégâts aux joueurs.
  • Corrections de bugs
    • Mise à jour des propriétés d'animation pour assurer un comportement correct des pièges.
  • Documentation
    • Création de nouveaux fichiers de métadonnées pour les textures et les préfabriqués, facilitant la gestion des actifs dans le projet.

@Thomlam Thomlam requested a review from AyakorK October 28, 2024 00:39
@Thomlam Thomlam self-assigned this Oct 28, 2024
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Oct 28, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

Les modifications apportées dans cette demande de tirage concernent principalement plusieurs fichiers de préfabriqués et de scripts dans un projet Unity. Les changements incluent l'ajout de nouveaux GameObjects, la mise à jour des composants Tilemap et Animator, ainsi que l'introduction de nouveaux fichiers de métadonnées pour des textures et des préfabriqués. De plus, des ajustements ont été effectués sur les propriétés des objets de scène, notamment des modifications de couleur et de rayonnement lumineux. Ces changements visent à enrichir la fonctionnalité et la structure des éléments du jeu.

Changes

Fichiers Résumé des changements
Assets/Prefabs/RoomSystem/Corridor/Room.prefab Ajout de SpawnPoint avec Transform et MonoBehaviour, mise à jour des composants Tilemap et TilemapRenderer, modifications des indices de sprite.
Assets/Prefabs/Traps/Crossbow/crossbow_up_prefab.prefab Ajout de point_shot, mise à jour de m_ApplyRootMotion dans Animator.
Assets/Prefabs/Traps/Spike/Anims/Spike_Anims.anim Mise à jour de m_LoopTime à 1, ajout de deux événements (OnTriggered, NotTriggered).
Assets/Prefabs/Traps/Spike/Anims/spike*.png.meta Création de nouveaux fichiers de métadonnées pour spike1.png, spike2.png, spike3.png, spike4.png, spike5.png avec divers paramètres d'importation.
Assets/Prefabs/Traps/Spike/Anims/spike_prefab.prefab Ajout d'un nouveau préfabriqué spike_prefab avec Transform, SpriteRenderer, Animator, MonoBehaviour et BoxCollider2D.
Assets/Prefabs/Traps/Spike/spike_prefab.prefab.meta Création d'un fichier de métadonnées pour spike_prefab avec version et GUID.
Assets/Scenes/DevRoom.unity Ajout de plusieurs instances de préfabriqués (spike_prefab, crossbow_up_prefab, etc.) et modifications des propriétés de Global Light 2D.
Assets/Scenes/EmptyRoom_2.unity Modifications des paramètres d'occlusion, de rendu et des objets de scène.
Assets/Scripts/Trap/Spike.meta Création d'un fichier de métadonnées pour le Spike.
Assets/Scripts/Trap/Spike/Spike_Trap.cs Ajout de la classe Spike_Trap avec des méthodes pour gérer les interactions avec le joueur.
Assets/Scripts/Trap/Spike/Spike_Trap.cs.meta Création d'un fichier de métadonnées pour Spike_Trap.cs.
Assets/Scripts/Trap/TrapManager.cs Ajout de spike_prefab au dictionnaire trapPrefabDictionary.

Possibly related PRs

  • feat: Add Socket to props to send them to back-end #8: Modifications dans Room.prefab avec ajout de SpawnPoint, pertinent pour le waitingRoomPrefab introduit dans le PR feat: Add Socket to props to send them to back-end.
  • Feature/add traps #19: Le PR Feature/add traps introduit un nouveau préfabriqué pour un piège à pics, lié aux modifications dans Room.prefab.
  • feat: Adapt Waiting Room #33: Le PR feat: Adapt Waiting Room inclut des changements dans Room.prefab, en rapport direct avec les modifications apportées dans le PR principal.
  • fix: Global rendering fixes #36: Le PR fix: Global rendering fixes comprend des mises à jour dans Room.prefab, en lien avec les ajustements de rendu effectués dans le PR principal.

Suggested reviewers

  • AyakorK

🐇 Dans le jardin, les pièges sont posés,
Les pics et les flèches, tous bien rangés.
Avec des sprites qui brillent sous le soleil,
Les aventuriers tremblent, c'est le réveil !
Dans la salle, les lumières dansent et jouent,
Un monde nouveau, plein de surprises pour vous ! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@AyakorK AyakorK merged commit 3539c9a into develop Oct 28, 2024
@AyakorK AyakorK deleted the feature/spike_trap branch October 28, 2024 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants