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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JuDelCo

Pages: [1]
1
SFML projects / [SFML2.1] Pong, Snake, Arkanoid, Tetris and Pacman games
« on: September 12, 2013, 10:55:42 pm »
First off, I made these games with objetive of learn how to make games (because I never finished one, I'm always reading docs and things but I never convinced to finish a project, so I decided to make a serie of games from the very basics to others more complicated. These games were done in a few hours each one (except Pacman, because it's more complicated) with the simplicity idea in mind (remember, the purpose was to finish them, not make it cool or perfect but functional and bugfree).

All of these games are built with SFML 2.1 + GCC (MinGW for windows). The base code is the same for all games (its the reason all games are located in "Game/" folder and all code base is in "Engine/". The engine was very bad designed and lacks of everything. This is because I made it before the games (Guys, DON'T make a "engine" if you don't know which will be your game requisites exactly, in other words, don't make it if you didn't finished a few games before so you will know exactly what you'll need).

So let's begin:

---------------------------------------------------------------------------------------

Pong



Download (Win x86): http://www.mediafire.com/download/aidxwov5tnirz39/Pong.rar
Source: https://github.com/JuDelCo/SFML2-Game

Controls:
  • Arrows: Movement
  • F1: Reset
  • Escape: Exit game


Snake



Download (Win x86): http://www.mediafire.com/download/yawhlmagt29nvab/Snake.rar
Source: https://github.com/JuDelCo/SFML2-Game

Controls:
  • Arrows: Movement
  • F1: Reset
  • Escape: Exit game


Arkanoid



Download (Win x86): http://www.mediafire.com/download/vb44w8bu4o8g7nw/Arkanoid.rar
Source: https://github.com/JuDelCo/SFML2-Game

Controls:
  • Arrows: Movement
  • F1: Reset
  • F2: Mute/Unmute SFX
  • Escape: Exit game


Tetris



Download (Win x86): http://www.mediafire.com/download/1nbp31bbkatzie2/Tetris.rar
Source: https://github.com/JuDelCo/SFML2-Game

Controls:
  • Arrows: Movement
  • Space: Rotation
  • F1: Reset
  • F2: Mute/Unmute SFX
  • F3: Switch Modes (Normal / Hard)
  • Escape: Exit game
Note: Hard mode it's the same as Normal but sometimes will appear some pieces with crazy shapes (they will difficult your way to make lines)


Pacman:



Download (Win x86): http://www.mediafire.com/download/tu227yts56au21j/Pacman_1.0.1.rar
Source: https://github.com/JuDelCo/SFML2-Game

Controls:
  • Arrows: Movement
  • F1: Reset
  • F2: Mute/Unmute SFX
  • Escape: Exit game

The map editor in HTML/JS (yes, you can change or make your own maps) was made by Elendow

Bonus! (Wallpaper 1920x1080): Download / Open in Web Navigator

---------------------------------------------------------------------------------------


I don't know which kind of game do now... maybe a shoot'em up or simple platform game... but first i need to change a lot of things in the """engine"""... (it's more like a messy chunk of code lol xD)

Feedback will be always welcome  ^_^

Happy Coding!  :P


---
JuDelCo

2
Graphics / [2.0] Sprites and Text transparency renders as black (Solved)
« on: November 06, 2012, 10:22:18 pm »
Hi,

I'm trying to render a sprite, text and a big sprite as background PNG (for testing purposes)

The problem is the transparent color (the ship sprite is a PNG with a transparent alpha color) renders as black in both sprite and text



Simple code i use for text:
sf::Font fuente;
fuente.loadFromFile("resources/Arial.ttf");
sf::Text text("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
text.setFont(fuente);
text.setCharacterSize(30);
text.setStyle(sf::Text::Regular);
text.setColor(sf::Color::Red);
VIDEO.window.draw(text);

/* Sprite and background rendering */
 

Simple code i use for Sprite (in a sprite class):
sf::Image image;
image.loadFromFile("resources/ship.png");
this->setTexture(image);

/* ... later ... */

VIDEO.window.draw(*this);
 

PS: I use "setTextureRect" before draw the sprite because its a spritesheet

Pages: [1]
anything