Welcome, Guest. Please login or register. Did you miss your activation email?

Poll

Rate :)

Boring
0 (0%)
Good enough
1 (33.3%)
Very Fun!!
2 (66.7%)

Total Members Voted: 3

Author Topic: Hungry Snake 1.1 Released!!!  (Read 5876 times)

0 Members and 1 Guest are viewing this topic.

Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Hungry Snake 1.1 Released!!!
« on: November 13, 2012, 12:00:42 am »
Hungry Snake 1.1 is now released!

download at:
http://www.mediafire.com/?u8ucz7m1lucalq3

Changelog:
- Rat stealing your food
- Healthpack
- Some other minor bugfixes, balances and features


Remember to uninstall the 1.0 if you have it... because i dont know how to make it able to update instead of installing a whole new version.

Also, A big thanks to you all for helping me in the forum, especially to exploiter!!  :D

Images & Sounds Credits goes to:

Tibia
http://www.freesound.org/
Google
« Last Edit: November 17, 2012, 10:30:10 pm by Assassinbeast »

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #1 on: November 13, 2012, 02:39:15 am »
Very nice. :) I played a little bit today; will play more tomorrow.

Two things I noticed:
    1. There is no music during the main segment. Maybe you can add some 'tense' music when one is about to die.
    2. The close window button is not working (don't know if you intended it this way).

This game gives me a warm feeling inside.  :)



Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #2 on: November 13, 2012, 12:39:56 pm »
Quote
Very nice.  I played a little bit today; will play more tomorrow.

Thank you   :D

Quote
  1. There is no music during the main segment. Maybe you can add some 'tense' music when one is about to die.

Hmm yes, theres still alot of improvements i have to make   ;D

Perde

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #3 on: November 13, 2012, 01:03:20 pm »
In addition to what kaB00M wrote:
After some seconds of gameplay this happens (attachment). However, the game still remains playable.
Also the menu is very unresponsive on first start-up. Reminds me of an old issue I had with the 2.0 RC.

(I did not install the game however, I extracted the files from the disk1.cab. I don't see a reason for a setup, at least not for such a tiny game.)

[attachment deleted by admin]
« Last Edit: November 13, 2012, 03:39:58 pm by Perde »

Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #4 on: November 13, 2012, 03:43:07 pm »
Quote
After some seconds of gameplay this happens (attachment). However, the game still remains playable.

Hmm... i have to fix that somehow  :-\

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #5 on: November 13, 2012, 03:45:03 pm »
Quote
After some seconds of gameplay this happens (attachment). However, the game still remains playable.
Hmm... i have to fix that somehow  :-\
You have to poll the events otherwise the OS thinks the application doesn't work properly anymore.

By doing so you should also handle the sf::Event::Closed event, it's quite annoying not being able to close the window whenever wanted. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #6 on: November 13, 2012, 05:44:35 pm »
Quote
You have to poll the events otherwise the OS thinks the application doesn't work properly anymore.

What do you exactly mean by i have to "poll the events"? What kinds of events? I have no events on my loop when playing the game.  I only use:

if (sf::keyboard::iskeypressed(sf::keyboard::up))

and things like that.

Do you mean that i just need a "if(mywindow.pollevent(ev))" code inside my loop and the problem is solved?
 


Perde

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #7 on: November 13, 2012, 05:49:48 pm »
This may be of interest to you:

From tutorial:
Quote
A mistake that people often do is to forget the event loop, because they don't care yet about handling events (they use real-time inputs instead). But without an event loop, the window won't be responsive; indeed, the event loop has two roles: in addition to provide events to the user, it gives the window a chance to process its internal events too, which is required so that it can react to move or resize user actions.

Sometimes I wonder why I waste so much time writing tutorials. It blocks the release of SFML 2.0 and people never read them anyway.
Source: http://en.sfml-dev.org/forums/index.php?topic=9701

Also you should really consider eXpl0it3rs last line. Have you ever tried to close your game by ALT+F4 or clicking on the close button on the top right of your window?
« Last Edit: November 13, 2012, 05:54:34 pm by Perde »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #8 on: November 13, 2012, 06:00:08 pm »
What do you exactly mean by i have to "poll the events"? What kinds of events? I have no events on my loop when playing the game.  I only use:

if (sf::keyboard::iskeypressed(sf::keyboard::up))

and things like that.

Do you mean that i just need a "if(mywindow.pollevent(ev))" code inside my loop and the problem is solved?
Read the tutorial: Events

And when I say 'poll events', what do you think fits better 'isKeyPressed' or 'pollEvent'... ::)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MrMuffins

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #9 on: November 14, 2012, 05:21:51 am »
I die as soon as it starts :(

Its like its super accelerated or something.

Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #10 on: November 14, 2012, 06:40:10 pm »
I die as soon as it starts :(

Its like its super accelerated or something.

Its fast, but you souldn't die as soon as it starts  :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #11 on: November 14, 2012, 07:38:50 pm »
Its like its super accelerated or something.
Its fast, but you shouldn't die as soon as it starts  :)
He probably meant fast, as in uncontrollable fast...
Is you movement depending on the framerate?
Keep in mind that although you can set VSync in SFML, there's no guarantee that it actually does work. One can always deactivate it in the driver settings. Thus you should always make your movement framerate independent.

@MrMuffins: Is VSync forced off in your settings?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MrMuffins

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: My new game released!! HUNGRY SNAKE 1.0
« Reply #12 on: November 14, 2012, 09:38:43 pm »
I'm using a laptop with mobile intel graphics. And..it appears I don't have anything related to vSync.

Now that you've mentioned it, I checked the fps and I'm getting over 400 fps  :o

Assassinbeast

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: Hungry Snake 1.1 Released!!!
« Reply #13 on: November 17, 2012, 03:27:14 pm »
Btw, i wont update this game anymore for a long time, because im thinking about going back to general c++ and learn some more about polymorphism, inheritance, pointers, etc etc since i suck at it  :P