コード例 #1
0
        private static void Add(ref DragonBody body)
        {
            DragonBody newBody = new DragonBody(1200, 1200, 50, 50, 0, 0, true, body, null);

            GameViewModel.actors.Add(newBody);
            body.Next = newBody;
            body      = newBody;
        }
コード例 #2
0
        public static void DragonInit(int height, int length)
        {
            DragonHead head = new DragonHead(1050, height, 50, 50, 0, 0, true);
            DragonBody body = new DragonBody(1200, 1200, 50, 50, 0, 0, true, head, null);

            GameViewModel.actors.Add(body);

            for (int i = 0; i < length; i++)
            {
                Add(ref body);
            }

            GameViewModel.actors.Add(head);
        }