Creating a Sprite Sheet
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Published on Aug 31, 2012
This tutorial will teach you about sprite sheets and how they are loaded as well as some information on color.
Let me know what style game we should build with our engine: http://svy.mk/QYKG4b
I will include the final project source when the game is complete, and will update this description with them at a later date.
If you enjoyed the video please Subscribe, Like or Comment, and let me know what's up!
Website: http://www.vanZeben.ca
LiveStream: http://www.twitch.tv/vanZeben
Outro Song:
Approaching Nirvana - Pirate's Call
Check them out here: http://www.youtube.com/user/Approachi...
Used in accordance with: http://www.youtube.com/watch?v=m0HbjN...
-
Category
-
Directed by:
-
License
Standard YouTube License
- Partner rating: No mature content (Learn more)
Loading...
Loading...
Loading...
Loading...
Loading...
Next in Java 2D Game Engine Development: Season 1 Episodes
Suggestions
-
36:01
Making our first mob, the Player!by Programmer extraordinaire
7,480 views
-
12:20
The Walking Animation!by Programmer extraordinaire
4,864 views
-
9:50
Basic Input Handlingby Programmer extraordinaire
6,518 views
-
3:15:51
Notch coding "Prelude of the Chambered". Part 1 of the live programming stream from Ludum Dare #21by zorbid
12,673 views
-
9:04
Game Development: Getting Started Part 1by GyroVorbis
200,223 views
-
Minecraft
9,535,374 videos4M
-
33:16
Setting up the JFrameby Programmer extraordinaire
42,349 views
-
19:04
WTF Gaming - Megaman Sprite Game (Part 1?)by Some Ordinary Gamers
67,063 views
-
5:35
Create Pixel Art and Sprites in Adobe Illustratorby Ryan Quintal
17,760 views
-
10:27
8 bit sprite marathonby konkrol
359,325 views
-
8:48
Not Another Sprite Fightby Mr Lange says: DON'T SUBSCRIBE
131,185 views
-
12:26
Java for Beginners [5]: Methods and Instance Variablesby Programmer extraordinaire
10,276 views
-
4:18
Multiplayer Support: TCP vs UDP?by DesignsbyZephyr
3,231 views
-
12:14
Preparing for Multiplayerby Programmer extraordinaire
4,895 views
-
6:52
My 1st Unova Sprite Fusion, FOOLZ!by The Wandering Artist (is...back?)
441,510 views
-
27:48
Pixel Arts - How to make custom Pokemon Trainer Sprites (Part 1)by SilverLeagueNetworks
16,564 views
-
15:51
Minecraft: Trolling! Episode 52 - Java (Part 2)by ZexyZek
176,800 views
-
1:38
Ethanon 2D Game Engine entities and scene editorsby AndreSan87
38,020 views
-
1:17:27
Chillstep Selection #10by OnlyChillstep
1,489,209 views
-
14:59
How to make simple game engine in Javaby Paulgramming
67,703 views
Top Comments
DracoSense 1 month ago
Used all the code and made sure its exactly the same as Zephyr's yet i get this error (when running it).
Exception in thread "main" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(Unknown Source)
Note that when i said i used all the code i obviously put my own names for classes but made them consistent. Please help any1?
Sign in to YouTube
Sign in to YouTube
hugovanwettum 2 months ago
TADAAA!
I made a download link for the sprite sheet:
Go to dropbox.com, and paste this behind it:
/u/60012638/SpriteSheet.png
Sign in to YouTube
Sign in to YouTube
All Comments (184)
Andrew Andrei 23 hours ago
input == null means it has no image to load
Sign in to YouTube
Sign in to YouTube
Michael Choi 4 days ago
how?
Sign in to YouTube
Sign in to YouTube
Koen van den Brink 4 days ago
wow, thanks man, I tried for half an hour, and you just saved my weekend xD
Sign in to YouTube
Sign in to YouTube
Bob Lee 1 week ago
nvm i solved my problem. :)
Sign in to YouTube
Sign in to YouTube
Bob Lee 1 week ago
im having a similar problem to Draco, except i double checked the name of my image, and i am getting:
Exception in thread "main" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1348) at gfx.SpriteSheet. init(SpriteSheet.java:25) at game.Game. init (Game.java:40) at game.Game.main(Game.java:30)
Java Result: 1
Sign in to YouTube
Sign in to YouTube
Neterskian 1 week ago
It means that you're not calling the right file: private SpriteSheet spriteSheet = new SpriteSheet("/sprite_sheet.png");
Check that the name of the sprite sheet image you made is the same as in the code (between the quotes). That fixed it for me :)
Sign in to YouTube
Sign in to YouTube
Zack Censored 1 week ago
Hmmm
Sign in to YouTube
Sign in to YouTube
fawful467 1 week ago
press F5 and it should refresh
Sign in to YouTube
Sign in to YouTube
GamingBullsTV 1 week ago
System.out.println()(pixels[i]); it says The left-hand side of an assignment must be a variable help pls
Sign in to YouTube
Sign in to YouTube
Wagnva 2 weeks ago
delete the .png in your path
Sign in to YouTube
Sign in to YouTube