HelloMum / Shared-Mobility-Adventure-Game

Final Project: Shared-Mobility Adventure Game COMP30820 Java Programming (Conv)
GNU General Public License v3.0
0 stars 0 forks source link

We need a game element to display a background. #6

Closed HelloMum closed 6 months ago

HelloMum commented 7 months ago

This should be implemented in a way so we can create a completly different design over the logical map, ideally this would be implemented per cell so we can use the different render implementations but also we can implement them by doing some scale if we dont have enought time.

PYevan commented 7 months ago

How about draw some pictures based on cell size jajaja

HelloMum commented 7 months ago

We can do a game element that when on the map will be really big and expand millionaires cells or split the images on the correct cell sizes and create a method to draw them differently by their position. So we can keep all those textures per map.

superfish315 commented 6 months ago

Do I need to draw the background image myself according to our current route? Because I can't seem to use the image directly now.

HelloMum commented 6 months ago

We need to be able to integrate textures and backgrounds per cells level like this so you should create an entity that gets an image and load is as a game element in the lower layer. This elements should be able to be configured and spawned for the whole map automatically, so we can create a folder with them or something like that. Whatever is the implementation should work nicely with the rest of the game and easy to use and work with it.

You could implement another array on top of the map with the same size as the map to load a map design with these cells or fit an image in the correct sizes . You should try a couple of options and see what is best.

image image image

We can for example put three toguether to create the floor or by loading them in a linear way and create like a path and add some complexity.

This should integrate with the rest of the game to be usable in our implementation.

image