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.


Messages - Cryonic

Pages: [1] 2
1
SFML projects / Tetris in C++ (Need Feedback)
« on: December 27, 2016, 09:23:35 pm »
Hello All!

I made a Tetris replica for Windows with C++, SFML, & Adobe Illustrator and would like feedback. It has hand coded animations, stat tracking and all the cool features that a modern version of the game has.

It can be downloaded from the following link. Have fun!
https://drive.google.com/open?id=0B8rMVdiXzp3XdGw4THRzQ3M1LXc

Also, a simple preview video:

Check out on my website, too: https://donaldfry.com

2
General / Intersecting Rectangles Confusion
« on: October 17, 2015, 06:58:04 pm »
I have a bunch of side by side rectangles that make up a matrix that will be colored if they intersect with a specified rectangle.

The problem is that when I use the intersect function, I do not know how to specify that I just want the intersection between the matrix rectangles and just the specified rectangle shape bounds, not the whole bounding box (it has been rotated).

So, basically the black squares that touch the white rectangle are the only ones that should be colored yellow:

if (Tiles[r][c].getGlobalBounds().intersects(Environment_1_Barrier.getGlobalBounds()))
{
   Tiles[r][c].setFillColor(sf::Color::Yellow);
}

3
SFML projects / Re: My Practice Beginner Games
« on: September 08, 2015, 09:18:38 pm »
Yeah, your right. The Allied/Soviet armies from Command & Conquer: Red Alert are more notable. lol

4
General / Re: How To Add Forum Image?
« on: September 08, 2015, 09:14:36 pm »
Thanks, that's what I was looking for: "Image Host". I uploaded it to postimage.org. Can you see it on your end?

5
General / How To Add Forum Image?
« on: September 08, 2015, 06:03:17 am »
How do you change the forum avatar? When I start from the main page: Main Page>>Community>>Forum>>Profile>>Modify Profile(Forum Profile)>>"Personalized Picture".

Is there not a way to directly upload a pic from my computer? Or what way did you do it by the "Specify avatar by URL" option?

6
SFML projects / Re: My Practice Beginner Games
« on: September 08, 2015, 04:51:37 am »
Yeah, even though the paddles look like a Red vs. Blue (Halo) end of a broom battle, the animations when the ball hits them looks awesome. Did you do that solely with a bunch of images in SFML, or did you use some outside program?

7
SFML projects / Re: My Practice Beginner Games
« on: August 28, 2015, 09:08:01 pm »
Hmm, wouldn't you want to inline your 1-liner functions such as in "ball.cpp": "ball.getPosition()"?

8
General / Visual Studio Setup Installer: Redistributable Package
« on: August 08, 2015, 06:18:24 am »
I have my my setup project in (Visual Studio 2015: Community Edition) ready to be built and create my program installer. But, obviously the program will not work on other computers without the appropriate redistributable package installed on the clients computer.

So, I need to set that up in my project but I do not know how. I read in a post on another site that it is located in:
Project>>Setup Properties>>Prerequisites

But, all I just see are selectables for ".net framework" related things (See attachments). If you know of another way to achieve my goal then any help will be greatly appreciated!

9
General / Re: Combine exe with openal32.dll
« on: August 06, 2015, 03:46:23 am »
Okay, so I can look into the license stuff. But, do you have any advice on how to create a static version of the dll?

10
General / Combine exe with openal32.dll [SOLVED]
« on: August 06, 2015, 03:30:59 am »
I have my libraries statically linked with my exe, but in order to make it work with the audio module I still need to include the "openal32.dll" in the same directory as my exe. But, that further stalls me in my ultimate goal of running my program with absolutely nothing but my exe.

Is there not a way to combine this "openal32.dll" with my exe either the way I did my libraries statically or is there any other way to merge them?

11
General / Static Linking (2.3 & No Linker Errors) [SOLVED]
« on: August 05, 2015, 11:12:20 pm »
I followed the tutorial here:
http://www.sfml-dev.org/tutorials/2.3/start-vc.php

(1) I have added the following in CONFIGURATION PROPERTIES>>C/C++>>GENERAL>>ADDITIONAL INCLUDE DIRECTORIES:
C:\\Path to my SFML Include Directory

(2) I have added the following in CONFIGURATION PROPERTIES>>LINKER>>GENERAL>>ADDITIONAL LIBRARY DIRECTORIES:
C:\\Path to my SFML Lib Directory

(3) I have added the following in CONFIGURATION PROPERTIES>>C/C++>>PREPROCESSOR DEFINITIONS:
SFML_STATIC;

(4) I then added the following in CONFIGURATION PROPERTIES>>LINKER>>INPUT>>ADDITIONAL DEPENDENCIES:
sfml-window-s-d.lib; sfml-system-s-d.lib; sfml-graphics-s-d.lib; sfml-audio-s-d.lib; opengl32.lib; freetype.lib; jpeg.lib; winmm.lib; gdi32.lib; openal32.lib; flac.lib; vorbisenc.lib; vorbisfile.lib; vorbis.lib; ogg.lib; winmm.lib;

I am comparing the size of the the exe (the statically linked) to the one I had previously (the dynamically linked), and there does seem to be a size difference. Why am I still receiving an error message when I try to run it without the DLL's in the same directory?

Any help would be greatly appreciated!

12
General / Re: How To: Executable For Game [C++]
« on: July 31, 2015, 06:14:13 am »
Yes, I know how to put my assets into folder, but not source files.

13
General / How To: Executable For Game [C++]
« on: July 31, 2015, 03:55:43 am »
When you buy a game at the store, and want to play it on your computer, you do the following:

(1) Run a setup.exe
(2) Install on computer
(3) End up with an exe on your desktop (separate from its source files, asset files, etc.)

(1) How do I format my program (created from Visual Studio) to be like that?

The farthest I have toward this goal is how my folder is currently structured:
Main Folder: [Folder]
    Program.exe
    Main.cpp
    Header.h
    Class.cpp
    sfml.dll
    Assets [Folder]
        Picture.png
        Music.wav

(2) If you do not know how to completely separate my .exe from my source and asset files, then do you know how to be able to put my source, header, and sfml DLL's into a folder like the following:

Main Folder: [Folder]
    Program.exe
    Assets [Folder]
        Picture.png
        Music.wav
    Source [Folder]
        Main.cpp
        Header.h
        Class.cpp
        sfml.dll

(3) Or if you know how to just bundle everything into 1 exe..

Any help will be greatly appreciated!

14
Audio / Re: error C2248
« on: July 26, 2015, 10:36:07 pm »
How exactly am I supposed to word it out? I am getting an error on the "openFromFile" line.
I am hovering above it, and it says "Error: expression must have class type"

// Header file
class MyClass
{
   vector<sf::Music*> music;
        MyClass();
}

// Source file
MyClass::MyClass()
{
   for (int i = 0; i < MAX; i++)
      { music.push_back(new sf::Music()); }
   music[0].openFromFile("soundFile.ogg");
}

15
Audio / error C2248
« on: July 24, 2015, 02:13:26 am »
I am getting the following error:

error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'

After I put my declaration in my class header file:
vector<sf::Music> music;


Pages: [1] 2