Arctenik / astro-snatcher

a browser game (somewhat incomplete)
1 stars 0 forks source link

game object properties #8

Open Arctenik opened 7 years ago

Arctenik commented 7 years ago

should probably make some actual plans for what properties objects will be able to have and how they'll work particularly wrt unique behaviors

one specific thing that i'll definitely want at some point is z index for sprites bc at the very least the net should have a front and a back part that the ship goes between

some other things i'm gonna want are multiple sprites [EDIT: done], some way to switch between them, and some way to make the object move [EDIT: done]

Arctenik commented 7 years ago

i think i'll probably have a way to make simple scripts with json but maybe also have it so javascript files can be included in a level?

there'll probably various events that you can attach handlers to and i think maybe there'll be a property where you can put a sequence of actions to be executed repeatedly which could be useful for objects that move along a fixed path

Arctenik commented 7 years ago

although i'm not trying to precisely emulate aqua grabber i would like everything that existed in it to be possible in astro snatcher without too much trouble so i think it might be good to list the objects from aqua grabber and their behaviors

Arctenik commented 7 years ago

clam:

giant clam:

worm substrate:

worm:

fluffy:

mullet:

soda barrel:

soda seas flora:

coin pile:

crab:

pufferfish:

guardian pufferfish:

giant pufferfish:

Arctenik commented 7 years ago

re: sequence of actions to be executed repeatedly, maybe there should just be an "onStart" event [EDIT: done] and some sort of generic "loop" function [EDIT: done]? also there should ofc be a way to stop loops

Arctenik commented 7 years ago

have added multi-sprite support, onStart, looping, and movement

Arctenik commented 7 years ago

I wonder if it'd be useful to be able to control what objects can collide with what other objects, potentially using some sort of "collision group" system

Arctenik commented 7 years ago

for movement physics maybe i should just have properties that specify multipliers for the two axes?? um and then also i should probably have a property to determine whether the object collides with solid objects and one that determines how much it bounces when it does so