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

Design level : .png VS .json #117

Open
jamet-julien opened this issue Jun 14, 2020 · 4 comments
Open

Design level : .png VS .json #117

jamet-julien opened this issue Jun 14, 2020 · 4 comments

Comments

@jamet-julien
Copy link

use the pixels of a .png image to build the design of the levels. for example a red pixel for a brick and a blue pixel for a turtle. With image analysis rather than level json

@jamet-julien jamet-julien changed the title design level : .png VS .json Design level : .png VS .json Jun 14, 2020
@bouveng
Copy link
Collaborator

bouveng commented Jun 14, 2020

Where should we get this .png from? Create it ourselves? Placing pixels in an image might not be faster than writing the x, y in a json.

A level editor would be nice, but building a level editor might take as much time as just creating the levels in json.

😎

@jamet-julien
Copy link
Author

indeed it could be an image made in photoshop for example. See with Paint. Unlike JSON is that we don't need to know how to coordinate them but just make a drawing with a color by type of element. This makes the construction intuitive on a drawing software and quickly correctable without having to look in the JSON for the right brick to modify. A level editor would be too expensive in time but it is true that it would be even better ... but here I just suggest a parse of image.

@kktos
Copy link

kktos commented Apr 14, 2021

A level editor would be nice, but building a level editor might take as much time as just creating the levels in json.

hum... we may think about it as the game renderer with no move (vel=0) and the camera following the mouse moves. A mouse click could display a square around the targeted tile and a choice of keyboard keys could allow us to do actions....
What do you think about it ?

@jamet-julien
Copy link
Author

A level editor would be nice, but building a level editor might take as much time as just creating the levels in json.

hum... we may think about it as the game renderer with no move (vel=0) and the camera following the mouse moves. A mouse click could display a square around the targeted tile and a choice of keyboard keys could allow us to do actions....
What do you think about it ?

yes it's a good idea and not incompatible with the recording mode image 😉

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

No branches or pull requests

3 participants