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

Author Topic: Plataforma - ALL ABOUT CUSTOMIZATION  (Read 22211 times)

0 Members and 1 Guest are viewing this topic.

datMoka

  • Newbie
  • *
  • Posts: 48
  • Wooo!
    • View Profile
Re: Platform - The simple platformer game
« Reply #15 on: April 06, 2013, 03:29:11 pm »
No, I mean the implementation of the code.

Do you have your character moving on screen? How did you do that? using acceleration?

Try to make him move upwards but on every "refresh" (every tick, every time it loops, or however you call it) gravity pulls him down. It's easy to think about it if you have some physics knowledge.  :)

Say you used frame rate to continually move the character left and right by using setPosition what you'd want to do is when the player jumps, decrease the amount they move (speed) each time the jump loop goes around. This will continue until you reach the peak of their jump; this is where the movement factor reaches 0 and then starts to delve into the negatives which will bring the player back down to earth.

          0
        1 -1
      2     -2
    3         -3        <--basic little demonstration where the numbers equal the speed of the character
  4             -4
5                 -5

This is a basic theory of implementing gravity into the game; hope this helps a little :)

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Platform - The simple platformer game
« Reply #16 on: April 06, 2013, 04:37:04 pm »
What datMoka said is correct. However, remember that the Y axis is "flipped" in computer graphics. So if you want to go upwards, the speed is negative and viceversa.

If you didn't understand what we said, I'm pretty sure there are tons of jump implementations on the internet. Google is your friend.

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Platform - The simple platformer game
« Reply #17 on: April 08, 2013, 02:48:16 am »
Platform - VERSION 0.9

What's new?
New settings loader and saver!
New in-game settings menu

Bug control:
Fixed the bug where your jump would reset if you were pressed against a wall (Thanks Gobbles!)

Donwload link (Only windows OS for now)(~12MB): http://www.mediafire.com/?t93x7xauupxkdjs

N1ko

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Platform - The simple platformer game
« Reply #18 on: April 09, 2013, 06:25:43 pm »
Good job, I played through it and it was alright, the gameplay felt fluid other than the stick to wall bug (that you seem to have fixed now but I used to download link from the OP).

Obviously a WIP but so far so good.

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Platform - The simple platformer game
« Reply #19 on: April 21, 2013, 10:26:51 pm »
I'm glad you liked it ;D

New version! 1.0 RC
The Whole game(12MB only windows): http://www.mediafire.com/?4db266hs684whma
Update from 0.9 to 1.0 RC(448KB): http://www.mediafire.com/?5o5xdw2co3yul81

What's new?
Five new levels! (What goes up... set)
Improved the settings saver/loader.
You can now choose to show or hide the FPS.
Accent support (á, é, ö, etc).
German translation! (Thanks AlexAUT)
Small changes to the existing levels (to make them more fair)
Lots of change behind curtains, such as elminating all the "using namespace sf", and making everything more efficient.

As always, enjoy! :)

AlexAUT

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Re: Platform - The simple platformer game
« Reply #20 on: April 23, 2013, 02:05:26 pm »
Love the new Levels  ;D Can't wait for more...

Do you use an editor to create the levels or do you hardcode them?



AlexAUT

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Platform - The simple platformer game
« Reply #21 on: April 23, 2013, 07:56:09 pm »
I'm glad you liked them ;D

I use Tiled to help me, but I am using a custom loader, as I don't need most of the stuff Tiled gives.

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Platform - The simple platformer game
« Reply #22 on: April 24, 2013, 03:23:09 am »
I realized that was a poor explanation, what I do is this: I have the sprite sheet.png (you can view this in "recursos/imagenes" folder) and I load it on Tiled. I use Tiled to create the map, and then export it to .txt. Afterwards, I delete some things (like headers for example) that are present on the exported .txt, but I don't want and therefore my custom loader doesn't recognize.

The tiles(rectangleShape) are loaded (tile size is dependant of the game resolution) one by one, and then I apply the correspondent sf::Texture to each. Actually, it's the same texture (the sprite sheet) but rectanlgeShape has a method (setTextureRect) that lets me grab only a portion of the sprite sheet.

Unfortunately, there's a bug (I think it's related to the sf::view, and not the sf::rectangleShape) where one line of pixels will load wrong, and so you end up with a line of wrong pixels on your texture. This is a known issue and they will fix it (I hope) for SFML 2.X. In other words, won't be fixed for SFML 2.0

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #23 on: November 22, 2013, 01:26:53 am »
Hey guys, it's been a while!

Plataforma got approved on Desura! http://www.desura.com/games/plataforma

I modified the first post to include the most important info. If you have any question about the game post it below and I'll try to answer it!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10195
    • View Profile
    • development blog
    • Email
AW: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #24 on: November 22, 2013, 02:24:28 am »
Nice!
Will make sure to grab a copy! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #25 on: November 22, 2013, 06:57:43 am »
Nice game :)

Is it opensource?

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #26 on: November 22, 2013, 03:34:25 pm »
Thanks!

Not for the moment. I thought about making it open source, but between the poorly commented code, and the fact that the variable/method names are in spanish, I don't think is a good idea.

However, if you have any doubts about how I made something in particular(map loader, settings loader, etc etc), let me know and I'll answer!

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #27 on: November 27, 2013, 05:55:31 pm »
Hey guys!

A big important aspect of Plataforma is its customization. That's why I made a few videos explaining how to edit and create levels, characters, and sprite sheets. They have SPANISH audio, but ENGLISH subtitles. You can activate de subtitles, by activating CC.

Levels
http://www.youtube.com/watch?v=KCii-CfnAdw&list=SPwC7J3kDJcx7kFOrwoBbLvAJ0hsSuW7de&index=1

Characters/Sprite sheets
http://www.youtube.com/watch?v=deoGwW_Xffs&list=SPwC7J3kDJcx7kFOrwoBbLvAJ0hsSuW7de&index=1

If you want to know what I made to make it work, let me know and I'll try to explain it to you!

Cheers

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #28 on: December 12, 2013, 12:04:59 am »
Hey guys, I just started a Devlog!

What's this devlog about?
I am planning to make a series of Devlogs where I talk about Plataforma, what changed I've made, and what's coming.

What's this episode about?

In the first episode I talk about Puzzles pack and changing the way the camera moves. I show a few puzzles levels I made. Also, I've made a few aesthetic changes to the menus.

You can watch it embedded here:
 http://www.youtube.com/watch?v=myDF5a1SiQU

How can I contribute to the game?

  • Creating characters
  • Creating sprite sheets
  • Creating levels

If you made a cool looking character, a fancy level, or a hefty sprite sheet, you are more than welcome to post it on the forums: http://www.desura.com/games/plataforma/forum


Please note that Plataforma is free, and will continue to be free. I'd appreciate if you could send a buck or two, as it helps me to continue focusing on Plataforma.

I hope you enjoy both the game and the devlog!
« Last Edit: December 12, 2013, 12:11:02 am by santiaboy »

santiaboy

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Plataforma - ALL ABOUT CUSTOMIZATION
« Reply #29 on: January 31, 2014, 09:01:32 pm »
Oh boy, forgot to update this ;D

I continued making the devlog, below there's #2 and #3. What changed? New music, all the high score implementation, new jump sound, aaand a cool intro.

http://www.youtube.com/watch?v=C1SYrgSDbq8

http://www.youtube.com/watch?v=L01aXwGzkMw

How can I contribute to the game?

  • Creating characters
  • Creating sprite sheets
  • Creating levels

If you made a cool looking character, a fancy level, or a hefty sprite sheet, you are more than welcome to post it on the forums: http://www.desura.com/games/plataforma/forum


Please note that Plataforma is free, and will continue to be free. I'd appreciate if you could send a buck or two, as it helps me to continue focusing on Plataforma.

I hope you enjoy both the game and the devlog!