Log In  

Cart #watuyagego-0 | 2020-07-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a not-as-smart-as-id-like bullet generator I was planning to use for a bullet hell game, or to control enemy spawns and pattern configuration.

I'd like to add some nesting (so that effects could be chained, or shots could explode after a delay), and make it a bit more generic.

Usage: click to increment a value, right-click do decrement.
Click "projectiles" or "pattern" to toggle between settings related to the spawned items themselves, and the pattern which spawns them.

CTRL+C will copy your current settings as a string to your clipboard, and CTRL+V can be used to load them back in if you need to change something.

To use this, you'd want to copy the first tab of code to your cart, and remove some of the example stuff (like collision tests which are funky anyway). Create a handful of bullet patterns, and use

local attack_pattern_1 = pattern_from_string("curve=5>speed=1") -- string from configurator
local attack_pattern_2 = pattern_from_string("spin=20,fire_rate=20")
local boss = {x=50,y=50}
--activate attack pattern 1. Will be centered on boss location as it moves.
add_pattern(boss, attack_pattern_1)
P#79374 2020-07-16 02:33 ( Edited 2020-07-16 02:33)

How i do this

P#79450 2020-07-16 20:54

Have you looked into BulletML from AGA games? It might give you some ideas to implement. :)

P#79469 2020-07-17 00:16

[Please log in to post a comment]