Advertisement
ZoriaRPG

New ZScript Shortlist Beta 52 (Late)

May 2nd, 2017
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.43 KB | None | 0 0
  1. // Beta 52
  2.  
  3. /////////////////
  4. /// ZScript ///
  5. /////////////////
  6.  
  7. The ZScript language now supports function pointers, using the AT_SIGN token (@) as a delimiter.
  8.  
  9. The ZScript language now supports C-Style comment blocks using the traditional syntax of:
  10.  
  11. /*
  12. COMMENT BLOCK
  13.  
  14. */
  15.  
  16.  
  17. Arrays now support being declared with a formula, or a constant:
  18.  
  19. int arr[10*4];
  20.  
  21. This is now the same as int arr[40];
  22.  
  23. Nesting array calls should now work properly. (e.g. arrA[ arrB[ arrC[ arrd[4] ] ] ] )
  24.  
  25. //////////////
  26. // Global //
  27. //////////////
  28.  
  29. void OverlayTile(int firsttile, int secondtile);
  30. Overlay one tile onto another.
  31.  
  32. int SizeOfArrayBool(bool array[]);
  33. * As SizeOfArray(int *ptr), save that it works specifically with bool typed arrays.
  34.  
  35. int SizeOfArrayFFC(ffc array[]);
  36. * As SizeOfArray(int *ptr), save that it works specifically with ffc typed arrays.
  37.  
  38. int SizeOfArrayNPC(npc array[]);
  39. * As SizeOfArray(int *ptr), save that it works specifically with npc typed arrays.
  40.  
  41. int SizeOfArrayItem(item array[]);
  42. * As SizeOfArray(int *ptr), save that it works specifically with item typed arrays.
  43.  
  44. int SizeOfArrayItemdata(itemdata array[]);
  45. * As SizeOfArray(int *ptr), save that it works specifically with itemdata typed arrays.
  46.  
  47. int SizeOfArrayLWeapon(lweapon array[]);
  48. * As SizeOfArray(int *ptr), save that it works specifically with lweapon typed arrays.
  49.  
  50. int SizeOfArrayEWeapon(eweapon array[]);
  51. * As SizeOfArray(int *ptr), save that it works specifically with eweapon typed arrays.
  52.  
  53.  
  54. /************************************************************************************************************/
  55.  
  56. ////////////
  57. // Game //
  58. ////////////
  59.  
  60.  
  61. int GetMaxMaps()
  62. int MapCount()
  63. * Returns the number of maps used by a quest.
  64.  
  65. int GetScreenEnemy(int map, int screen, int enemy_index)
  66. * Reads values from enemy lists anywhere in the game.
  67.  
  68. int SetScreenEnemy(int map, int screen, int enemy_index, int enemy_id)
  69. * Sets values to enemy lists anywhere in the game.
  70.  
  71. int GetScreenDoor(int map, int screen, int index)
  72. * Reads value of a door on any screen in the game environment.
  73.  
  74. int SetScreenDoor(int map, int screen, int index, int type)
  75. * Sets the value of a door on any screen in the game environment.
  76.  
  77. void PauseSound(int soundid)
  78. * Pauses one of the quest's playing sound effects. Use the SFX_ constants in
  79.  
  80. void ResumeSound(int soundid)
  81. * Resumes one of the quest's paused sound effects. Use the SFX_ constants in
  82.  
  83. void EndSound(int soundid)
  84. * Kills one of the quest's playing sound effects. Use the SFX_ constants in
  85.  
  86. void PauseMusic()
  87. * Pauses the present, playing MIDI or Enhanced Music file.
  88.  
  89. void ResumeMusic()
  90. * Resumes the present, playing MIDI or Enhanced Music file.
  91.  
  92. void GreyscaleOn()
  93. * Renders the entire display in greyscale.
  94.  
  95. void GreyscaleOff()
  96. * Returns the display rendering to colour.
  97.  
  98. int DMapPalette[512]
  99. * Set or get the Level Palette for each DMap
  100.  
  101. void SetMessage(int message, int str[])
  102. * Places string 'str[]' into ZQ Message 'message'.
  103.  
  104. void SetMapName(int dmap, int str[])
  105. * Places string 'str[]' into DMap Name for DMap with ID 'dmap'
  106.  
  107. void SetMapTitle(int dmap, int str[])
  108. * Places string 'str[]' into DMap Title for DMap with ID 'dmap'
  109.  
  110. void SetMapIntro(int dmap, int str[])
  111. * Places string 'str[]' into DMap Intro for DMap with ID 'dmap'
  112.  
  113. bool CappedFPS
  114. * Check if the game is uncapped.
  115. * This is slated for revision.
  116.  
  117. int Version;
  118. * Returns the version of ZC being used.
  119.  
  120. int Build;
  121. * Returns the Build ID of the version of ZC being used.
  122.  
  123. int Beta;
  124. * Returns the Beta ID of the version of ZC being used. If the build is not a beta, this returns 0.
  125.  
  126. bool DisableActiveSubscreen;
  127. * If set true, the active subscreen will not fall into view ehen the player presses Start.
  128.  
  129. int GetPointer(bool *ptr[]);
  130. * Returns the pointer of a bool array as a float.
  131.  
  132.  
  133. /************************************************************************************************************/
  134.  
  135. ////////////////
  136. /// Screen ///
  137. ////////////////
  138.  
  139. lweapon CreateLWeaponDx(int type, int baseitem)
  140. * Create an lweapon with sprites, sounds, and other values set as if it was generated by a specific item.
  141.  
  142. /************************************************************************************************************/
  143.  
  144. /////////////
  145. /// FFC ///
  146. /////////////
  147.  
  148. int ID;
  149. * The screen ref of the ffc. Used primarily for this->ID.
  150.  
  151. int GetPointer(ffc *ptr[]);
  152. * Returns the pointer of a ffc array as a float.
  153.  
  154. ffc SetPointer(int value);
  155. * Converts an int pointer to the ffc type, for assigning.
  156.  
  157. /************************************************************************************************************/
  158.  
  159. //////////////
  160. /// Item ///
  161. //////////////
  162.  
  163. float UID;
  164. * Returns the UID of an item.
  165.  
  166. int GetPointer(item *ptr[]);
  167. * Returns the pointer of a item array as a float.
  168.  
  169. item SetPointer(int value);
  170. * Converts an int pointer to the item type, for assigning.
  171.  
  172. int AClock
  173. * The clock used for the item's animation cycle.
  174.  
  175. /************************************************************************************************************/
  176.  
  177. /////////////////
  178. /// *weapon ///
  179. /////////////////
  180.  
  181. float UID;
  182. * Returns the UID of an *weapon.
  183.  
  184. int GetPointer(lweapon *ptr[]);
  185. * Returns the pointer of a *weapon array as a float.
  186.  
  187. lweapon SetPointer(int value);
  188. * Converts an int pointer to the lweapon type, for assigning.
  189.  
  190. float Misc[32];
  191. * Epanded from a size of [16] to [32]. An array of 32 miscellaneous variables for you to use as you please.
  192.  
  193.  
  194. ///////////////////////////
  195. /// LWeapon Specific ///
  196. ///////////////////////////
  197.  
  198. int Range;
  199. * The range of boomerang and hookshot lweapons in pixels; and arrow lweapons inb frames.
  200.  
  201. int AClock
  202. * The clock used for the item's animation cycle.
  203.  
  204. /************************************************************************************************************/
  205.  
  206. /////////////
  207. /// NPC ///
  208. /////////////
  209.  
  210. float UID;
  211. * Returns the UID of an npc.
  212.  
  213. int GetPointer(npc *ptr[]);
  214. * Returns the pointer of a item array as a float.
  215.  
  216. npc SetPointer(int value);
  217. * Converts an int pointer to the npc type, for assigning.
  218.  
  219. int ScriptDefense[10];
  220. * The npc's Script Weapon Defense values. This corresponds to the 'Defenses 3' tab in the Enemy Editor.
  221.  
  222. int InvFrames;
  223. * Returns the number of remaining invincibility frames if the enemy is invincible, otherwise 0.
  224.  
  225. int Invincible;
  226. * Returns if the enemy is invincible, because of ( superman variable ).
  227.  
  228. bool HasItem;
  229. * Returns if the enemy is holding the screen item.
  230.  
  231. bool Ringleader;
  232. * Returns if the enemy is a 'ringleader'.
  233.  
  234. float Misc[32];
  235. * Expanded from a size of [16] to [32]. An array of 32 miscellaneous variables for you to use as you please.
  236.  
  237. /************************************************************************************************************/
  238.  
  239. //////////////
  240. /// Link ///
  241. //////////////
  242.  
  243. int Animation;
  244. * Link;s Animation style, as set in Quest->Graphics->Sprites->Link
  245.  
  246. int WalkASpeed;
  247. * Link's Walking Animation speed as set in Quest->Graphics->Sprites->Link
  248.  
  249. int SwimASpeed;
  250. * Link's Swiming Animation speed as set in Quest->Graphics->Sprites->Link
  251.  
  252. int InvFrames;
  253. * This returns how long Link will remain invincible, 0 if not invincible. Can be set.
  254.  
  255. bool InvFlicker;
  256. * If set false, Link will neither flash, nor flicker when invincible.
  257.  
  258. int HurtSound;
  259. * The sound that plays when Link is injured. By default this is '16', but you may change it at any time.
  260.  
  261. int HitHeight;
  262. * link's Hitbox height in pixels starting from his 0x,0y (upper-left) corner, going down.
  263.  
  264. int HitWidth;
  265. * Link's Hitbox width in pixels starting from his x0,y0 (upper-left) corner, going right.
  266.  
  267. int HitXOffset;
  268. * The X offset of Link's hitbox, or collision rectangle.
  269.  
  270. int HitYOffset;
  271. * The Y offset of Link's hitbox, or collision rectangle.
  272.  
  273. int Eaten;
  274. * It returns 0 if Link is not eaten, otherwise it returns the duration of him being eaten.
  275.  
  276. int Equipment;
  277. * Link->Equipment is now read-write, and needs testing.
  278.  
  279. int ItemA;
  280. * Contains the item IDs of what is currently equiped to Link's A button.
  281.  
  282. int ItemB;
  283. * Contains the item IDs of what is currently equiped to Link's B button.
  284.  
  285. int SetItemSlot(int itm_id, int button, int force);
  286. * This allows you to set Link's button items without binary operation with options for forcing them.
  287.  
  288. int Extend;
  289. * Sets the extend value for all of Link's various actions.
  290.  
  291. int GetLinkExtend(int sprite, int dir);
  292. * Gets the extend value for one of Link's various actions based on a direction.
  293.  
  294. void SetLinkExtend(int sprite, int dir, int extend);
  295. * Sets the extend value for one of Link's various actions.
  296.  
  297. void SetLinkTile(int sprite, int dir, int tile)
  298. * Sets the tile for Link's various actions. This is intended to work as OTile for Link. Unverified.
  299.  
  300. int GetLinkTile(int sprite, int dir)
  301. * Returns the OTile for one of Link's various actions. Unverified.
  302.  
  303. int WarpEffect;
  304. * Sets a warp effect type prior to doing Screen->Warp
  305.  
  306. int WarpSound;
  307. * Setting this to a value other than '0' will play that sound when Link warps.
  308.  
  309. bool SideWarpSounds;
  310. * If you enable this setting, the warp sound will play in side warps.
  311.  
  312. bool PitWarpSounds;
  313. * If you enable this setting, the warp sound will play in a pit warp, one time.
  314.  
  315. int UseWarpReturn;
  316. * Setting this to a value between 0 and 3 will change the target return square for Link->Warp
  317.  
  318. int UsingItem;
  319. * Returns the ID of an item used when Link uses an item. Returns -1 if Link is not using an item this frame.
  320.  
  321. int UsingItemA;
  322. * Returns the ID of an item used when Link uses an item on button A. Returns -1 if Link is not using an item this frame.
  323.  
  324. int UsingItemB;
  325. * Returns the ID of an item used when Link uses an item on button B. Returns -1 if Link is not using an item this frame.
  326.  
  327. bool Diagonal;
  328. * This corresponds to whether 'Diagonal Movement' is enabled, or not.
  329.  
  330. bool BigHitbox;
  331. * This corresponds to whether 'Big Hitbox' is enabled, or not.
  332.  
  333. float Misc[32];
  334. * Expanded from [16] to [32]. An array of 32 miscellaneous variables for you to use as you please.
  335.  
  336. /************************************************************************************************************/
  337.  
  338. //////////////////
  339. /// itemdata ///
  340. //////////////////
  341.  
  342. int GetPointer(itemdata *ptr[]);
  343. * Returns the pointer of a itemdata array as a float.
  344.  
  345. itemdata SetPointer(int value);
  346. * Converts an int pointer to the itemdata type, for assigning.
  347.  
  348. int ID;
  349. * Returns the item number of the item in question.
  350.  
  351. int Modifier;
  352. * The Link Tile Modifier
  353.  
  354. int Tile;
  355. * The tile used by the item.
  356.  
  357. int CSet;
  358. * The CSet of the tile used by the item.
  359.  
  360. int Flash;
  361. * The Flash value for the CSet
  362.  
  363. int AFrames;
  364. * The number of animation frames in the item's tile animation.
  365.  
  366. int ASpeed;
  367. * The speed of the item's animation.
  368.  
  369. int Delay;
  370. * The Delay value, before the animation begins.
  371.  
  372. int Script;
  373. * The Action Script for the item.
  374.  
  375. int PScript;
  376. * The Pickup Script for the item.
  377.  
  378. int MagicCost;
  379. * The item's maic (or rupees, if this is set) cost.
  380.  
  381. int MinHearts;
  382. * The minimum number of hearts required to pick up the item.
  383.  
  384. int Attributes[10]
  385. * An array of ten integers that correspond to the ten <Misc> text entries on the item editor Data tab.
  386.  
  387. int Sprites[10]
  388. * An array of ten integers that correspond to the ten sprite pulldowns on the item editor Action tab.
  389.  
  390. bool Flags[5]
  391. * An array of five boolean flags that correspond to the five flag tickboxes on the item editor Data tab.
  392. * [0] corresponds to the box directly below 'Equiment Item'. For swords, this is 'B.H. is Percent'.
  393. * [1] corresponds to the box directly below 'Flag 1, or two boxes down from 'Equiment Item'.
  394. * For swords, this is 'B.D. is Percent'.
  395. * [2] corresponds to the box directly right of 'Equiment Item'. For swords, this is 'B. Penetrates Enemies'
  396. * [3]corresponds to the box directly right of 'Flag 2'. For swords, this is 'Can Slash'.
  397. * [4] corresponds to the box directly below 'Flag 4'. For swords, this is '<Unused>', and greyed out.
  398.  
  399. bool Combine;
  400. * Corresponds to 'Upgrade when collected twice'.
  401.  
  402. bool Downgrade;
  403. * Corresponds to the 'Remove When Used' option on the Action tab of the item editor.
  404.  
  405. bool KeepOld;
  406. * Corresponds to 'Keep lower level items on the Pickup tab of the item editor.
  407.  
  408. bool RupeeCost;
  409. * Corresponds to the 'Use Rupees Instead of Magic' option on the item editor 'Action' tab.
  410.  
  411. bool Edible;
  412. * Corresponds to the 'Can be Eaten by Enemies' box on the Pickup tab of the item editor.
  413.  
  414. bool GainLower;
  415. * Corresponds to the 'Gain All Lower Level Items' box on the Pickup tab of the item editor.
  416.  
  417. bool Unused;
  418. * ? - An extra script-only flag. It's a mystery to everyone.
  419.  
  420. /************************************************************************************************************/
  421.  
  422. ////////////////
  423. /// Screen ///
  424. ////////////////
  425.  
  426. void WavyIn();
  427. * Replicates the warping screen wave effect (inbound) from a tile warp.
  428.  
  429. void WavyOut();
  430. * Replicates the warping screen wave effect (outbound) from a tile warp.
  431.  
  432. void ZapIn();
  433. * Replicates the warping screen zap effect (inbound) from a tile warp.
  434.  
  435. void ZapOut();
  436. * Replicates the warping screen zap effect (outbound) from a tile warp.
  437.  
  438. void OpeningWipe();
  439. * Replicates the opening wipe screen effect (using the quest rule for its type) from a tile warp.
  440.  
  441.  
  442. void DrawBitmapEx ( int layer,
  443. int bitmap_id,
  444. int source_x, int source_y, int source_w, int source_h,
  445. int dest_x, int dest_y, int dest_w, int dest_h,
  446. float rotation, int cx, int cy, int mode, int lit, bool mask);
  447.  
  448. * As DrawBitmap(), except that it can do more things.
  449.  
  450. /************************************************************************************************************/
  451. Game->DEBUGGING: These might find their way into namespace Debug-> instead of Game-> in the future.
  452. /************************************************************************************************************/
  453.  
  454. int RefFFC; ZASM Instruction:
  455. REFFFC
  456. /**
  457. * Returns the present ffc refrence from the stack. FOR DEBUGGING ONLY!
  458. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  459. */ Example Use:
  460.  
  461. /************************************************************************************************************/
  462.  
  463. int RefItem; ZASM Instruction:
  464. REFITEM
  465. /**
  466. * Returns the present item refrence from the stack. FOR DEBUGGING ONLY!
  467. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  468. */ Example Use:
  469.  
  470. /************************************************************************************************************/
  471.  
  472. int RefItemdata; ZASM Instruction:
  473. REFIDATA
  474. /**
  475. * Returns the present itemdata refrence from the stack. FOR DEBUGGING ONLY!
  476. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  477. */ Example Use:
  478.  
  479. /************************************************************************************************************/
  480.  
  481. int RefLWeapon; ZASM Instruction:
  482. REFLWPN
  483. /**
  484. * Returns the present lweapon refrence from the stack. FOR DEBUGGING ONLY!
  485. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  486. */ Example Use:
  487.  
  488. /************************************************************************************************************/
  489.  
  490. int RefEWeapon; ZASM Instruction:
  491. REFEWPN
  492. /**
  493. * Returns the present eweapon refrence from the stack. FOR DEBUGGING ONLY!
  494. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  495. */ Example Use:
  496.  
  497. /************************************************************************************************************/
  498.  
  499. int RefNPC; ZASM Instruction:
  500. REFNPC
  501. /**
  502. * Returns the present npc refrence from the stack. FOR DEBUGGING ONLY!
  503. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  504. */ Example Use:
  505.  
  506. /************************************************************************************************************/
  507.  
  508. int SP; ZASM Instruction:
  509. SP
  510. /**
  511. * Returns the value of the stack pointer. FOR DEBUGGING ONLY!
  512. * THIS WILL BE DISABLED IN RELEASE BUILDS !
  513. */ Example Use:
  514.  
  515.  
  516. ////////////////////////
  517. /// Not Implemented ///
  518. ////////////////////////
  519.  
  520. BitmapQuad
  521. //sdci[1]=layer
  522. //sdci[2]=x1
  523. //sdci[3]=y1
  524. //sdci[4]=x2
  525. //sdci[5]=y2
  526. //sdci[6]=x3
  527. //sdci[7]=y3
  528. //sdci[8]=x4
  529. //sdci[9]=y4
  530. //sdci[10]=sourcex
  531. //sdci[11]=sourcey
  532. //sdci[12]=sourcew
  533. //sdci[13]=sourceh
  534. //sdci[14]=width
  535. //sdci[15]=height
  536. //sdci[16]=tile/combo
  537. //sdci[17]=polytype
  538.  
  539. void ComboArray ( int layer, int number_of_combos,
  540. int combos[],
  541. int x_positions[],
  542. int y_positions[],
  543. int csets[]);
  544.  
  545. ZASM: COMBOARRAY
  546.  
  547. /**
  548. *
  549. * Draws a number of combos specified by 'number_of_combos' to 'layer'.
  550. * Specify the combos by populating an array with their IDs and passing the array ointer to 'combos'.
  551. * Specify the X coordinate for each by passing an array with their x coordinates to 'x_positions'.
  552. * Specify the Y coordinate for each by passing an array with their y coordinates to 'y_positions'.
  553. * Specify the CSet for each by passing an array with their csets to 'csets'.
  554. *
  555. * This function counts as a single draw.
  556. *
  557. * Transparency is not yet imlemented, but you may draw to a bitmap and render it translucent.
  558. *// Example:
  559.  
  560. int combos[4] = {16,19,31,20};
  561. int cmbx[4]= {0, 16, 32, 48}:
  562. int cmby[4]={8, 8, 8, 8);
  563. int cmbc[4]={0,0,0,0};
  564. Screen->ComboArray(6, 4, combos, cmbx, cmby, cmbc);
  565.  
  566.  
  567. /************************************************************************************************************/
  568.  
  569. //! This new mode does not work as intended, and will likely be deprecated by Screen->SetRenderSource
  570. void Quad ( int layer,
  571. int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4,
  572. int w, int h, int cset, int flip, int texture, int render_mode);
  573.  
  574. ZASM Instruction:
  575. QUADR
  576.  
  577. /**
  578. * Draws a quad on the specified layer with the corners x1,y1 through x4,y4.
  579. * Corners are drawn in a counterclockwise order starting from x1,y1. ( So
  580. * if you draw a "square" for example starting from the bottom-right corner
  581. * instead of the usual top-left, the the image will be textured onto the
  582. * quad so it appears upside-down. -yes, these are rotatable. )
  583. *
  584. * From there a single or block of tiles, combos **or a bitmap** is then texture mapped
  585. * onto the quad using the arguments w, h, cset, flip, and render_mode.
  586. * A positive vale in texture will draw the image from the tilesheet pages,
  587. * whereas a negative value will be drawn from the combo page. 0 will draw combo number 0.
  588. * Both w and h are undefined unless 1 <= blockh, blockw <= 16, and it is a power of
  589. * two. ie: 1, 2 are acceptable, but 2, 15 are not.
  590. *
  591. * To specify a bitmap as a texture, sum 65520 with the bitmap ID, or use the constant TEX_BITMAP + Bitmap
  592. * Example: Screen->Quad(6, 0, 0, 40, 25, 18, 50, 60, 110, 0, 0, 0, 0, TEX_BITMAP+RT_BITMAP0, PT_TEXTURE);
  593. *
  594. *
  595. * Flip specifies how the tiles/combos should be flipped when drawn:
  596. * 0: No flip
  597. * 1: Horizontal flip
  598. * 2: Vertical flip
  599. * 3: Both (180 degree rotation)
  600. * (!) See std.zh for a list of all available render_mode arguments.
  601. */ Example Use: !#!
  602.  
  603. void TileArray ( int layer, int number_of_tiles,
  604. int tiles[],
  605. int x_positions[],
  606. int y_positions[],
  607. int csets[]);
  608.  
  609. ZASM: TILEARRAY
  610.  
  611. /**
  612. *
  613. * Draws a number of tiles specified by 'number_of_tiles' to 'layer'.
  614. * Specify the tiles by populating an array with their IDs and passing the array ointer to 'tiles'.
  615. * Specify the X coordinate for each by passing an array with their x coordinates to 'x_positions'.
  616. * Specify the Y coordinate for each by passing an array with their y coordinates to 'y_positions'.
  617. * Specify the CSet for each by passing an array with their csets to 'csets'.
  618. *
  619. * This function counts as a single draw.
  620. *
  621. * Transparency is not yet imlemented, but you may draw to a bitmap and render it translucent.
  622. *// Example:
  623.  
  624. int tiles[4] = {16,19,31,20};
  625. int tilx[4]= {0, 16, 32, 48}:
  626. int tily[4]={8, 8, 8, 8);
  627. int tilc[4]={0,0,0,0};
  628. Screen->TileArray(6, 4, tiles, tilx, tily, tilc);
  629.  
  630.  
  631. /************************************************************************************************************/
  632.  
  633. void PixelArray ( int layer, int number_of_pixels,
  634. int x_positions[],
  635. int y_positions[],
  636. int colours[]);
  637.  
  638. ZASM: PIXELARRAY
  639.  
  640. /**
  641. *
  642. * Draws a number of pixel, similar to PutPixel, specified by 'number_of_pixels' to 'layer'.
  643. * Specify the X coordinate for each by passing an array with their x coordinates to 'x_positions'.
  644. * Specify the Y coordinate for each by passing an array with their y coordinates to 'y_positions'.
  645. * Specify the colour for each by passing an array with their csets to 'colours'.
  646. *
  647. * This function counts as a single draw.
  648. *
  649. * Transparency is not yet imlemented, but you may draw to a bitmap and render it translucent.
  650. *// Example:
  651.  
  652. int pix[4] = {16,19,31,20};
  653. int px[4]= {0, 16, 32, 48}:
  654. int py[4]={8, 8, 8, 8);
  655. int pc[4]={0x12,0xB0,0xDA,0x4F};
  656. Screen->TileArray(6, 4, pix, px, py, pc);
  657.  
  658. /************************************************************************************************************/
  659.  
  660. CreateBitmap(int id, int xsize, int ysize)
  661.  
  662. * Min size 1, max 2048
  663. /************************************************************************************************************/
  664.  
  665. SetRenderSource(int target, int x, int y, int w, int h)
  666.  
  667. /************************************************************************************************************/
  668.  
  669. void Polygon ( int layer, ... );
  670.  
  671. ZASM: POLYGON
  672.  
  673. * Adding to Beta 9 : Postponed -Z
  674.  
  675. /************************************************************************************************************/
  676.  
  677. // Game->
  678.  
  679. //! These do not yet work:
  680.  
  681. //Returns Screen->Door[index] for a given DMap and Screen
  682. int GetDMapScreenDoor( int dmap, int screen, int index )
  683.  
  684.  
  685. //Sets Screen->Door[index] for a given DMap and Screen to 'value'
  686. void SetDMapScreenDoor( int dmap, int screen, int index, int value)
  687.  
  688.  
  689. //Returns Screen->State[index] for a given DMap and Screen
  690. bool GetDMapScreenState( int dmap, int screen, int index )
  691.  
  692.  
  693. //Sets Screen->State[index] for a given DMap and Screen to 'value'
  694. void SetDMapScreenState( int dmap, int screen, int index, bool value)
  695.  
  696. /************************************************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement