Author Topic: Sokoban gam  (Read 18000 times)

0 Members and 1 Guest are viewing this topic.

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Sokoban gam
« on: January 04, 2014, 04:09:59 pm »
Hello!

This is my first post in omnimaga.

I'm still learning a little bit about the commands and possibilities of this excellent machine.

I started working on developing a version of the game Sokoban. Using tiles of 16x16 bits and I'm using the touch screen to control the movements of "pusher".


I made one (the first one!) video of the game:

[ Invalid YouTube link ]

The "Beta 1" version only has 10 levels, and keeps track of the number of moves made and the amount of pushes made.

They are the first ten levels of the DOS version about 30 years. ... They are difficult to solve, but not impossible :crazy:. Enjoy!  ;D



The pusher moves touching the edges of the screen. I did not use keys courses to preserve the "health" of the keyboard.

Soon more levels.  ;D

PS: Remember.....is a "Beta", there are features that have not yet been implemented. DOWNLOAD THE GAME
« Last Edit: January 04, 2014, 04:11:59 pm by ArielP »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Sokoban gam
« Reply #1 on: January 04, 2014, 04:15:47 pm »
Heya and glad to see you around here :D. I just saw this on the MoHPC forum and was impressed by the graphics. It's nice to see more HP Prime games using the ICON/DIMGROB features to their full potential. :)

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #2 on: January 04, 2014, 04:19:44 pm »
Hello!
He had visited many times this forum, but as my native language is Spanish, usually only limited me to read the post of its users.

I can read the English language pretty well, but writing takes me a little. I hope you can understand me;)

I am a beginner. Buy HP Prime makes it about a month, so surely my contributions will be quite poor (at least for a few months).

I live in Argentina, I'm 45, and I like electronics, programming (in general) and mathematics. Surely I will see around here often.

Greetings!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Sokoban gam
« Reply #3 on: January 04, 2014, 04:32:22 pm »
Aaah ok I see. From what I could see on MoHPC and here so far, though, your English seems pretty understandable in general (more than certain Americans who speak English as native language :P). Since many users here are French, German, Polish and Dutch, they usually don't mind grammar errors from those users. :)

And yeah I started HP PPL programming in March on the HP 39gII, but that calculator was so buggy that I had to reflash it every hour or so. When the HP Prime emulator came out, I started experimenting with what I knew and when Critor ran some of my programs, I was amazed. Even without DIMGROB and BLIT, I still got a Tunnel to run at 60 images per seconds (now 90 FPS after optimizing), then I found the image commands. I just need more time and motivation to finish some of my project ideas.

Anyway, for the game, I just played it and it was quite fun. I managed to finish the first level at least. I wonder if you could add small translucent arrows on each side with the FILLPOLY command so that we know where to place our fingers on the screen to move around? Because I sometimes found myself trying to move, to no avail, due to touching the screen at the wrong location.
« Last Edit: January 04, 2014, 04:33:06 pm by DJ Omnimaga »

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban game
« Reply #4 on: January 04, 2014, 04:37:48 pm »
Yes!

I have some ideas:
1) Translucent arrows over the secreen ( ;) )
2) "Escape" for abandon the game
3) Animated character for the "pusher"
4) Four levels: Beginner, Basic, Hard, Very Hard
5) Splash screen at begining
6) Help on game

.....buy i need time for need time for all that ;)
« Last Edit: January 04, 2014, 04:39:14 pm by ArielP »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Sokoban gam
« Reply #5 on: January 04, 2014, 05:37:05 pm »
That would definitively be great additions!

Also nice avatar, I still need to grab an HP 50g at one point, but they're more expensive than the TI-Nspire CX CAS over here ($207.99), so I'll have to look for some online deals.

By the way, I noticed something at the start of the game: The field is not rendered instantly. It gradually appears on the screen. Do you draw everything directly to G0 or do you use one of the extra GROBs? If you use another GROB than G0 it could reduce risks of flickering (although I haven't encountered any so far) and you could add some effects like transitions between screens (like this screenshot, although the fade-in part can be annoying to implement x.x)
« Last Edit: January 04, 2014, 05:40:53 pm by DJ Omnimaga »

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: Sokoban gam
« Reply #6 on: January 04, 2014, 05:40:33 pm »
This is looking awesome so far!
Keep up the great work! :)

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

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #7 on: January 04, 2014, 06:07:40 pm »
That would definitively be great additions!

Also nice avatar, I still need to grab an HP 50g at one point, but they're more expensive than the TI-Nspire CX CAS over here ($207.99), so I'll have to look for some online deals.

By the way, I noticed something at the start of the game: The field is not rendered instantly. It gradually appears on the screen. Do you draw everything directly to G0 or do you use one of the extra GROBs? If you use another GROB than G0 it could reduce risks of flickering (although I haven't encountered any so far) and you could add some effects like transitions between screens (like this screenshot, although the fade-in part can be annoying to implement x.x)

Hello again!
I have several calculators, most of them very old. I collect "home computers" and old calculators, so many of which have become obsolete.

The HP50G is an excellent machine, which these days leave with my son to another city. My son is going to start studying to be an engineer, and HP50G will be of great help.

As GROB, "think" I'm working on G1, I have not yet clear how the graphics system of the HP Prime (there is very little documentation!) Works.

Also notice that I draw the screen from top to bottom (in that order is that the program processes the contents of the array that stores the description of each board)

This is looking awesome so far!
Keep up the great work! :)

Thanks!!!!


Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #8 on: January 05, 2014, 07:39:45 am »
Hello!

The level 1 has one cube missing. Solved in Beta 1.1 (Download)

Sorry :)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Sokoban gam
« Reply #9 on: January 05, 2014, 07:57:38 am »
Pretty cool looking. :thumbsup:

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #10 on: January 05, 2014, 10:06:13 am »
Thanks!

PS: Working in more levels/options:

Offline Handmixer

  • LV2 Member (Next: 40)
  • **
  • Posts: 21
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #11 on: January 05, 2014, 11:05:22 am »
The date in the lower part of the png should proberbly be Jan/2014

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Sokoban gam
« Reply #12 on: January 05, 2014, 01:59:28 pm »
I like the title screen! :)

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #13 on: January 05, 2014, 07:10:28 pm »
The date in the lower part of the png should proberbly be Jan/2014

Ups! ;) Fixed!

I like the title screen! :)

Gracias!

Offline ArielP

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Sokoban gam
« Reply #14 on: January 06, 2014, 05:24:34 am »
Hello!
It's almost ready the new Beta.

I have added:

1) Main Menu
2) Four levels of difficulty
3) 40 boards (and growing!)
4) Display of score obtained
5) Bye bye screen


Working:
1) Control the keyboard (almost finished)
2) Language (Spanish / English)

Some screenshots of this version:






In a couple of days will be completed.