コード例 #1
0
ファイル: Wall.cs プロジェクト: balazsmolnar/C64-IL-Compiler
        private static void BuildBasicWall(Colors color)
        {
            C64.FillMemory(C64Address.FromLabel("screenMemory+$01B8"), WallChar, 0);
            C64.FillMemory(C64Address.FromLabel("screenMemory+$02B8"), WallChar, 0);
            C64.FillMemory(C64Address.FromLabel("screenMemory+$0300"), WallChar, 0);

            C64.FillMemory(C64Address.FromLabel("colorMemory+$01B8"), (uint)color, 0);
            C64.FillMemory(C64Address.FromLabel("colorMemory+$02B8"), (uint)color, 0);
            C64.FillMemory(C64Address.FromLabel("colorMemory+$0300"), (uint)color, 0);

            C64.CopyMemory(C64Address.FromLabel("screenMemory+$0320"), C64Address.FromLabel("tbl_WallBaseChars"), 199);

            uint d = 0;

            for (uint y = 3; y < 11; y++)
            {
                for (uint x = 37; x < 40; x++)
                {
                    var b = C64.GetMemory(C64Address.FromLabel("tbl_LevelEndBellChars"), d);

                    C64.SetChar(x, y, b, Colors.Grey3);
                    d++;
                }
            }
        }
コード例 #2
0
        public void Draw()
        {
            uint d = 0;

            for (uint y = 0; y < 2; y++)
            {
                for (uint x = 0; x < 40; x++)
                {
                    var b = C64.GetMemory(C64Address.FromLabel("txt_PlayerStats"), d);
                    var c = C64.GetMemory(C64Address.FromLabel("tbl_PlayerStatsColours"), d);

                    C64.SetChar(x, y, b, (Colors)c);
                    d++;
                }
            }
        }
コード例 #3
0
ファイル: Wall.cs プロジェクト: balazsmolnar/C64-IL-Compiler
        private static void BuildEmptyPit(uint startX)
        {
            uint d = 0;

            for (uint y = 10; y < 14; y++)
            {
                for (uint x = startX; x < startX + 4; x++)
                {
                    var b = C64.GetMemory(C64Address.FromLabel("tbl_EmptyPitChars"), d);
                    var c = C64.GetMemory(C64Address.FromLabel("tbl_EmptyPitCharColours"), d);

                    C64.SetChar(x, y, b, (Colors)c);
                    d++;
                }
            }
        }