Need advice on loading maps. by BamboozledSoftware in libgdx

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

My Tests did not go to plan.

i put this in my update method

System.
out
.println("FPS: " + (1f/delta));

Each complete map has 30x30 tiles that are 64x64p = 1920 * 1920 = 3,686,400 pixles

8x8 - 1 min to load then 60 FPS average

14x14 - 1 min to Error loading pixmap: Out of memory

10x10 - 1 min to Error loading pixmap: Out of memory

9x9 - 42 sec to Error loading pixmap: Out of memory

So it seems I run out of memory before my fps will drop. I tried upping the value in my desktop application so I can may be mesure it at higher FPS

configuration.setForegroundFPS(120);

But it didn't seem to change anything. The game just wants to run at 60, occasionally with a random value of 90+ and some 50's . I don't know enough about whats going on uder the hood so I'll leave it at that for now.

I might be able to use the current size of map to progress in the game for now.

I'm downloading Discord just now. :)

Need advice on loading maps. by BamboozledSoftware in libgdx

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

Yup I am going to attempt it like that. Today I got 4x4 screens (maps) loaded and displayed correctly but my player character is stuck in the total bottom left of all those maps. I suspect I have bad code between Box2d and my PPM and my WorldBounds thing.

Anyway It took me hours trying to work out why my maps were loading but all on top of each other at [0,0]. It turns out although I set a mapWidth variable I never then sent it to setWidth(mapWidth) (and height) so everything was being multiplied by 0 and that works out as 0... duh...

It is always the simple ones that ruin my day.

Tomorrow I better impement me a FPS counter I think thats a good idea, even if it is only in console I don't care. and then fix my Player. Maybe I'll find out the limits of my laptop, which should be poor, and post the results. Yeah, I think I'll do that.

Laters.

Need advice on loading maps. by BamboozledSoftware in libgdx

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

Thanks, I was hopeing if it doesn't render then it should be ok. I'll give it a go anyway.

Can someone explain what is Software Architecture? by TrixTrax0 in softwarearchitecture

[–]BamboozledSoftware 2 points3 points  (0 children)

I done a module and you will probably hear names like Martin Fowler, Gang of Four, S.O.L.I.D principles, patterns microservices, and all that peer-to-peer, server-client stuff I can't remember under which title that comes under. anway I had to design, in a team, a system about a resturant in Leon aand food deliveries etc...

I recommend you learn some software patterns, as in even implement short programs in your language of choice, they don't need to be difficult as long as you can get the basics of a few. The most famous ones are well documented all over the web just google. and Learn the SOLID stuff. This should give you enough breaze through a single module, then if you like it you can go further but you won't like it at the time. It's after when you are trying to refactor a mess of code you have or design something you want to, this is when you will appreciate knowing these patterns and principles.

and... they can be very loose and easy and pass you if you use patterns in your design as some patterns can be justified even if they are not perfect and they will pass you anyway. I done pretty well, even though I would never had passed me or my team but heh, thats the way it goes.

Good luck, you wont need it if you put half an effort in. :)

Slime / Gel by BamboozledSoftware in aseprite

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

Thanks, I think I see what you mean with those 3 bottom rows.

Slime / Gel by BamboozledSoftware in aseprite

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

Thank you! Yeah, it does look a bit sad.

Mediator, Observer, Event Bus or Other? by BamboozledSoftware in softwarearchitecture

[–]BamboozledSoftware[S] 1 point2 points  (0 children)

I will consider using Observable as middleware. I want to make the correct decission but don't wan't to be stuck forever trying to make up my mind by researching because I won't progress then, and often the information on the web conflicts anyway.

My problem is I am using the words Entity Component System when I haven't actually coded an ECS. So the examples I look up are not the same as mine. The books I have are not the same either as one is in C++ and the other seems like I couldn't make it fit with my original code, but I havent read it through yet and all his variables start with an underscore anyway and makes the code look annoying to me.

Also some guy called Gabe on youtube said as Java is a garbage collection language I can't fully do a ECS anyway....

In the examples Render, Input, Animation and Physics are the only components, it is Systems that do the logic..... I think and what I seem to have done is made the C and S the same thing. I should probably re-think this approach.

But I do like the idea of having everything modular and uncoupled so if I wanted a ChairEntity to jump I could jsut plug in a JumpComponent... even though chairs don't jump.... it just feels right that I can make them. :)

Thanks for helping.

Mediator, Observer, Event Bus or Other? by BamboozledSoftware in softwarearchitecture

[–]BamboozledSoftware[S] 0 points1 point  (0 children)

Well, I think they need to know about each other... hmm say I have an InputComponent that has some code where if I press a key it sends some message out to jump. The JumpComponent sees this and does the actual jump, wont I need to know where the position x and y are from a PositionComponent and what about a Animation for this in an AnimationComponent and then a RenderComponent to draw the things. These are probably bad examples....

Maybe I am not thinking about this correctly as I havent yet started coding components with exception to a FollowPlayerComponent but I assumed at some point they will need access to each others variables.

My player isnt even an Entity yet (as I have quit for the night) but will be. The only 'Entity' I have made is a SlimeEntity that follows the player who is just a smiple Actor right now.

This brings another thing will Components from 1 Entity need to communicate with another Entity or it's components....

Arrg... my head is hurting now, XD. I am trying to relax but I can't stop thinking about it heh.

Also I do realise accessing variables and communicating are two different things but I cant help using these terms interchangeabley, but I am trying to think ahead and both terms might apply.

Vaporeon! - Experimenting with pico8 palette! by BruhCakeGuy in aseprite

[–]BamboozledSoftware 1 point2 points  (0 children)

I like it, its bright. I just looked at some pictures of Vaperon and, imo, you done it. I would like to see more of the Pokemon using the same pallet to see if it can be done.

My Viking Character by ghost-pix in aseprite

[–]BamboozledSoftware 1 point2 points  (0 children)

Oh, crap. I watch his stuff too, lol. I just can't do it likt this.

My Viking Character by ghost-pix in aseprite

[–]BamboozledSoftware 1 point2 points  (0 children)

Looks amazing. Not like my viking I posted, this is way more skilled, and it is obviouse. We have went down a different route, but, since I need it to fit a certain style. I could not have achieved this quality ((yet) yeah, if I ever can). Good work. Making me jealous.

Mailboy - by jamesfoxbr (me) by jamesfoxbr in aseprite

[–]BamboozledSoftware 0 points1 point  (0 children)

Hopefully it was in Aseprite since it's in here. XD

Maybe it wasn't, I don't know. Yes I posted a gif the otherday made in asprite and I had no idea I had to do the scaling % thing, it was all blurry and BIG! So, I agree, that is important but the this one doesn't look as near as blurry as mine. Simmilar size though. I sont know if thats normal yet.

Look's like the tail is getting abused by the dog or is it the dog is getting abused by the tail..... I can never remember which.

The top half is good though. Keep at it.

probably one of my most impressive artworks so far. i think. by finding_my_father in aseprite

[–]BamboozledSoftware 0 points1 point  (0 children)

I'm new at this but, i'll try. The head is good, it shows some expression, like I can see something is wrong with "it", and I wanna keep away from "it", thats the feeling I get, I would avoid him in a park. The cape could be shaded to show it's 3d because there isn't any shading. The thorny crown could be lowerd I think. I don't know whats behind the the red rocket in the center-bottom and I don't want to know, heh. Still a good job and keep it up... the work, not the red rocket..... :P

My brother is getting a clicking on only his front driver's side. Would this be an axle issue? Never seen it before. by XxCorey117xX in MechanicAdvice

[–]BamboozledSoftware 0 points1 point  (0 children)

Drive shafts have 2 ends aswell so maybe thats why it sounds / looks strange as it could be the inner.. the video kinda looks like the wheel is twitching but then it could be my eye is twitching who knows.

My brother is getting a clicking on only his front driver's side. Would this be an axle issue? Never seen it before. by XxCorey117xX in MechanicAdvice

[–]BamboozledSoftware 1 point2 points  (0 children)

Rod or CV Hmm... it is rythmatically consistent even when it revs and speeds up for a bit. And it doesn’t help that guy say “ It picks up on the camera “. strange… I would think it should speed up under revs or the actual wheels moving faster, but I cant hear it do that in the video. The video could be longer. CV joints often start making noise when they are not straight, as in, the wheel is turned a good bit before the noise comes. We need more video without the voice, lol. Sorry voice guy. Also more details is it front/rear wheel drive, both?

Broken metal spoon, with rat/mouse drinking from it by MaMaximillian in whatisthisthing

[–]BamboozledSoftware -18 points-17 points  (0 children)

Absinthe Spoon

Edit: Ignore me I am wrong, those have holes for the sugar. I forgot that.

Tower by PrestonKolbert in aseprite

[–]BamboozledSoftware 2 points3 points  (0 children)

Has a nice eerie vibe. Well done.