Java Game Development TUTORIAL - Episode #29 - MONEY!

preview_player
Показать описание
00:00 Intro
00:36 Recap and whats in the episode
01:44 Bug fix
02:03 Gold variable
03:41 Overlapping text from last episode fix
04:35 Tower Cost info
06:24 Tower Cost tab test
06:45 MouseOver function
07:27 MouseOver test
07:39 Adding correct tower and cost
10:43 Testing it
11:05 Paying for towers
13:12 Testing that too
13:47 Not going into debt!
15:17 Testing it
16:11 A message if player can't afford the tower
17:37 Testing it
18:21 Can't Afford
19:06 Getting money from enemies
23:16 Dealing with the error
24:04 Testing it
24:24 Gold tick
26:30 Outro

Links:

-----------------------------

Wish to support me?
You can do so on:
Everything is appreciated!

-----------------------------
Рекомендации по теме
Комментарии
Автор

EDIT - UPDATE A link to the discord server is in the video description.

Hey everyone.
Today we add the economy to the game. A bit longer than usual but that's okay, just more content =)
There is also a link in the description on the modulus if you need more info about it.
I wish you the best.
Cheers!

KaarinGaming
Автор

No idea how you aren't a 10k+ subs, 100k+ viewer average YouTuber. I've been following along with your videos to sharpen my Java skills for my college. I've been struggling in my java classes (dropped classes a couple of times). This has definitely taught me quite a bit in Java and I'm a bit more confident in my coding skills.

Pickilito
Автор

Just a suggestion that I found works just fine;

Instead of making the method isTowerCostMoreThanCurrentGold(), you can just reuse the method isGoldEnoughForTower() and pass in the towerCostType, so in the drawTowerCost method you would just use:

if {
[code here]
}

TatexRedding