Description

World Wrap Startup Kit Project with Defender Demo as example

GMS:2 Compatible

Supports horizontal, vertical or both and cornered wrapping

The project was designed to help you understand and code for games that require seamless world wrapping from left to right; also know as Defender Loop screen. Though support is there for all side wrapping.

The problems with looping the screen seamlessly is two fold:

  1. the instances that are at the room edge have to be seen from the other side of the room.
  2. your AIs need to be aware of the world wrapping and decide to give chase to the player or other object by wrapping from one side of the room to the other as the target across the room may actually be closer than something on the same side of the room.

To resolve the first problem, the API includes a drawing function which you can clone the code from to make your own world wrap compatible draw. The system also includes a world wrap move function similar to GM's native function which detects if instances are at the edge and require moving from room edge to room edge.

For the second problem, the AI world wrap awareness the API include a world wrap aware instance_nearest() and a coordinate conversion function so that you can convert any coordinates to a coordinate off screen to force the AIs to use the alternative coordinate (using standard GM functions) to aim for and move to the coordinate.

The API is minimalist in nature as it includes only the things that you will require. Anything more and you would be confounded.

The demo includes a Defender clone which shows a few things:

  1. How to Draw
  2. How to Wrap
  3. How to Aim
  4. How to Drive to the closest Wrapped Point

Bonus:

  1. Procedurally Generated Terrain
  2. Minimap
  3. Score and in between Level Bonus
  4. Player control
  5. Missile system with ahead targeting.

More info

End User Licence Agreement (EULA).

Changes in 2.0.5

Had to move the parent of objects up the resource tree to fix asset distribution bug

Version 2.0.5. Published December 23, 2015

Created with GameMaker: Studio v1.4.1690

Age Rating: 4+

Privacy Policy

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

davide m 05 May 2015

Old school love

I forgot to review this asset when i bought it, but i want to fix it now, cause this is the best asset i've found on the MP for creating old school shoot 'em ups, like Defender, Choplifter or some of Jeff Minter's games. Respect!

This review was left for a previous version of this asset.

Package contents

Total size 33.4 KB

TMC World Wrap Startup Kit.extension.gmx 6.93 KB TMC World Wrap Startup Kit
Assets
Fonts Objects Rooms Scripts Sprites
tmc_wwd_berserker_ufo_spr.sprite.gmx 692 Bytes tmc_wwd_fragment_mask.sprite.gmx 689 Bytes tmc_wwd_grab_ppl_ufo_spr.sprite.gmx 691 Bytes tmc_wwd_ground_spr.sprite.gmx 682 Bytes tmc_wwd_minimap_spr.sprite.gmx 687 Bytes tmc_wwd_player_bullet_spr.sprite.gmx 689 Bytes tmc_wwd_player_explore_left_spr.sprite.gmx 699 Bytes tmc_wwd_player_missile_spr.sprite.gmx 693 Bytes tmc_wwd_player_spr.sprite.gmx 687 Bytes tmc_wwd_ppl_spr.sprite.gmx 682 Bytes tmc_wwd_ufo_billet_spr.sprite.gmx 1.65 KB images

What is the issue?

Back to Top