Author Topic: Picross (Clone)  (Read 20019 times)

0 Members and 1 Guest are viewing this topic.

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Picross (Clone)
« on: October 24, 2010, 09:32:41 pm »
So, me and geekboy have been talking on IRC about making a 2D Picross clone. For those who are unfamiliar with it, you can find results by either Googling "Picross" or "Nonogram" (which seems to be what it's supposed to be called). He said something about making his entry in Axe and my entry as an App.

So, if you're looking at the breadcrumbs above the topic, you're probably gonna wonder why I posted this under the E:SoR subforum. The reason behind this move is a bit of a stretch, but bear with me.

I intend on using a modified version of E:SoR to build the game. This modified version was originally built for a rickroller, found here: http://ourl.ca/4114/75957

Source is included in it so if you know what you're doing, you can beat me to the punch. So... what do you think?

EDIT: To clarify, I'm only intending on doing this thing. The link to source was what I'm working with to make this game.

EDIT2: For a download link, find the attachment on this post: http://ourl.ca/7598/135642
« Last Edit: January 14, 2011, 03:02:49 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Picross (Clone)
« Reply #1 on: October 25, 2010, 12:29:07 am »
the game.
...

Quote
this game.
That's better.

Joking aside that seems like a great project. Will you be able to post screenshots soon? :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #2 on: October 25, 2010, 08:06:46 pm »
Still working on the thing. It's rather bland and I haven't coded very much yet. Here's a screenshot of what I have so far (other than the equally bland title screen).
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Picross (Clone)
« Reply #3 on: October 25, 2010, 08:21:04 pm »
Nice. Are they mostly mockups or do you have some of the coding (besides the engine you are using) done?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #4 on: October 26, 2010, 04:14:56 pm »
Some of the coding has been done. Those screenshots are of the actual engine doing its work. Well... it's what's been done of the engine. I've also got the cursor to work and it lets you chisel tiles. It also lets you mark them if you know they're not valid. It also locks out the tiles so you have to revert them to blank tiles before you can change their status, so you don't accidentally chisel out tiles that have been marked off for not chiseling.

I don't actually know what the appropriate terms are, but I'm basing these terms off of the Mario's picross (GB) thing that I saw a YouTube video for.
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #5 on: October 26, 2010, 07:57:09 pm »
I know it's a double post. Just got a screenshot going of what I have so far.
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Picross (Clone)
« Reply #6 on: October 26, 2010, 08:02:27 pm »
epic looking although may i ask how you stored the info for the different tyle mars eg how it can tell weather its a x or a [] ( mark or marked with the x) as i just wonder if there is a better way then storing a byte map for each of them X.x

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #7 on: October 26, 2010, 08:16:31 pm »
The way I do it is a rather roundabout way, since I built it using structures provided by the E:SoR menu system and rendering routines. I'm basically using a piece of the game's "textshadow" buffer as an array.

The way you should probably do it is to keep your table in something like a matrix or some 2D array. This table should be completely independent of the image you're supposed to be making, but... the contents of this array should be something like sprites where an empty tile would be... well. Empty. A [ ] tile would be some other value, and x tiles would be yet another value. When you go to compare the contents of the game area to the image you're supposed to be recreating, just recreate a binary of the image given your [ ] tiles versus your non-marked tiles. Non-marked would be 0 and [ ] tiles would be 1, where the x tiles would be ignored in the reconstruction of the image.

Should the image match what you have, then you've won the game. If you are trying to do something like a timer and penalize the player for incorrectly marking a tile as [ ], then you should try something like the following:

After you have reconstructed the image, compare it against the original in this manner:

(original xor playarea) and playarea

If there's any nonzero things as a result of that operation, then you know that a player tried to chisel out a tile in the wrong spot.

At any rate, and to attempt to answer your question...

I find it better to keep your images as a binary, and your play area as an array. Only when the array changes between a marked [ ] tile and an unmarked tile, should the array be silently converted in the background back to a binary file and compared directly between your source or solution image.
« Last Edit: October 26, 2010, 08:18:29 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline Geekboy1011

  • The Oneironaut
  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Picross (Clone)
« Reply #8 on: October 26, 2010, 08:18:46 pm »
awesome that helps a lot ty iambian ^_^

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #9 on: October 26, 2010, 09:14:07 pm »
Changed the mid-border line to black. It was white. I think it looks better.
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Picross (Clone)
« Reply #10 on: October 26, 2010, 10:12:13 pm »
Hmm... odd. Cool, but odd. =) I look forward to seeing it finished. =)

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Picross (Clone)
« Reply #11 on: October 27, 2010, 12:41:32 am »
The game can now tell if you've won. When you start marking the board white, a small number appears below the title thing. When it turns to a "1", you know you've solved the thing. You can see me playing around with it.

And, yes. I'm looking at the solution as I'm doing the puzzle, so don't get any ideas. I just wanted a quick way to test the thing out.

Maybe tomorrow, I'll make it a little fancier.
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: Picross (Clone)
« Reply #12 on: October 27, 2010, 12:44:20 am »
Man you work fast Iambian. Ha looks good, I always sucked at this game though.

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Picross (Clone)
« Reply #13 on: October 27, 2010, 12:48:44 am »
Very nice!  8)

Although I've never played this game.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Picross (Clone)
« Reply #14 on: October 27, 2010, 01:14:16 am »
This looks simple but really great at the same time. Nice job so far Iambian. :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)