diff --git a/examples/ezek (44)/clean.bat b/examples/ezek (44)/clean.bat deleted file mode 100644 index 5da68b6..0000000 --- a/examples/ezek (44)/clean.bat +++ /dev/null @@ -1,2 +0,0 @@ -del /s/q out\* -del /s/q res\* \ No newline at end of file diff --git a/examples/ezek (44)/compile.bat b/examples/ezek (44)/compile.bat deleted file mode 100644 index 3ece11f..0000000 --- a/examples/ezek (44)/compile.bat +++ /dev/null @@ -1 +0,0 @@ -node ../../. transpile test -- compile diff --git a/examples/ezek (44)/out/res/base.d b/examples/ezek (44)/out/res/base.d deleted file mode 100644 index 5afd0ad..0000000 --- a/examples/ezek (44)/out/res/base.d +++ /dev/null @@ -1 +0,0 @@ -out/res/base.o: res/base.res \ No newline at end of file diff --git a/examples/ezek (44)/out/res/base.o b/examples/ezek (44)/out/res/base.o deleted file mode 100644 index caf7e65..0000000 Binary files a/examples/ezek (44)/out/res/base.o and /dev/null differ diff --git a/examples/ezek (44)/out/rom_head.bin b/examples/ezek (44)/out/rom_head.bin deleted file mode 100644 index 6151210..0000000 Binary files a/examples/ezek (44)/out/rom_head.bin and /dev/null differ diff --git a/examples/ezek (44)/out/rom_head.o b/examples/ezek (44)/out/rom_head.o deleted file mode 100644 index f2a7472..0000000 Binary files a/examples/ezek (44)/out/rom_head.o and /dev/null differ diff --git a/examples/ezek (44)/out/sega.o b/examples/ezek (44)/out/sega.o deleted file mode 100644 index 445b5b7..0000000 Binary files a/examples/ezek (44)/out/sega.o and /dev/null differ diff --git a/examples/ezek (44)/project/Cursor sprite.png b/examples/ezek (44)/project/Cursor sprite.png deleted file mode 100644 index 155176e..0000000 Binary files a/examples/ezek (44)/project/Cursor sprite.png and /dev/null differ diff --git a/examples/ezek (44)/project/damieng.com - Hourglass font.png b/examples/ezek (44)/project/damieng.com - Hourglass font.png deleted file mode 100644 index b9a56be..0000000 Binary files a/examples/ezek (44)/project/damieng.com - Hourglass font.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v1.png b/examples/ezek (44)/project/ezek44v1.png deleted file mode 100644 index d2f4869..0000000 Binary files a/examples/ezek (44)/project/ezek44v1.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v10.png b/examples/ezek (44)/project/ezek44v10.png deleted file mode 100644 index c445d75..0000000 Binary files a/examples/ezek (44)/project/ezek44v10.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v11.png b/examples/ezek (44)/project/ezek44v11.png deleted file mode 100644 index 2559239..0000000 Binary files a/examples/ezek (44)/project/ezek44v11.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v12.png b/examples/ezek (44)/project/ezek44v12.png deleted file mode 100644 index c5d8b6c..0000000 Binary files a/examples/ezek (44)/project/ezek44v12.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v13.png b/examples/ezek (44)/project/ezek44v13.png deleted file mode 100644 index 9a40080..0000000 Binary files a/examples/ezek (44)/project/ezek44v13.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v14.png b/examples/ezek (44)/project/ezek44v14.png deleted file mode 100644 index afdd610..0000000 Binary files a/examples/ezek (44)/project/ezek44v14.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v15.png b/examples/ezek (44)/project/ezek44v15.png deleted file mode 100644 index b026fa0..0000000 Binary files a/examples/ezek (44)/project/ezek44v15.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v16.png b/examples/ezek (44)/project/ezek44v16.png deleted file mode 100644 index 5c10216..0000000 Binary files a/examples/ezek (44)/project/ezek44v16.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v17.png b/examples/ezek (44)/project/ezek44v17.png deleted file mode 100644 index 8520e75..0000000 Binary files a/examples/ezek (44)/project/ezek44v17.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v18.png b/examples/ezek (44)/project/ezek44v18.png deleted file mode 100644 index 2b61701..0000000 Binary files a/examples/ezek (44)/project/ezek44v18.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v19.png b/examples/ezek (44)/project/ezek44v19.png deleted file mode 100644 index c6cdb3b..0000000 Binary files a/examples/ezek (44)/project/ezek44v19.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v2.png b/examples/ezek (44)/project/ezek44v2.png deleted file mode 100644 index dfb1493..0000000 Binary files a/examples/ezek (44)/project/ezek44v2.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v20.png b/examples/ezek (44)/project/ezek44v20.png deleted file mode 100644 index 544dcc0..0000000 Binary files a/examples/ezek (44)/project/ezek44v20.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v21.png b/examples/ezek (44)/project/ezek44v21.png deleted file mode 100644 index 5f6b93b..0000000 Binary files a/examples/ezek (44)/project/ezek44v21.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v22.png b/examples/ezek (44)/project/ezek44v22.png deleted file mode 100644 index 1bd900d..0000000 Binary files a/examples/ezek (44)/project/ezek44v22.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v23.png b/examples/ezek (44)/project/ezek44v23.png deleted file mode 100644 index 9fb6b04..0000000 Binary files a/examples/ezek (44)/project/ezek44v23.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v24.png b/examples/ezek (44)/project/ezek44v24.png deleted file mode 100644 index 4b6312d..0000000 Binary files a/examples/ezek (44)/project/ezek44v24.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v25.png b/examples/ezek (44)/project/ezek44v25.png deleted file mode 100644 index d3fcee9..0000000 Binary files a/examples/ezek (44)/project/ezek44v25.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v26.png b/examples/ezek (44)/project/ezek44v26.png deleted file mode 100644 index 0dfe090..0000000 Binary files a/examples/ezek (44)/project/ezek44v26.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v27.png b/examples/ezek (44)/project/ezek44v27.png deleted file mode 100644 index f44e40d..0000000 Binary files a/examples/ezek (44)/project/ezek44v27.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v28.png b/examples/ezek (44)/project/ezek44v28.png deleted file mode 100644 index 367b144..0000000 Binary files a/examples/ezek (44)/project/ezek44v28.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v29.png b/examples/ezek (44)/project/ezek44v29.png deleted file mode 100644 index b75e5df..0000000 Binary files a/examples/ezek (44)/project/ezek44v29.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v3.png b/examples/ezek (44)/project/ezek44v3.png deleted file mode 100644 index d4efb98..0000000 Binary files a/examples/ezek (44)/project/ezek44v3.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v30.png b/examples/ezek (44)/project/ezek44v30.png deleted file mode 100644 index 63c8bd6..0000000 Binary files a/examples/ezek (44)/project/ezek44v30.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v31.png b/examples/ezek (44)/project/ezek44v31.png deleted file mode 100644 index 529fc25..0000000 Binary files a/examples/ezek (44)/project/ezek44v31.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v4.png b/examples/ezek (44)/project/ezek44v4.png deleted file mode 100644 index 7b450b6..0000000 Binary files a/examples/ezek (44)/project/ezek44v4.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v5.png b/examples/ezek (44)/project/ezek44v5.png deleted file mode 100644 index bc7aa56..0000000 Binary files a/examples/ezek (44)/project/ezek44v5.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v6.png b/examples/ezek (44)/project/ezek44v6.png deleted file mode 100644 index 4e1689a..0000000 Binary files a/examples/ezek (44)/project/ezek44v6.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v7.png b/examples/ezek (44)/project/ezek44v7.png deleted file mode 100644 index dc8044e..0000000 Binary files a/examples/ezek (44)/project/ezek44v7.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v8.png b/examples/ezek (44)/project/ezek44v8.png deleted file mode 100644 index 00743ef..0000000 Binary files a/examples/ezek (44)/project/ezek44v8.png and /dev/null differ diff --git a/examples/ezek (44)/project/ezek44v9.png b/examples/ezek (44)/project/ezek44v9.png deleted file mode 100644 index 50968e8..0000000 Binary files a/examples/ezek (44)/project/ezek44v9.png and /dev/null differ diff --git a/examples/ezek (44)/project/ready.wav b/examples/ezek (44)/project/ready.wav deleted file mode 100644 index b3037f4..0000000 Binary files a/examples/ezek (44)/project/ready.wav and /dev/null differ diff --git a/examples/ezek (44)/project/startup.choice b/examples/ezek (44)/project/startup.choice deleted file mode 100644 index 8d5af75..0000000 --- a/examples/ezek (44)/project/startup.choice +++ /dev/null @@ -1,97 +0,0 @@ -* font "damieng.com - Hourglass font.png" -* choice - # Ezekiel 44... - * background "ezek44v1.png" - 1 Then he brought me back the way of the gate of the outward sanctuary which looketh toward the east; and it was shut. - *wait 1 - * background "ezek44v2.png" - 2 Then said YHWH unto me; This gate shall be shut, it shall not be opened, and no man shall enter in by it; because YHWH, the God of Israel, hath entered in by it, therefore it shall be shut. - *wait 1 - * background "ezek44v3.png" - 3 It is for the prince; the prince, he shall sit in it to eat bread before YHWH; he shall enter by the way of the porch of that gate, and shall go out by the way of the same. - *wait 1 - * background "ezek44v4.png" - 4 Then brought he me the way of the north gate before the house: and I looked, and, behold, the glory of YHWH filled the house of YHWH: and I fell upon my face. - *wait 1 - * background "ezek44v5.png" - 5 And YHWH said unto me, Son of man, mark well, and behold with thine eyes, and hear with thine ears all that I say unto thee concerning all the ordinances of the house of YHWH, and all the laws thereof; and mark well the entering in of the house, with every going forth of the sanctuary. - *wait 1 - * background "ezek44v6.png" - 6 And thou shalt say to the rebellious, even to the house of Israel, Thus saith the Lord YHWH; O ye house of Israel, let it suffice you of all your abominations, - *wait 1 - * background "ezek44v7.png" - 7 In that ye have brought into my sanctuary strangers, uncircumcised in heart, and uncircumcised in flesh, to be in my sanctuary, to pollute it, even my house, when ye offer my bread, the fat and the blood, and they have broken my covenant because of all your abominations. - *wait 1 - * background "ezek44v8.png" - 8 And ye have not kept the charge of mine holy things: but ye have set keepers of my charge in my sanctuary for yourselves. - *wait 1 - * background "ezek44v9.png" - 9 Thus saith the Lord YHWH; No stranger, uncircumcised in heart, nor uncircumcised in flesh, shall enter into my sanctuary, of any stranger that is among the children of Israel. - *wait 1 - * background "ezek44v10.png" - 10 And the Levites that are gone away far from me, when Israel went astray, which went astray away from me after their idols; they shall even bear their iniquity. - *wait 1 - * background "ezek44v11.png" - 11 Yet they shall be ministers in my sanctuary, having charge at the gates of the house, and ministering to the house: they shall slay the burnt offering and the sacrifice for the people, and they shall stand before them to minister unto them. - *wait 1 - * background "ezek44v12.png" - 12 Because they ministered unto them before their idols, and caused the house of Israel to fall into iniquity; therefore have I lifted up mine hand against them, saith the Lord YHWH, and they shall bear their iniquity. - *wait 1 - * background "ezek44v13.png" - 13 And they shall not come near unto me, to do the office of a priest unto me, nor to come near to any of my holy things, in the most holy place: but they shall bear their shame, and their abominations which they have committed. - *wait 1 - * background "ezek44v14.png" - 14 But I will make them keepers of the charge of the house, for all the service thereof, and for all that shall be done therein. - *wait 1 - * background "ezek44v15.png" - 15 But the priests the Levites, the sons of Zadok, that kept the charge of my sanctuary when the children of Israel went astray from me, they shall come near to me to minister unto me, and they shall stand before me to offer unto me the fat and the blood, saith the Lord YHWH: - *wait 1 - * background "ezek44v16.png" - 16 They shall enter into my sanctuary, and they shall come near to my table, to minister unto me, and they shall keep my charge. - *wait 1 - * background "ezek44v17.png" - 17 And it shall come to pass, that when they enter in at the gates of the inner court, they shall be clothed with linen garments; and no wool shall come upon them, whiles they minister in the gates of the inner court, and within. - *wait 1 - * background "ezek44v18.png" - 18 They shall have linen bonnets upon their heads, and shall have linen breeches upon their loins; they shall not gird themselves with any thing that causeth sweat. - *wait 1 - * background "ezek44v19.png" - 19 And when they go forth into the utter court, even into the utter court to the people, they shall put off their garments wherein they ministered, and lay them in the holy chambers, and they shall put on other garments; and they shall not sanctify the people with their garments. - *wait 1 - * background "ezek44v20.png" - 20 Neither shall they shave their heads, nor suffer their locks to grow long; they shall only poll their heads. - *wait 1 - * background "ezek44v21.png" - 21 Neither shall any priest drink wine, when they enter into the inner court. - *wait 1 - * background "ezek44v22.png" - 22 Neither shall they take for their wives a widow, nor her that is put away: but they shall take maidens of the seed of the house of Israel, or a widow that had a priest before. - *wait 1 - * background "ezek44v23.png" - 23 And they shall teach my people the difference between the holy and profane, and cause them to discern between the unclean and the clean. - *wait 1 - * background "ezek44v24.png" - 24 And in controversy they shall stand in judgment; and they shall judge it according to my judgments: and they shall keep my laws and my statutes in all mine assemblies; and they shall hallow my sabbaths. - *wait 1 - * background "ezek44v25.png" - 25 And they shall come at no dead person to defile themselves: but for father, or for mother, or for son, or for daughter, for brother, or for sister that hath had no husband, they may defile themselves. - *wait 1 - * background "ezek44v26.png" - 26 And after he is cleansed, they shall reckon unto him seven days. - *wait 1 - * background "ezek44v27.png" - 27 And in the day that he goeth into the sanctuary, unto the inner court, to minister in the sanctuary, he shall offer his sin offering, saith the Lord YHWH. - *wait 1 - * background "ezek44v28.png" - 28 And it shall be unto them for an inheritance: I am their inheritance: and ye shall give them no possession in Israel: I am their possession. - *wait 1 - * background "ezek44v29.png" - 29 They shall eat the meat offering, and the sin offering, and the trespass offering; and every dedicated thing in Israel shall be theirs. - *wait 1 - * background "ezek44v30.png" - 30 And the first of all the firstfruits of all things, and every oblation of all, of every sort of your oblations, shall be the priest's: ye shall also give unto the priest the first of your dough, that he may cause the blessing to rest in thine house. - *wait 1 - * background "ezek44v31.png" - 31 The priests shall not eat of any thing that is dead of itself, or torn, whether it be fowl or beast. - *wait 1 -* goto_scene startup \ No newline at end of file diff --git a/examples/ezek (44)/project/test.choice b/examples/ezek (44)/project/test.choice deleted file mode 100644 index a125b24..0000000 --- a/examples/ezek (44)/project/test.choice +++ /dev/null @@ -1,2 +0,0 @@ -We are in another scene! -* goto_scene startup \ No newline at end of file diff --git a/examples/ezek (44)/res/base.h b/examples/ezek (44)/res/base.h deleted file mode 100644 index e509e6c..0000000 --- a/examples/ezek (44)/res/base.h +++ /dev/null @@ -1,5 +0,0 @@ -#ifndef _RES_BASE_H_ -#define _RES_BASE_H_ - - -#endif // _RES_BASE_H_ diff --git a/examples/ezek (44)/res/base.res b/examples/ezek (44)/res/base.res deleted file mode 100644 index e69de29..0000000 diff --git a/examples/ezek (44)/res/damieng_com_Hourglass_font_png.png b/examples/ezek (44)/res/damieng_com_Hourglass_font_png.png deleted file mode 100644 index b9a56be..0000000 Binary files a/examples/ezek (44)/res/damieng_com_Hourglass_font_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v10_png.png b/examples/ezek (44)/res/ezek44v10_png.png deleted file mode 100644 index 338d64e..0000000 Binary files a/examples/ezek (44)/res/ezek44v10_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v11_png.png b/examples/ezek (44)/res/ezek44v11_png.png deleted file mode 100644 index 2559239..0000000 Binary files a/examples/ezek (44)/res/ezek44v11_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v12_png.png b/examples/ezek (44)/res/ezek44v12_png.png deleted file mode 100644 index f56a49f..0000000 Binary files a/examples/ezek (44)/res/ezek44v12_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v13_png.png b/examples/ezek (44)/res/ezek44v13_png.png deleted file mode 100644 index 53da017..0000000 Binary files a/examples/ezek (44)/res/ezek44v13_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v14_png.png b/examples/ezek (44)/res/ezek44v14_png.png deleted file mode 100644 index 2c26824..0000000 Binary files a/examples/ezek (44)/res/ezek44v14_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v15_png.png b/examples/ezek (44)/res/ezek44v15_png.png deleted file mode 100644 index b026fa0..0000000 Binary files a/examples/ezek (44)/res/ezek44v15_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v16_png.png b/examples/ezek (44)/res/ezek44v16_png.png deleted file mode 100644 index 20f45ae..0000000 Binary files a/examples/ezek (44)/res/ezek44v16_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v17_png.png b/examples/ezek (44)/res/ezek44v17_png.png deleted file mode 100644 index 3e9ce7d..0000000 Binary files a/examples/ezek (44)/res/ezek44v17_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v18_png.png b/examples/ezek (44)/res/ezek44v18_png.png deleted file mode 100644 index 4489fdf..0000000 Binary files a/examples/ezek (44)/res/ezek44v18_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v19_png.png b/examples/ezek (44)/res/ezek44v19_png.png deleted file mode 100644 index c703709..0000000 Binary files a/examples/ezek (44)/res/ezek44v19_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v1_png.png b/examples/ezek (44)/res/ezek44v1_png.png deleted file mode 100644 index d7c231d..0000000 Binary files a/examples/ezek (44)/res/ezek44v1_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v20_png.png b/examples/ezek (44)/res/ezek44v20_png.png deleted file mode 100644 index dd651f9..0000000 Binary files a/examples/ezek (44)/res/ezek44v20_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v21_png.png b/examples/ezek (44)/res/ezek44v21_png.png deleted file mode 100644 index 19e2c00..0000000 Binary files a/examples/ezek (44)/res/ezek44v21_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v22_png.png b/examples/ezek (44)/res/ezek44v22_png.png deleted file mode 100644 index 1bd900d..0000000 Binary files a/examples/ezek (44)/res/ezek44v22_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v23_png.png b/examples/ezek (44)/res/ezek44v23_png.png deleted file mode 100644 index c63d905..0000000 Binary files a/examples/ezek (44)/res/ezek44v23_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v24_png.png b/examples/ezek (44)/res/ezek44v24_png.png deleted file mode 100644 index c1eb2a7..0000000 Binary files a/examples/ezek (44)/res/ezek44v24_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v25_png.png b/examples/ezek (44)/res/ezek44v25_png.png deleted file mode 100644 index 2a8e161..0000000 Binary files a/examples/ezek (44)/res/ezek44v25_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v26_png.png b/examples/ezek (44)/res/ezek44v26_png.png deleted file mode 100644 index 795d7f2..0000000 Binary files a/examples/ezek (44)/res/ezek44v26_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v27_png.png b/examples/ezek (44)/res/ezek44v27_png.png deleted file mode 100644 index 3f09474..0000000 Binary files a/examples/ezek (44)/res/ezek44v27_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v28_png.png b/examples/ezek (44)/res/ezek44v28_png.png deleted file mode 100644 index ed33aed..0000000 Binary files a/examples/ezek (44)/res/ezek44v28_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v29_png.png b/examples/ezek (44)/res/ezek44v29_png.png deleted file mode 100644 index 02ea4f3..0000000 Binary files a/examples/ezek (44)/res/ezek44v29_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v2_png.png b/examples/ezek (44)/res/ezek44v2_png.png deleted file mode 100644 index 71ae730..0000000 Binary files a/examples/ezek (44)/res/ezek44v2_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v30_png.png b/examples/ezek (44)/res/ezek44v30_png.png deleted file mode 100644 index 63c8bd6..0000000 Binary files a/examples/ezek (44)/res/ezek44v30_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v31_png.png b/examples/ezek (44)/res/ezek44v31_png.png deleted file mode 100644 index 529fc25..0000000 Binary files a/examples/ezek (44)/res/ezek44v31_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v3_png.png b/examples/ezek (44)/res/ezek44v3_png.png deleted file mode 100644 index 68c1aac..0000000 Binary files a/examples/ezek (44)/res/ezek44v3_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v4_png.png b/examples/ezek (44)/res/ezek44v4_png.png deleted file mode 100644 index f559093..0000000 Binary files a/examples/ezek (44)/res/ezek44v4_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v5_png.png b/examples/ezek (44)/res/ezek44v5_png.png deleted file mode 100644 index 216a4fd..0000000 Binary files a/examples/ezek (44)/res/ezek44v5_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v6_png.png b/examples/ezek (44)/res/ezek44v6_png.png deleted file mode 100644 index df69515..0000000 Binary files a/examples/ezek (44)/res/ezek44v6_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v7_png.png b/examples/ezek (44)/res/ezek44v7_png.png deleted file mode 100644 index cc578c7..0000000 Binary files a/examples/ezek (44)/res/ezek44v7_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v8_png.png b/examples/ezek (44)/res/ezek44v8_png.png deleted file mode 100644 index 42415de..0000000 Binary files a/examples/ezek (44)/res/ezek44v8_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/ezek44v9_png.png b/examples/ezek (44)/res/ezek44v9_png.png deleted file mode 100644 index 50968e8..0000000 Binary files a/examples/ezek (44)/res/ezek44v9_png.png and /dev/null differ diff --git a/examples/ezek (44)/res/gfx.res b/examples/ezek (44)/res/gfx.res deleted file mode 100644 index 595dbda..0000000 --- a/examples/ezek (44)/res/gfx.res +++ /dev/null @@ -1,32 +0,0 @@ -IMAGE damieng_com_Hourglass_font_png "damieng_com_Hourglass_font_png.png" APLIB NONE -IMAGE ezek44v1_png "ezek44v1_png.png" APLIB ALL -IMAGE ezek44v2_png "ezek44v2_png.png" APLIB ALL -IMAGE ezek44v3_png "ezek44v3_png.png" APLIB ALL -IMAGE ezek44v4_png "ezek44v4_png.png" APLIB ALL -IMAGE ezek44v5_png "ezek44v5_png.png" APLIB ALL -IMAGE ezek44v6_png "ezek44v6_png.png" APLIB ALL -IMAGE ezek44v7_png "ezek44v7_png.png" APLIB ALL -IMAGE ezek44v8_png "ezek44v8_png.png" APLIB ALL -IMAGE ezek44v9_png "ezek44v9_png.png" APLIB ALL -IMAGE ezek44v10_png "ezek44v10_png.png" APLIB ALL -IMAGE ezek44v11_png "ezek44v11_png.png" APLIB ALL -IMAGE ezek44v12_png "ezek44v12_png.png" APLIB ALL -IMAGE ezek44v13_png "ezek44v13_png.png" APLIB ALL -IMAGE ezek44v14_png "ezek44v14_png.png" APLIB ALL -IMAGE ezek44v15_png "ezek44v15_png.png" APLIB ALL -IMAGE ezek44v16_png "ezek44v16_png.png" APLIB ALL -IMAGE ezek44v17_png "ezek44v17_png.png" APLIB ALL -IMAGE ezek44v18_png "ezek44v18_png.png" APLIB ALL -IMAGE ezek44v19_png "ezek44v19_png.png" APLIB ALL -IMAGE ezek44v20_png "ezek44v20_png.png" APLIB ALL -IMAGE ezek44v21_png "ezek44v21_png.png" APLIB ALL -IMAGE ezek44v22_png "ezek44v22_png.png" APLIB ALL -IMAGE ezek44v23_png "ezek44v23_png.png" APLIB ALL -IMAGE ezek44v24_png "ezek44v24_png.png" APLIB ALL -IMAGE ezek44v25_png "ezek44v25_png.png" APLIB ALL -IMAGE ezek44v26_png "ezek44v26_png.png" APLIB ALL -IMAGE ezek44v27_png "ezek44v27_png.png" APLIB ALL -IMAGE ezek44v28_png "ezek44v28_png.png" APLIB ALL -IMAGE ezek44v29_png "ezek44v29_png.png" APLIB ALL -IMAGE ezek44v30_png "ezek44v30_png.png" APLIB ALL -IMAGE ezek44v31_png "ezek44v31_png.png" APLIB ALL \ No newline at end of file diff --git a/examples/ezek (44)/res/music.res b/examples/ezek (44)/res/music.res deleted file mode 100644 index e69de29..0000000 diff --git a/examples/ezek (44)/res/sound.res b/examples/ezek (44)/res/sound.res deleted file mode 100644 index e69de29..0000000 diff --git a/examples/ezek (44)/res/sprite.res b/examples/ezek (44)/res/sprite.res deleted file mode 100644 index e69de29..0000000 diff --git a/examples/ezek (44)/run.bat b/examples/ezek (44)/run.bat deleted file mode 100644 index e78292f..0000000 --- a/examples/ezek (44)/run.bat +++ /dev/null @@ -1 +0,0 @@ -out\rom.bin diff --git a/examples/ezek (44)/src/boot/rom_head.c b/examples/ezek (44)/src/boot/rom_head.c deleted file mode 100644 index 583b7b4..0000000 --- a/examples/ezek (44)/src/boot/rom_head.c +++ /dev/null @@ -1,35 +0,0 @@ - -#include "genesis.h" - -__attribute__((externally_visible)) -const ROMHeader rom_header = { -#if (ENABLE_BANK_SWITCH != 0) - "SEGA SSF ", -#elif (ENABLE_MEGAWIFI != 0) - "SEGA MEGAWIFI ", -#else - "SEGA MEGA DRIVE ", -#endif - "Unnamed Author ", - "Unnamed Story ", - "Unnamed Story ", - "GM 00000000-00", - 0x000, - "JD ", - 0x00000000, -#if (ENABLE_BANK_SWITCH != 0) - 0x003FFFFF, -#else - 0x000FFFFF, -#endif - 0xE0FF0000, - 0xE0FFFFFF, - "RA", - 0xF820, - 0x00200000, - 0x0020FFFF, - " ", - "Made with choice4genesis 0.14.2 ", - "JUE " -}; - diff --git a/examples/ezek (44)/src/boot/sega.s b/examples/ezek (44)/src/boot/sega.s deleted file mode 100644 index 4ee1eb5..0000000 --- a/examples/ezek (44)/src/boot/sega.s +++ /dev/null @@ -1,500 +0,0 @@ -#include "task_cst.h" - -.section .text.keepboot - -*------------------------------------------------------- -* -* Sega startup code for the GNU Assembler -* Translated from: -* Sega startup code for the Sozobon C compiler -* Written by Paul W. Lee -* Modified by Charles Coty -* Modified by Stephane Dallongeville -* -*------------------------------------------------------- - - .globl rom_header - - .org 0x00000000 - -_Start_Of_Rom: -_Vecteurs_68K: - dc.l __stack /* Stack address */ - dc.l _Entry_Point /* Program start address */ - dc.l _Bus_Error - dc.l _Address_Error - dc.l _Illegal_Instruction - dc.l _Zero_Divide - dc.l _Chk_Instruction - dc.l _Trapv_Instruction - dc.l _Privilege_Violation - dc.l _Trace - dc.l _Line_1010_Emulation - dc.l _Line_1111_Emulation - dc.l _Error_Exception, _Error_Exception, _Error_Exception, _Error_Exception - dc.l _Error_Exception, _Error_Exception, _Error_Exception, _Error_Exception - dc.l _Error_Exception, _Error_Exception, _Error_Exception, _Error_Exception - dc.l _Error_Exception, _INT, _EXTINT, _INT - dc.l _HINT - dc.l _INT - dc.l _VINT - dc.l _INT - dc.l _trap_0 /* Resume supervisor task */ - dc.l _INT,_INT,_INT,_INT,_INT,_INT,_INT - dc.l _INT,_INT,_INT,_INT,_INT,_INT,_INT,_INT - dc.l _INT,_INT,_INT,_INT,_INT,_INT,_INT,_INT - dc.l _INT,_INT,_INT,_INT,_INT,_INT,_INT,_INT - -rom_header: - .incbin "out/rom_head.bin", 0, 0x100 - -_Entry_Point: - move #0x2700,%sr - tst.l 0xa10008 - bne.s SkipJoyDetect - - tst.w 0xa1000c - -SkipJoyDetect: - bne.s SkipSetup - - lea Table,%a5 - movem.w (%a5)+,%d5-%d7 - movem.l (%a5)+,%a0-%a4 -* Check Version Number - move.b -0x10ff(%a1),%d0 - andi.b #0x0f,%d0 - beq.s WrongVersion - -* Sega Security Code (SEGA) - move.l #0x53454741,0x2f00(%a1) -WrongVersion: -* Read from the control port to cancel any pending read/write command - move.w (%a4),%d0 - -* Configure a USER_STACK_LENGTH bytes user stack at bottom, and system stack on top of it - move %sp, %usp - sub #USER_STACK_LENGTH, %sp - - move.w %d7,(%a1) - move.w %d7,(%a2) - -* Jump to initialisation process now... - - jmp _start_entry - -SkipSetup: - jmp _reset_entry - - -Table: - dc.w 0x8000,0x3fff,0x0100 - dc.l 0xA00000,0xA11100,0xA11200,0xC00000,0xC00004 - - -*------------------------------------------------ -* -* interrupt functions -* -*------------------------------------------------ - -registersDump: - move.l %d0,registerState+0 - move.l %d1,registerState+4 - move.l %d2,registerState+8 - move.l %d3,registerState+12 - move.l %d4,registerState+16 - move.l %d5,registerState+20 - move.l %d6,registerState+24 - move.l %d7,registerState+28 - move.l %a0,registerState+32 - move.l %a1,registerState+36 - move.l %a2,registerState+40 - move.l %a3,registerState+44 - move.l %a4,registerState+48 - move.l %a5,registerState+52 - move.l %a6,registerState+56 - move.l %a7,registerState+60 - rts - -busAddressErrorDump: - move.w 4(%sp),ext1State - move.l 6(%sp),addrState - move.w 10(%sp),ext2State - move.w 12(%sp),srState - move.l 14(%sp),pcState - jmp registersDump - -exception4WDump: - move.w 4(%sp),srState - move.l 6(%sp),pcState - move.w 10(%sp),ext1State - jmp registersDump - -exceptionDump: - move.w 4(%sp),srState - move.l 6(%sp),pcState - jmp registersDump - - -_Bus_Error: - jsr busAddressErrorDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l busErrorCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Address_Error: - jsr busAddressErrorDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l addressErrorCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Illegal_Instruction: - jsr exception4WDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l illegalInstCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Zero_Divide: - jsr exceptionDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l zeroDivideCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Chk_Instruction: - jsr exception4WDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l chkInstCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Trapv_Instruction: - jsr exception4WDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l trapvInstCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Privilege_Violation: - jsr exceptionDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l privilegeViolationCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Trace: - jsr exceptionDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l traceCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Line_1010_Emulation: -_Line_1111_Emulation: - jsr exceptionDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l line1x1xCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_Error_Exception: - jsr exceptionDump - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l errorExceptionCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_INT: - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l intCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_EXTINT: - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l eintCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_HINT: - movem.l %d0-%d1/%a0-%a1,-(%sp) - move.l hintCB, %a0 - jsr (%a0) - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -_VINT: - btst #5, (%sp) /* Skip context switch if not in user task */ - bne.s no_user_task - - tst.w task_lock - bne.s 1f - move.w #0, -(%sp) /* TSK_superPend() will return 0 */ - bra.s unlock /* If lock == 0, supervisor task is not locked */ - -1: - bcs.s no_user_task /* If lock < 0, super is locked with infinite wait */ - subq.w #1, task_lock /* Locked with wait, subtract 1 to the frame count */ - bne.s no_user_task /* And do not unlock if we did not reach 0 */ - move.w #1, -(%sp) /* TSK_superPend() will return 1 */ - -unlock: - /* Save bg task registers (excepting a7, that is stored in usp) */ - move.l %a0, task_regs - lea (task_regs + UTSK_REGS_LEN), %a0 - movem.l %d0-%d7/%a1-%a6, -(%a0) - - move.w (%sp)+, %d0 /* Load return value previously pushed to stack */ - - move.w (%sp)+, task_sr /* Pop user task sr and pc, and save them, */ - move.l (%sp)+, task_pc /* so they can be restored later. */ - movem.l (%sp)+, %d2-%d7/%a2-%a6 /* Restore non clobberable registers */ - -no_user_task: - /* At this point, we always have in the stack the SR and PC of the task */ - /* we want to jump after processing the interrupt, that might be the */ - /* point where we came from (if there is no context switch) or the */ - /* supervisor task (if we unlocked it). */ - - movem.l %d0-%d1/%a0-%a1,-(%sp) - ori.w #0x0001, intTrace /* in V-Int */ - addq.l #1, vtimer /* increment frame counter (more a vint counter) */ - btst #3, VBlankProcess+1 /* PROCESS_XGM_TASK ? (use VBlankProcess+1 as btst is a byte operation) */ - beq.s no_xgm_task - - jsr XGM_doVBlankProcess /* do XGM vblank task */ - -no_xgm_task: - btst #1, VBlankProcess+1 /* PROCESS_BITMAP_TASK ? (use VBlankProcess+1 as btst is a byte operation) */ - beq.s no_bmp_task - - jsr BMP_doVBlankProcess /* do BMP vblank task */ - -no_bmp_task: - move.l vintCB, %a0 /* load user callback */ - jsr (%a0) /* call user callback */ - andi.w #0xFFFE, intTrace /* out V-Int */ - movem.l (%sp)+,%d0-%d1/%a0-%a1 - rte - -*------------------------------------------------ -* -* Copyright (c) 1988 by Sozobon, Limited. Author: Johann Ruegg -* -* Permission is granted to anyone to use this software for any purpose -* on any computer system, and to redistribute it freely, with the -* following restrictions: -* 1) No charge may be made other than reasonable charges for reproduction. -* 2) Modified versions must be clearly marked as such. -* 3) The authors are not responsible for any harmful consequences -* of using this software, even if they result from defects in it. -* -*------------------------------------------------ - -ldiv: - move.l 4(%a7),%d0 - bpl ld1 - neg.l %d0 -ld1: - move.l 8(%a7),%d1 - bpl ld2 - neg.l %d1 - eor.b #0x80,4(%a7) -ld2: - bsr i_ldiv /* d0 = d0/d1 */ - tst.b 4(%a7) - bpl ld3 - neg.l %d0 -ld3: - rts - -lmul: - move.l 4(%a7),%d0 - bpl lm1 - neg.l %d0 -lm1: - move.l 8(%a7),%d1 - bpl lm2 - neg.l %d1 - eor.b #0x80,4(%a7) -lm2: - bsr i_lmul /* d0 = d0*d1 */ - tst.b 4(%a7) - bpl lm3 - neg.l %d0 -lm3: - rts - -lrem: - move.l 4(%a7),%d0 - bpl lr1 - neg.l %d0 -lr1: - move.l 8(%a7),%d1 - bpl lr2 - neg.l %d1 -lr2: - bsr i_ldiv /* d1 = d0%d1 */ - move.l %d1,%d0 - tst.b 4(%a7) - bpl lr3 - neg.l %d0 -lr3: - rts - -ldivu: - move.l 4(%a7),%d0 - move.l 8(%a7),%d1 - bsr i_ldiv - rts - -lmulu: - move.l 4(%a7),%d0 - move.l 8(%a7),%d1 - bsr i_lmul - rts - -lremu: - move.l 4(%a7),%d0 - move.l 8(%a7),%d1 - bsr i_ldiv - move.l %d1,%d0 - rts -* -* A in d0, B in d1, return A*B in d0 -* -i_lmul: - move.l %d3,%a2 /* save d3 */ - move.w %d1,%d2 - mulu %d0,%d2 /* d2 = Al * Bl */ - - move.l %d1,%d3 - swap %d3 - mulu %d0,%d3 /* d3 = Al * Bh */ - - swap %d0 - mulu %d1,%d0 /* d0 = Ah * Bl */ - - add.l %d3,%d0 /* d0 = (Ah*Bl + Al*Bh) */ - swap %d0 - clr.w %d0 /* d0 = (Ah*Bl + Al*Bh) << 16 */ - - add.l %d2,%d0 /* d0 = A*B */ - move.l %a2,%d3 /* restore d3 */ - rts -* -*A in d0, B in d1, return A/B in d0, A%B in d1 -* -i_ldiv: - tst.l %d1 - bne nz1 - -* divide by zero -* divu #0,%d0 /* cause trap */ - move.l #0x80000000,%d0 - move.l %d0,%d1 - rts -nz1: - move.l %d3,%a2 /* save d3 */ - cmp.l %d1,%d0 - bhi norm - beq is1 -* AB and B is not 0 -norm: - cmp.l #1,%d1 - bne not1 -* B==1, so ret A, rem 0 - clr.l %d1 - move.l %a2,%d3 /* restore d3 */ - rts -* check for A short (implies B short also) -not1: - cmp.l #0xffff,%d0 - bhi slow -* A short and B short -- use 'divu' - divu %d1,%d0 /* d0 = REM:ANS */ - swap %d0 /* d0 = ANS:REM */ - clr.l %d1 - move.w %d0,%d1 /* d1 = REM */ - clr.w %d0 - swap %d0 - move.l %a2,%d3 /* restore d3 */ - rts -* check for B short -slow: - cmp.l #0xffff,%d1 - bhi slower -* A long and B short -- use special stuff from gnu - move.l %d0,%d2 - clr.w %d2 - swap %d2 - divu %d1,%d2 /* d2 = REM:ANS of Ahi/B */ - clr.l %d3 - move.w %d2,%d3 /* d3 = Ahi/B */ - swap %d3 - - move.w %d0,%d2 /* d2 = REM << 16 + Alo */ - divu %d1,%d2 /* d2 = REM:ANS of stuff/B */ - - move.l %d2,%d1 - clr.w %d1 - swap %d1 /* d1 = REM */ - - clr.l %d0 - move.w %d2,%d0 - add.l %d3,%d0 /* d0 = ANS */ - move.l %a2,%d3 /* restore d3 */ - rts -* A>B, B > 1 -slower: - move.l #1,%d2 - clr.l %d3 -moreadj: - cmp.l %d0,%d1 - bhs adj - add.l %d2,%d2 - add.l %d1,%d1 - bpl moreadj -* we shifted B until its >A or sign bit set -* we shifted #1 (d2) along with it -adj: - cmp.l %d0,%d1 - bhi ltuns - or.l %d2,%d3 - sub.l %d1,%d0 -ltuns: - lsr.l #1,%d1 - lsr.l #1,%d2 - bne adj -* d3=answer, d0=rem - move.l %d0,%d1 - move.l %d3,%d0 - move.l %a2,%d3 /* restore d3 */ - rts diff --git a/examples/ezek (44)/src/generated_scripts.c b/examples/ezek (44)/src/generated_scripts.c deleted file mode 100644 index 338bfef..0000000 --- a/examples/ezek (44)/src/generated_scripts.c +++ /dev/null @@ -1,120 +0,0 @@ -#include "vn_engine.h" - - - - - -void *VS_startup(); - - -void *VS_startup() { - - VN_font(&damieng_com_Hourglass_font_png); - { - VN_flushText(); - VN_option(1, "Ezekiel 44..."); - switch (VN_choice()) { - case 1: - VN_background(&ezek44v1_png); - VN_text("1 Then he brought me back the way of the gate of the outward sanctuary which looketh toward the east; and it was shut."); - VN_wait(1); - VN_background(&ezek44v2_png); - VN_text("2 Then said YHWH unto me; This gate shall be shut, it shall not be opened, and no man shall enter in by it; because YHWH, the God of Israel, hath entered in by it, therefore it shall be shut."); - VN_wait(1); - VN_background(&ezek44v3_png); - VN_text("3 It is for the prince; the prince, he shall sit in it to eat bread before YHWH; he shall enter by the way of the porch of that gate, and shall go out by the way of the same."); - VN_wait(1); - VN_background(&ezek44v4_png); - VN_text("4 Then brought he me the way of the north gate before the house: and I looked, and, behold, the glory of YHWH filled the house of YHWH: and I fell upon my face."); - VN_wait(1); - VN_background(&ezek44v5_png); - VN_text("5 And YHWH said unto me, Son of man, mark well, and behold with thine eyes, and hear with thine ears all that I say unto thee concerning all the ordinances of the house of YHWH, and all the laws thereof; and mark well the entering in of the house, with every going forth of the sanctuary."); - VN_wait(1); - VN_background(&ezek44v6_png); - VN_text("6 And thou shalt say to the rebellious, even to the house of Israel, Thus saith the Lord YHWH; O ye house of Israel, let it suffice you of all your abominations,"); - VN_wait(1); - VN_background(&ezek44v7_png); - VN_text("7 In that ye have brought into my sanctuary strangers, uncircumcised in heart, and uncircumcised in flesh, to be in my sanctuary, to pollute it, even my house, when ye offer my bread, the fat and the blood, and they have broken my covenant because of all your abominations."); - VN_wait(1); - VN_background(&ezek44v8_png); - VN_text("8 And ye have not kept the charge of mine holy things: but ye have set keepers of my charge in my sanctuary for yourselves."); - VN_wait(1); - VN_background(&ezek44v9_png); - VN_text("9 Thus saith the Lord YHWH; No stranger, uncircumcised in heart, nor uncircumcised in flesh, shall enter into my sanctuary, of any stranger that is among the children of Israel."); - VN_wait(1); - VN_background(&ezek44v10_png); - VN_text("10 And the Levites that are gone away far from me, when Israel went astray, which went astray away from me after their idols; they shall even bear their iniquity."); - VN_wait(1); - VN_background(&ezek44v11_png); - VN_text("11 Yet they shall be ministers in my sanctuary, having charge at the gates of the house, and ministering to the house: they shall slay the burnt offering and the sacrifice for the people, and they shall stand before them to minister unto them."); - VN_wait(1); - VN_background(&ezek44v12_png); - VN_text("12 Because they ministered unto them before their idols, and caused the house of Israel to fall into iniquity; therefore have I lifted up mine hand against them, saith the Lord YHWH, and they shall bear their iniquity."); - VN_wait(1); - VN_background(&ezek44v13_png); - VN_text("13 And they shall not come near unto me, to do the office of a priest unto me, nor to come near to any of my holy things, in the most holy place: but they shall bear their shame, and their abominations which they have committed."); - VN_wait(1); - VN_background(&ezek44v14_png); - VN_text("14 But I will make them keepers of the charge of the house, for all the service thereof, and for all that shall be done therein."); - VN_wait(1); - VN_background(&ezek44v15_png); - VN_text("15 But the priests the Levites, the sons of Zadok, that kept the charge of my sanctuary when the children of Israel went astray from me, they shall come near to me to minister unto me, and they shall stand before me to offer unto me the fat and the blood, saith the Lord YHWH:"); - VN_wait(1); - VN_background(&ezek44v16_png); - VN_text("16 They shall enter into my sanctuary, and they shall come near to my table, to minister unto me, and they shall keep my charge."); - VN_wait(1); - VN_background(&ezek44v17_png); - VN_text("17 And it shall come to pass, that when they enter in at the gates of the inner court, they shall be clothed with linen garments; and no wool shall come upon them, whiles they minister in the gates of the inner court, and within."); - VN_wait(1); - VN_background(&ezek44v18_png); - VN_text("18 They shall have linen bonnets upon their heads, and shall have linen breeches upon their loins; they shall not gird themselves with any thing that causeth sweat."); - VN_wait(1); - VN_background(&ezek44v19_png); - VN_text("19 And when they go forth into the utter court, even into the utter court to the people, they shall put off their garments wherein they ministered, and lay them in the holy chambers, and they shall put on other garments; and they shall not sanctify the people with their garments."); - VN_wait(1); - VN_background(&ezek44v20_png); - VN_text("20 Neither shall they shave their heads, nor suffer their locks to grow long; they shall only poll their heads."); - VN_wait(1); - VN_background(&ezek44v21_png); - VN_text("21 Neither shall any priest drink wine, when they enter into the inner court."); - VN_wait(1); - VN_background(&ezek44v22_png); - VN_text("22 Neither shall they take for their wives a widow, nor her that is put away: but they shall take maidens of the seed of the house of Israel, or a widow that had a priest before."); - VN_wait(1); - VN_background(&ezek44v23_png); - VN_text("23 And they shall teach my people the difference between the holy and profane, and cause them to discern between the unclean and the clean."); - VN_wait(1); - VN_background(&ezek44v24_png); - VN_text("24 And in controversy they shall stand in judgment; and they shall judge it according to my judgments: and they shall keep my laws and my statutes in all mine assemblies; and they shall hallow my sabbaths."); - VN_wait(1); - VN_background(&ezek44v25_png); - VN_text("25 And they shall come at no dead person to defile themselves: but for father, or for mother, or for son, or for daughter, for brother, or for sister that hath had no husband, they may defile themselves."); - VN_wait(1); - VN_background(&ezek44v26_png); - VN_text("26 And after he is cleansed, they shall reckon unto him seven days."); - VN_wait(1); - VN_background(&ezek44v27_png); - VN_text("27 And in the day that he goeth into the sanctuary, unto the inner court, to minister in the sanctuary, he shall offer his sin offering, saith the Lord YHWH."); - VN_wait(1); - VN_background(&ezek44v28_png); - VN_text("28 And it shall be unto them for an inheritance: I am their inheritance: and ye shall give them no possession in Israel: I am their possession."); - VN_wait(1); - VN_background(&ezek44v29_png); - VN_text("29 They shall eat the meat offering, and the sin offering, and the trespass offering; and every dedicated thing in Israel shall be theirs."); - VN_wait(1); - VN_background(&ezek44v30_png); - VN_text("30 And the first of all the firstfruits of all things, and every oblation of all, of every sort of your oblations, shall be the priest's: ye shall also give unto the priest the first of your dough, that he may cause the blessing to rest in thine house."); - VN_wait(1); - VN_background(&ezek44v31_png); - VN_text("31 The priests shall not eat of any thing that is dead of itself, or torn, whether it be fowl or beast."); - VN_wait(1); - VN_flushText(); - break; - } - VN_flushText(); - } - VN_flushText(); - return VS_startup; - VN_flushText(); - return VS_startup; -} \ No newline at end of file diff --git a/examples/ezek (44)/src/main.c b/examples/ezek (44)/src/main.c deleted file mode 100644 index 018b151..0000000 --- a/examples/ezek (44)/src/main.c +++ /dev/null @@ -1,19 +0,0 @@ -#include "genesis.h" -#include "vn_engine.h" - -extern void *VS_startup(); - -int main(bool hardReset) -{ - VN_init(); - - scriptFunction nextScript = VS_startup; - - while(TRUE) - { - nextScript = nextScript(); - SYS_doVBlankProcess(); - } - - return 0; -} diff --git a/examples/ezek (44)/src/vn_engine.c b/examples/ezek (44)/src/vn_engine.c deleted file mode 100644 index 82e9e11..0000000 --- a/examples/ezek (44)/src/vn_engine.c +++ /dev/null @@ -1,471 +0,0 @@ -#include "genesis.h" -#include "string.h" -#include "vn_engine.h" - -#define TEXT_BUFFER_LEN (8192) -#define CHOICE_MAX (8) - -#define PCM_CHANNEL (64) - -#define BACKGROUND_PAL PAL0 -#define TEXT_PAL PAL1 -#define IMAGE_PAL PAL2 - -char textBuffer[TEXT_BUFFER_LEN]; - -struct { - u16 x, y, w, h; - Sprite *cursor; -} window; - -struct { - u16 x, y; - u16 tileNumber; -} imageInfo; - -struct { - bool up; - bool down; - bool next; -} input; - -struct { - int width, height; - char** lines; -} msgLines; - -struct { - u16 baseTileNumber; - Image *image; -} backgroundInfo; - -char *bufferWrappedTextLine(char *s, int x, int y, int w) { - char *o, ch; - int tx = x; - - char *startOfLine, *endOfLine; - int currW, bestW; - - startOfLine = s; - - currW = 0; - bestW = 0; - - // Skips initial spaces for current line - for (o = startOfLine; *o == ' '; o++) { - msgLines.lines[y][tx] = ' '; - tx++; - currW++; - bestW = currW; - } - startOfLine = o; - - if (!*o || currW >= w) { - msgLines.lines[y][tx] = 0; - return 0; - } - - // Scans words that fit the maximum width - endOfLine = startOfLine; - for (o = startOfLine; *o && *o != '\n' && currW <= w; o++) { - ch = *o; - if (ch == ' ') { - currW++; - if (currW <= w) { - endOfLine = o; - bestW = currW; - } - } else { - currW++; - } - } - - // Corner cases: last word in string, and exceedingly long words - if (currW <= w || !bestW) { - endOfLine = o; - bestW = currW; - } - - // Renders the line of text - for (o = startOfLine; o <= endOfLine; o++) { - ch = *o; - if (ch && ch != '\n') { - msgLines.lines[y][tx] = ch; - tx++; - } - } - - // Skips spaces at end of line. - while (*endOfLine == ' ') { - endOfLine++; - } - - // Skips one line break, if necessary. - if (*endOfLine == '\n') { - endOfLine++; - } - - msgLines.lines[y][tx] = 0; - return *endOfLine ? endOfLine : 0; -} - -char *bufferWrappedText(char *s, int x, int y, int w, int h) { - char *o = s; - int ty = y; - int maxY = y + h; - - while (o && *o && ty < maxY) { - o = bufferWrappedTextLine(o, x, ty, w); - ty++; - } - - return o; -} - -void bufferResize(int width, int height) { - unsigned char i; - - // Skip if the width/height haven't changed - if (msgLines.width == width && msgLines.height == height) return; - - // Deallocate existing buffers - if (msgLines.lines) { - for (i = 0; i != msgLines.height; i++) { - free(msgLines.lines[i]); - } - free(msgLines.lines); - msgLines.lines = 0; - } - - // Reallocate according to the new size - - msgLines.width = width; - msgLines.height = height; - msgLines.lines = malloc(msgLines.height * sizeof(char *)); - - for (i = 0; i != msgLines.height; i++) { - msgLines.lines[i] = malloc(msgLines.width + 1); - msgLines.lines[i][0] = 0; - } -} - -void bufferClear() { - unsigned char i; - - for (i = 0; i != msgLines.height; i++) { - msgLines.lines[i][0] = 0; - } -} - -void VN_joyHandler(u16 joy, u16 changed, u16 state) { - if (joy != JOY_1) return; - - input.up = !!(state & BUTTON_UP); - input.down = !!(state & BUTTON_DOWN); - input.next = !!(state & (BUTTON_A | BUTTON_B | BUTTON_C)); -} - -void VN_doVBlank() { - SPR_update(); - SYS_doVBlankProcess(); -} - -void VN_waitJoyRelease() { - do { - VN_doVBlank(); - } while(input.up || input.down || input.next); -} - -void VN_waitPressNext() { - do { - VN_doVBlank(); - } while(!input.next); - VN_waitJoyRelease(); -} - -void VN_init() { - JOY_init(); - JOY_setEventHandler(&VN_joyHandler); - - memset(textBuffer, 0, TEXT_BUFFER_LEN); - - msgLines.width = 0; - msgLines.height = 0; - msgLines.lines = 0; - - VN_windowDefault(); - window.cursor = NULL; - bufferResize(window.w, window.h); - - SPR_init(0, 0, 0); - - backgroundInfo.image = NULL; - backgroundInfo.baseTileNumber = 256; - - imageInfo.x = 0; - imageInfo.y = 0; - imageInfo.tileNumber = backgroundInfo.baseTileNumber; - - XGM_setLoopNumber(-1); - XGM_setForceDelayDMA(TRUE); - - VDP_setTextPalette(TEXT_PAL); - VDP_drawText("choice4genesis v0.13.2", 17, 27); -} - - -void VN_showImage(const Image *image, VDPPlane plane, u16 palNum, u16 x, u16 y) { - VDP_loadTileSet(image->tileset, imageInfo.tileNumber, DMA); - VDP_setTileMapEx(plane, image->tilemap, TILE_ATTR_FULL(palNum, FALSE, FALSE, FALSE, imageInfo.tileNumber), - x, y, 0, 0, image->tilemap->w, image->tilemap->h, CPU); - VDP_setPalette(palNum, (u16*)image->palette->data); - imageInfo.tileNumber += image->tileset->numTile; -} - -void VN_background(const Image *image) { - imageInfo.tileNumber = backgroundInfo.baseTileNumber; - backgroundInfo.image = image; - VN_showImage(image, BG_B, BACKGROUND_PAL, 0, 0); -} - -void VN_image(const Image *image, const u8 flags) { - if (flags & LAYER_FOREGROUND) VN_showImage(image, BG_A, IMAGE_PAL, imageInfo.x, imageInfo.y); - if (flags & LAYER_BACKGROUND) VN_showImage(image, BG_B, IMAGE_PAL, imageInfo.x, imageInfo.y); -} - -void VN_imageAt(u16 x, u16 y) { - imageInfo.x = x; - imageInfo.y = y; -} - -void VN_font(const Image *image) { - VDP_loadFont(image->tileset, DMA); - VDP_setPalette(TEXT_PAL, (u16*)image->palette->data); -} - - -void VN_music(const u8 *music, const u32 length, const u8 driverFlags) { - if (driverFlags == SOUND_ADPCM) { - SND_startPlay_2ADPCM(music, length, SOUND_PCM_CH1, TRUE); - } else { - XGM_startPlay(music); - } -} - -void VN_sound(const u8 *sound, const u32 length, const u8 driverFlags) { - if (driverFlags == SOUND_ADPCM) { - SND_startPlay_2ADPCM(sound, length, SOUND_PCM_CH2, FALSE); - } else { - XGM_stopPlayPCM (SOUND_PCM_CH2); - XGM_setPCM(PCM_CHANNEL, sound, length); - XGM_startPlayPCM(PCM_CHANNEL, 1, SOUND_PCM_CH2); - } -} - -void VN_stop(const u8 flags) { - if (!flags || (flags & STOP_MUSIC)) XGM_stopPlay(); - if (!flags || (flags & STOP_SOUND)) XGM_stopPlayPCM (SOUND_PCM_CH2); -} - - -void VN_clearWindow() { - VDP_clearTextAreaEx(BG_A, TILE_ATTR_FULL(TEXT_PAL, FALSE, FALSE, FALSE, 0x05A0), window.x, window.y, window.w, window.h, DMA); -} - -void VN_textStart() { - if (textBuffer[0]) strcat(textBuffer, "\n"); -} - -void VN_textString(char *text) { - strcat(textBuffer, text); -} - -void VN_textInt(int number) { - char number_buffer[12]; - sprintf(number_buffer, "%d", number); - VN_textString(number_buffer); -} - -void VN_text(char *text) { - VN_textStart(); - VN_textString(text); -} - -void VN_flushText() { - VN_flush(0); -} - -void VN_blinkNextCursor() { - if (window.cursor) { - SPR_setPosition (window.cursor, (window.x + window.w - 1) * 8, (window.y + window.h - 1) * 8); - SPR_setVisibility(window.cursor, VISIBLE); - } - VN_waitPressNext(); - if (window.cursor) SPR_setVisibility(window.cursor, HIDDEN); -} - -void VN_flush(const u8 flags) { - if (!textBuffer[0]) return; - - bufferResize(window.w, window.h); - - bool shouldWait = !(flags & FLUSH_NOWAIT); - - for (char *textToDisplay = textBuffer; textToDisplay;) { - if (shouldWait) VN_waitJoyRelease(); - - // Word wrapping - - bufferClear(); - textToDisplay = bufferWrappedText(textToDisplay, 0, 0, msgLines.width, msgLines.height); - - // Draw the text on screen - - VN_clearWindow(); - - u16 y = window.y; - for (int i = 0; i != msgLines.height; i++) { - VDP_drawText(msgLines.lines[i], window.x, y); - y++; - } - - // Wait button press - if (shouldWait) VN_blinkNextCursor(); - } - - strclr(textBuffer); -} - -void VN_clear(const u8 flags) { - if (flags & LAYER_FOREGROUND) { - VDP_clearPlane(BG_A, TRUE); - imageInfo.tileNumber = backgroundInfo.baseTileNumber + - (backgroundInfo.image ? backgroundInfo.image->tileset->numTile : 0); - } - if (flags & LAYER_BACKGROUND) { - VDP_clearPlane(BG_B, TRUE); - imageInfo.tileNumber = backgroundInfo.baseTileNumber; - backgroundInfo.image = NULL; - } - if (flags & LAYER_WINDOW) VN_clearWindow(); -} - -void VN_wait(u16 duration) { - VN_flushText(); - for (u16 remainining = duration; remainining; remainining--) { - for (u16 i = 60; i; i--) VN_doVBlank(); - } -} - -void VN_option(u8 number, char *text) { - VN_text(text); - - char *d = textBuffer + strlen(textBuffer); - - *d = 1; - d++; - *d = number; - d++; - *d = 0; -} - -u8 VN_choice() { - if (!textBuffer[0]) return 0; - - VN_clearWindow(); - - u8 choiceCount = 0; - u16 cursorPositons[CHOICE_MAX]; - u8 choiceValues[CHOICE_MAX]; - - char lineBuffer[41]; - char *o = textBuffer; - u16 y = window.y; - - while (*o) { - char *d = lineBuffer; - for (;*o && *o != '\n' && *o != 1; o++, d++) *d = *o; - *d = 0; - - if (*o == 1) { - o++; - cursorPositons[choiceCount] = y; - choiceValues[choiceCount] = *o; - choiceCount++; - o++; - } - - if (*o) o++; - - VDP_drawText(lineBuffer, window.x + 1, y); - y++; - } - strclr(textBuffer); - - VN_waitJoyRelease(); - - u8 choiceNumber = 0; - VDP_drawText(">", window.x, cursorPositons[0]); - while (!input.next) { - VN_doVBlank(); - if (input.up || input.down) { - VDP_drawText(" ", window.x, cursorPositons[choiceNumber]); - - // Previous choice? - if (input.up) { - if (choiceNumber) { - choiceNumber--; - } else { - choiceNumber = choiceCount - 1; - } - } - - // Next choice? - if (input.down) { - choiceNumber++; - if (choiceNumber >= choiceCount) choiceNumber = 0; - } - - VDP_drawText(">", window.x, cursorPositons[choiceNumber]); - VN_waitJoyRelease(); - } - } - - VN_waitJoyRelease(); - - return choiceValues[choiceNumber]; -} - -void VN_windowDefault() { - window.x = 1; - window.y = 20; - window.w = 38; - window.h = 6; -} - -void VN_windowFrom(u16 x, u16 y) { - window.x = x; - window.y = y; -} - -void VN_windowTo(u16 x, u16 y) { - VN_windowSize(x - window.x + 1, y - window.y + 1); -} - -void VN_windowSize(u16 w, u16 h) { - window.w = w; - window.h = h; -} - -void VN_cursor(const SpriteDefinition *sprite) { - if (window.cursor) { - SPR_releaseSprite(window.cursor); - window.cursor = NULL; - } - - if (!sprite) return; - - window.cursor = SPR_addSprite(sprite, 0, 0, TILE_ATTR(TEXT_PAL, 1, FALSE, FALSE)); - SPR_setVisibility(window.cursor, HIDDEN); - VDP_setPalette(TEXT_PAL, (u16*) sprite->palette->data); -} \ No newline at end of file diff --git a/examples/ezek (44)/src/vn_engine.h b/examples/ezek (44)/src/vn_engine.h deleted file mode 100644 index 4b9b252..0000000 --- a/examples/ezek (44)/src/vn_engine.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef _VN_ENGINE_H -#define _VN_ENGINE_H - -#include "genesis.h" -#include "gfx.h" -#include "sprite.h" -#include "music.h" - -#define STOP_MUSIC (1) -#define STOP_SOUND (2) - -#define FLUSH_NOWAIT (1) - -#define LAYER_FOREGROUND (1) -#define LAYER_BACKGROUND (2) -#define LAYER_WINDOW (4) - -#define SOUND_XGM (1) -#define SOUND_ADPCM (2) - -extern void VN_init(); - -extern void VN_background(const Image *image); -extern void VN_image(const Image *image, const u8 flags); -extern void VN_imageAt(u16 x, u16 y); -extern void VN_font(const Image *image); - -extern void VN_music(const u8 *music, const u32 length, const u8 driverFlags); -extern void VN_sound(const u8 *sound, const u32 length, const u8 driverFlags); -extern void VN_stop(const u8 flags); - -extern void VN_textStart(); -extern void VN_textString(char *text); -extern void VN_textInt(int number); -extern void VN_text(char *text); -extern void VN_flushText(); -extern void VN_flush(const u8 flags); -extern void VN_clear(const u8 flags); -extern void VN_wait(u16 duration); - -extern void VN_windowDefault(); -extern void VN_windowFrom(u16 x, u16 y); -extern void VN_windowTo(u16 x, u16 y); -extern void VN_windowSize(u16 w, u16 h); -extern void VN_cursor(const SpriteDefinition *sprite); - -extern void VN_option(u8 number, char *text); -extern u8 VN_choice(); - -typedef void * (*scriptFunction)(); - -#endif /* _VN_ENGINE_H */