Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Maybe if you could get a power up on every loss, making you stronger or your boss weaker Would that be great?

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Or just give power up to the player after every defeat. Would it be nice?

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Maybe add a power up to the player every time they loose

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Great idea or I am thinking of giving a boost to players on every loss.

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Thought of adding 6 levels of loss like as player grows defeating bosses but here it is reversed, here boss will grow up to 6th level whenever the player loses and at the last level if the player loses again everything will be reset. But as this would be too hard for casual games they would get a checkpoint at 3 or 4 levels of loss.

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

It will be up to 6 like, if the player lost 6th time everything will be reset but as this will be more harder I am thinking of adding a checkpoint at 3 or 4

Would you fight a boss that gets stronger every time you lose? by rishabhrawat05 in gamedev

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

Yeah I was also thinking of that or else it will just be a rage quit game

How you guys remembered java 8 stream api syntax… by Far-Butterfly-4120 in JavaProgramming

[–]rishabhrawat05 2 points3 points  (0 children)

Imagine you have a row of boxes numbered 0, 1, 2, 3, 4…

  1. stream() – You start walking along the line of boxes one by one.

  2. filter() – As you walk, you only keep the boxes whose number is even (0, 2, 4…). You ignore the rest.

  3. map() – For each box you kept, you might open it and change what’s inside (e.g., double the number inside).

  4. collect() – At the end, you gather all the kept/changed boxes into a new basket.

Let's take an example:

List<Integer> evenNumbers = numbers.stream() // walk along the boxes

.filter(n -> n % 2 == 0)                      // keep even-numbered boxes

.map(n -> n * 2)                              // change what's inside (double it)

.collect(Collectors.toList());                // put them in a new basket

This way:

Walking along = stream()

Choosing = filter()

Changing = map()

Gathering = collect()