Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Areas in Maps #214

Open
ben0bi opened this issue Jan 17, 2024 · 0 comments
Open

Feature Request: Areas in Maps #214

ben0bi opened this issue Jan 17, 2024 · 0 comments

Comments

@ben0bi
Copy link

ben0bi commented Jan 17, 2024

Maps should have invisible Areas which you can define in the map editor by clicking, dragging and releasing the mouse. They should be available in the map itself and should be can-be-checked with a collide function.

For that feature, the map editor should have a new layer where you can define the areas - and the map is visible underneath. Areas should be visible in map editor but not in game.

Areas should have the following properties: x1,y1, x2,y2 - area, respecting the map size on the game view or...something. name - the name of that area, will be displayed in the rect of the map on the map editor.

type - type of the area for better programming. e.g. "block", "snow", "map change"

target - a string defining the target of this area, e.g. a map name or an object index.

Programmer should have freedom using type and target. name can be same on different areas. When you get the area by name, it gets ALL the areas with the same name (on the same map).

Map functions (suggestions):
maps[mymap].getAreas()
maps[mymap].getCollideAreas(targetx, targety)
maps[mymap].getAreasByName(name)
maps.getAreasByName(name) maps.getCollideAreas(mapname, x, y)

Hope this will be implemented because it's very hard to make a real game by writing all the colliding areas by hand in text. Only the graphical maps is a little to less for a "big" game like microVerse, where I am sitting at right now.

Thanks for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant