Snowland

Snowland

You need to be logged in to rate pixel art.

 

Pixel Art Details

Snowland



user
Title: Snowland
Pixel Artist: Quarry  (Level 1 Rookie :: 141 points)
Posted: 9/22/2012 01:33
Palette: 4 colors
Statistics:  8 comments    15 faves    0 avatars

 I wrote some code that generated the landscape, trees and the moon. There are 4 colors total and it's resized by 2 with NN. Character was added by me, not the code.

Discussion

If you would like to comment you will need to be logged in. Register now. It only takes a moment and it's free.


user
7heSama (Level 2 Flatfoot) @ 8/13/2013 21:13

Shadows on the trees should not be on the side facing the moon.


user
Victor Rojo (Level 10 King Ghidorah) @ 9/25/2012 02:12

this piece have something special...


user
JerryPie (Level 11 Big Foot) @ 9/24/2012 23:13

im really really liking this


user
Elastico-Gadget (Level 2 Kukyu) @ 9/24/2012 10:37

Neat and very nice ! My new wallpaper.

http://elasticogadget.files.wordpress.com/2012/09/capt.gif


user
cirpons (Level 5 Soldier) @ 9/22/2012 09:25

I figured as much,but was a lazy ass to write the code myself. :D

Good job anyway.


user
Quarry (Level 1 Rookie) @ 9/22/2012 08:13

Not the code, but the algorithm is very simple. I just randomly get the main trunk height, for every pixel upwards I check if it should branch out. If it should, then it goes to left/right for a specific amount and goes up by the height of the branch. At the end of the trunk and branches a rectangle is drawn, which is proportional to the length of the trunk/branch it's connected to (proportional as in multiplied by a factor and also added with a random value to make it look neater and less repetitive)

That doesn't include the polish (shadow lines) generation, which are simply darker lines on the left of the rectangles and lighter lines on the right of the trunks/branches.

For the terrain, the top snow layer is a basic pattern. The dirt has 2x2 and 5x5 squares placed not totally random (when I did fully randomized generation a lot of them overlayed eachother) but with a kind of complex equation that uses a couple of randomization parameters to have a neat look. The moon is 24x24 and use a an equation very similar to the dirt's, it has the same shadow effect as the rectangles.

And lastly, the snow/stars (whatever you want them to be) is just randomly placed. Little ones have 80% (0-3 in 0-5) and bigger ones have 20% chance of being placed.

I think it's not really that simple...


user
smk (Level 6 Hitman) @ 9/22/2012 06:03

Make that a double.


user
cirpons (Level 5 Soldier) @ 9/22/2012 05:34

Interesting. Mind sharing the code? ;D


Related & Tags


snow winter simple ninto, Snowland avatars, Snowland icons, Snowland pixel art, Snowland forum avatars, Snowland AOL Buddy Icons

Sponsored Products

Donate

Want to give some dough back to all those amazing pixel artists? Donations provide prize money for contests, help cover hosting costs and support new initiatives.

Farm Fresh Sketch Comedy
Play party games with QuizBash app
Play party games with QuizBash app

Report Problem

If you are going to report an issue with this piece please provide relevant URLs/Images to back up your claim on PJ Discord.

Register

If you would like to be a team player why not register? It's quick and easy and you'll be able to comment on, rate and upload pixel art.

Already Registered?