Java Game Programming - Creating a Tile Grid

preview_player
Показать описание
In this episode, we make our game look a little more like a Tower Defense by filling in the screen with tiles of a specific texture.

This is after we implemented the drawing method within the tile class and before we've added a way to dynamically edit and update the map of our game.
Рекомендации по теме
Комментарии
Автор

Thank you so much! Me and a few friends are making a TD game together, and we watch your tutorials to help us.
And I was so sad when I got to the end of your Java playlist, all I could think was "It's a shame I'm going to have to wait for weeks to learn more".

TotalReverse
Автор

Omg thank you good sir. We are all glad and grateful that you are creating videos again. Hope to see more content!

rocketneo
Автор

Bit slow of me... But I finally caught onto the fact that importing something as static means you don't have to do say... Artist.DrawQuad(...). This is why I'm watching though! Thanks :)

AlexShaw
Автор

i get this error when i launch... 
Mon May 25 09:43:29 BST 2015 INFO:Use Java PNG Loader = true
Exception in thread "main" 15
at
at
at Data.Boot.main(Boot.java:23)

Could anybody help?

xxfini
Автор

how would i add a separate generated row of a different texture? right now i have the top row and the bottom row of my screen blank and everything else filled in, but i want to generate the bottom row a different texture. how do i do that?

redstoneadventures
Автор

the map[i][j] = new Tile(i * 64, j * 64, 64, 64, TileType.Grass) gives me a plz help <3

Edit:
I fixed it and its because of i put in 1 instead of i in the nested for loop but now it gives me the same exception but in the nested for loop

josephjoshua
Автор

Love your videos but why did the series suddenly stop and come back again? I'm confused.

NUAProductions
Автор

I can't get the public void Draw loop to work:
public void Draw (){ }. This the error I get: Illegal modifier for parameter Draw; only final is permitted. Anybody experienced this ?

ikbenbaasdenkik
Автор

Hey could anyone help me?
It appears that the tiles are only filing part of the first column on the left side and a lot of thorough searching I (bare in mind that have just started java) have no clue what the problem is if it helps then I will upload my coding if need be. Does anyone have any idea?  

connorpaterson
Автор

when I run the code. Does anyone know the issue?
Please help

goldfan
Автор

Hey, I know Im late to this party, but where does the map.length come from? I searched the Tile class and couldn't find anything named length. just curious

thelavenderporcupines
Автор

Nice videos ! However you are loading 300 times the same texture in the memory cause you use QuickLoad function in the tile constructor. Maybe you fix it later, will keep an eye on that ^^

qlebevillon
Автор

I got a java.lang.NullPointerException, somebody?

felipexavier
Автор

am i the only one experiencing an error

Boomwhat-stjw