This site requires JavaScript, please enable it in your browser!
Greenfoot back
Trystar360
Trystar360 wrote ...

2017/5/23

Condense code

1
2
Super_Hippo Super_Hippo

2017/5/25

#
My map should have been this (forgot all the commas)...
private int map[][] = //0=nothing, 1=Wall
{
    {1, 1, 1, 1, 1, 1, 1},
    {1, 0, 0, 0, 0, 0, 1},
    {1, 0, 0, 0, 0, 0, 1},
    {1, 0, 0, 0, 0, 0, 1},
    {1, 0, 0, 0, 0, 0, 1},
    {1, 0, 0, 0, 0, 0, 1},
    {1, 1, 1, 1, 1, 1, 1}
};
It's up to you if you prefer numbers or letters, it should do the same.
You need to login to post a reply.
1
2