GithubHelp home page GithubHelp logo

southpawvinny / marionettedemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cocos/cocos-example-marionette

0.0 0.0 0.0 109.27 MB

PowerShell 0.24% TypeScript 81.88% CMake 4.50% C++ 11.54% C 1.84%

marionettedemo's Introduction

DEMO Project: Ms. Amoy

δΈ­ζ–‡

This project is to demonstrate the use of Cocos Creator Marionette animation system.

Introduction

The project has only one main scene, located in assets/Scenes/Main.scene.

Once the game starts, the player can control the heroine "Ms. Amoy" (hereafter called the heroine) in a simple battle from the first perspective.

General Rules

Please focus on the consistency of the action - almost all action switches are smooth.

Monsters

Several monster characters will be generated in the scene, and they will behave as follows:

  • Standby and move to a random location after a random amount of time on standby.

  • Once they find the heroine approaching, they will enter battle mode and chase the heroine.

    • After close enough to the heroine and fully facing the heroine, they will begin to attack.

    • They will re-enter the standby state when they are too far away from the heroine.

Heroine

The heroine can be freely controlled by the player:

  • [When using the mouse] Use the right mouse button to turn the direction the heroine is facing, the left mouse button to turn the camera angle, and the mouse wheel to adjust the camera distance.

  • [When using the touch screen] Use one touch point to move left and right to turn the direction the heroine is facing, use two touch points (approximately) to move in the same direction to turn the camera angle, and use two touch points to draw closer or farther to adjust the camera distance.

  • Use the joystick Image description to control the direction of movement (without changing the orientation).

  • Use the attack button Image description to attack.

  • Use the reload button Image description to reload ammo (presentation only, no real logic).

  • Use the crouch button Image description to crouch or uncrouch.

  • Use the jump button Image description to jump.

  • Use the aim button Image description to enter or exit aiming mode.

There are the following rules to be noted:

  • Aiming and un-aiming are available in both crouching and standing modes.

  • Movement is possible in both crouching and standing mode, but the motion is different.

  • After switching to normal standby mode and waiting for a moment, you will switch to another normal standby action.

Combat System

  • Both the heroine and monsters have directional and distance restrictions on their attacks. Monsters deal actual damage if both direction and distance are met after 0.5 seconds (foreswing) of launching an attack action. The heroine attack has no foreswing.

  • Both the heroine and monsters will play the corresponding animation after taking damage.

  • After launching an attack, the damage determination will not be interrupted by switching to another action (such as taking damage).

Known Issues

  • Both monsters and the heroine may move unrealistically (slide) when they are hit.

What is Amoy?

Amoy is the old English name for the Chinese city of Xiamen.

marionettedemo's People

Contributors

shrinktofit avatar southpawvinny avatar holycanvas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.