This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { _decorator, Component, Node, assetManager, SpriteFrame, Texture2D, Sprite, ImageAsset } from 'cc'; | |
| const { ccclass, property } = _decorator; | |
| @ccclass('Loader') | |
| export class Loader extends Component { | |
| // Atlas inicial | |
| @property(cc.SpriteAtlas) | |
| atlasInicial: cc.SpriteAtlas = null; | |
| start() { | |
| const self = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { _decorator, Component, Node, Input, input, EventKeyboard, KeyCode } from 'cc'; | |
| const { ccclass, property } = _decorator; | |
| @ccclass('InputManager') | |
| export class InputManager extends Component { | |
| private static _instance: InputManager; | |
| private _keyStates: Map<number, boolean> = new Map(); | |
| onLoad(){ | |
| console.log('INPUT MANAGER') | |
| if(InputManager._instance){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { _decorator, Component, input, Input, Vec3, EventKeyboard, KeyCode } from 'cc'; | |
| const { ccclass, property } = _decorator; | |
| @ccclass('PlayerController') | |
| export class PlayerController extends Component { | |
| @property | |
| public moveSpeed: number = 100; | |
| private _direction: Vec3 = new Vec3(); | |
| private _keys: { [keyCode: number]: boolean } = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { _decorator, Component, input, Input, Vec3, EventKeyboard, KeyCode } from 'cc'; | |
| const { ccclass, property } = _decorator; | |
| @ccclass('PlayerController') | |
| export class PlayerController extends Component { | |
| @property | |
| public moveSpeed: number = 100; | |
| private _direction: Vec3 = new Vec3(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "animationcssAnimated": { | |
| "prefix": "anim", | |
| "body":[ | |
| "animate__animated" | |
| ] | |
| }, | |
| "animationcssAnimations": { | |
| "prefix": "anim_", | |
| "body":[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PlayerScript : MonoBehaviour | |
| { | |
| private Rigidbody rb; | |
| //Asignación de variables | |
| void Start() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 20200120192633 | |
| // http://3.17.198.174:8000/api/viajes/8005 | |
| { | |
| "folio": 8005, | |
| "basis_id": 2, | |
| "empleado_id": 2, | |
| "cliente_id": 1, | |
| "mercancia_id": 2, | |
| "servicio_id": 19, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "folio": null, | |
| "basis_id": 1, | |
| "cliente_id": 1, | |
| "mercancia_id": 1, | |
| "servicio_id": 1, | |
| "motriz_id": 1, | |
| "proveedor_id": 41, | |
| "arrastres_id": 2, | |
| "empleadoNombre": "NA", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends KinematicBody2D | |
| # Velocidad a la que se acerca el enemigo | |
| var velocidad = 150 | |
| # Distancia entre el enemigo y el player | |
| var distancia = 250 | |
| var movcont = 0 |
NewerOlder