Author Topic: [C] Minesweeper  (Read 12342 times)

0 Members and 1 Guest are viewing this topic.

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: [C] Minesweeper
« Reply #15 on: January 20, 2014, 08:14:34 pm »
I like the scrolling :D

Btw you should use the modify button :P
« Last Edit: January 20, 2014, 08:14:50 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [C] Minesweeper
« Reply #16 on: January 21, 2014, 01:24:01 am »
Please Siappy, unless the last post is quite old, refrain yourself from doing double posting, okay?

By the way, the only thing we have to do is clean&comment the source.
« Last Edit: January 21, 2014, 01:25:40 am by Eiyeron »

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: [C] Minesweeper
« Reply #17 on: January 21, 2014, 01:26:29 am »
That was a quite ironic double-post Eiyeron. :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [C] Minesweeper
« Reply #18 on: January 21, 2014, 01:27:21 am »
Yup, and I'd like to thanks the mobile network and the tunnels to make that scene quite fun.

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: [C] Minesweeper
« Reply #19 on: January 21, 2014, 01:28:32 am »
That tends to happen more on my actual computer than mobile for me. When the AJAX posting is stalled and do nothing, two copies of my post appear sometimes. >.<
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [C] Minesweeper
« Reply #20 on: January 21, 2014, 01:29:33 am »
That's irritating when you want to erase the first and you can't because the signal is insuffisant

Oh and when Siappy finishes c&c-ing, I'll add Eye-candies everywhere.
« Last Edit: January 21, 2014, 01:34:30 am by Eiyeron »

Offline Siapran

  • LV3 Member (Next: 100)
  • ***
  • Posts: 58
  • Rating: +28/-1
  • Space Dwarf
    • View Profile
Re: [C] Minesweeper
« Reply #21 on: January 21, 2014, 04:57:40 am »
fixed the double post

by the way, feel free to suggest new features/improvements/eyecandy
The next big step is to add a menu, so that the player can chose the dimension of the grid, and manage saves

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [C] Minesweeper
« Reply #22 on: January 21, 2014, 06:11:08 am »
As DJ said, i like the scrolling, and it is looking pretty good over all :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Siapran

  • LV3 Member (Next: 100)
  • ***
  • Posts: 58
  • Rating: +28/-1
  • Space Dwarf
    • View Profile
Re: [C] Minesweeper
« Reply #23 on: January 22, 2014, 08:03:26 am »
v0.9.1 UPDATE

~ fixed timer
~ SH4 compatibility [EDIT] apparently not...


control explanations:
« Last Edit: January 22, 2014, 08:49:37 am by Siapran »

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: [C] Minesweeper
« Reply #24 on: January 25, 2014, 12:28:00 am »
Looks pretty good! :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [C] Minesweeper
« Reply #25 on: January 25, 2014, 12:34:10 am »
I don't know much about Casio hardware, but would it be possible to add grayscale? It would look a lot better than the dithering in those unrevealed tiles.

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: [C] Minesweeper
« Reply #26 on: January 25, 2014, 12:46:15 am »
Since the calc runs at 29 MHz (or 58 for newer models) and both can be overclocked a bit, I'm pretty sure it could, but I don't know how that particular LCD works. If motion blur is non-existent like the HP 39gII, then grayscale would only work if the LCD supports multiple shades of gray like the 39gII one.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [C] Minesweeper
« Reply #27 on: January 25, 2014, 04:31:00 am »
I don't know much about Casio hardware, but would it be possible to add grayscale? It would look a lot better than the dithering in those unrevealed tiles.
Well, grayscale is quite the hard thing here.

First, we don't have an ASM community, there are only 2-3 guys who touched sh3 ASM here. So we have to deal with the speed/size loss from programmin in C. Nothing is as optimized as it could be in Axe or z80 ASM. (I'm one of them but I'm still searching a way to code iin ASAM with GCC in Wondws. Do you have a sh3-elf based GCC  here with the right tools to compile for Graph family, for Windows?)

Next, in C, having a stable timer-based grayscale has been very hard. We have to deal with a bugged timer and maybe jump limitations. Having a too big addin with grayscale make the calc directly crash. Nothing to debug this. :/

EDIT :I havee to add that grayscale addins exists, but Graph 35 and 75/85/95 have almost each of oine different reaction to theses addins. The G35+ have for instance a too dark constrast set each time that an addin tries to correct it, and the screen timers are differents for each model...

Third the screen is made to imporve readibilty, it don't have enough "motion-blur"/"afterglow" to have a nice 4-grayscale. Only almost perfect 3 grayscale is possible for Graph 35+. The rest is quite flicky.

Fourth, we didn't tried the Axe method, but as the screen is "better" than TIs, that can be too flicky to be good. I have to test that.

So... Monochrome is fine too! :p
« Last Edit: January 25, 2014, 04:33:30 am by Eiyeron »

Offline Siapran

  • LV3 Member (Next: 100)
  • ***
  • Posts: 58
  • Rating: +28/-1
  • Space Dwarf
    • View Profile
Re: [C] Minesweeper
« Reply #28 on: January 25, 2014, 03:29:07 pm »
I had originally planned on making this minesweeper a grayscale game:



however, the HITACHI compiler had this very annoying obsession of building timer-based add-ins that systematically send out a magnificent EXCEPTION BLOCKED RESET on run.
so after a few turned over tables and smashed keyboards, I calmly decided to downgrade the graphics to monochrome:



I then reworked the sprites to a slightly different style.
« Last Edit: January 25, 2014, 04:10:35 pm by Siapran »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [C] Minesweeper
« Reply #29 on: January 25, 2014, 06:29:31 pm »
The monochrome is looking just fine IMO ;)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!