Welcome, Guest. Please login or register.

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 - achpile

Pages: [1] 2 3 ... 14 Next
1
SFML wiki / Re: SFML dynamic color tile-based lighting
« on: June 16, 2018, 03:35:57 pm »
I don't think that your message related to this topic

2
SFML projects / Re: Screenshot Thread
« on: March 15, 2018, 01:29:49 pm »
Used only straight lines to draw (Except outline circle)


Source: https://github.com/achpile/math/tree/master/lines

Inspired by this:
(click to show/hide)

3
SFML projects / Re: ReJewel
« on: January 31, 2018, 12:03:16 am »
Btw i dunno why tetris... it's bejeweled

4
SFML projects / Re: ReJewel - Релиз
« on: January 31, 2018, 12:02:08 am »
Would be great if you could add some English text, so everyone can understand the game's description. :)

Dedicated to all tetris fans
Created using C++ and SFML

OS: Windows 7 and newer
Genre: Logic
Developer: Redee
Current state: beta
All links are in the description!!!

5
General / Re: Game Loop Lag
« on: December 26, 2017, 08:46:14 pm »
probably this


        delay = carry + timer.getElapsedTime().asMilliseconds();
        if(delay >= MSPF) {
            timer.restart();
            while(delay >= MSPF) {
                update();
                delay -= MSPF;
            }
            carry = delay;
        }


just use RenderWindow::setFramerate (or how is it called)

6
General / Re: Game Physics
« on: December 16, 2017, 07:27:19 am »
Oh sorry. Not acceseration, but speed.
For example i have gravity acceleration 1000.0f, so if player jumps - I just set his speed.y to -375

7
General / Re: Game Physics
« on: December 15, 2017, 08:02:21 pm »
Hello, I am trying to make a platforming game, I have all of the other physics set up BUT jumping.
To put it simply , I want to know how to make an entity go up for a little bit then down.
               
 

just set acceleration to -<jump power>

8
General / Re: TDS Shooter Enemy Programming issues
« on: December 15, 2017, 06:37:47 am »
just make them not to overlap. use collision detection etc.

9
Audio / Re: Program crash when opening music
« on: December 11, 2017, 02:47:08 pm »
Quote
I have a void where I start the music.

what do you mean? show the code

10
SFML projects / Re: Neural Network + Genetic Algorithm
« on: December 09, 2017, 05:57:15 am »
Nice! If you like that can of things, you can have some fun with particle swarm optimization (PSO) as well.

Thank you :) Yep, maybe some time later.

11
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 03:04:06 pm »
Okay! I have a source formatting plugin for code blocks IDE. first I'll use my format then i will use the formatting plugin when I release  it or ask for help.
Also, Is it impossible for you to answer my question because of its format it!?

I already answered your question in my first post here. I've posted your wrong part and fixed part

12
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 02:43:33 pm »
Well, I kinda use my own style format like this
void see this(args){if(6==7){
}
}
 
And yes I've looked at other projects it get confusing sometimes in their format

You can't find this error by yourself only because this kind of formatting.

13
SFML projects / Re: Neural Network + Genetic Algorithm
« on: December 07, 2017, 07:44:07 am »
Impressive stuff, Alexander!

Thank you, Stefan  :)

14
Graphics / Re: Screen only displays movement when mouse is moving
« on: December 07, 2017, 06:03:53 am »
Why do you write code like this? Have you ever took a look at code formatting on some other projects?

window.close();}
playerRect.move(1,0);
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Down)){playerRect.move(0,1);}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Up)){playerRect.move(0,-1);}
if(playerRect.getGlobalBounds().intersects(targetrect.getGlobalBounds())){window.close();}}

window.close();}}
playerRect.move(1,0);
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Down)){playerRect.move(0,1);}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Up)){playerRect.move(0,-1);}
if(playerRect.getGlobalBounds().intersects(targetrect.getGlobalBounds())){window.close();}

15
SFML projects / Neural Network + Genetic Algorithm
« on: December 06, 2017, 02:23:09 pm »
After watching a lot of videos on YouTube I had some fun playing with neural networks + genetic algorithm. Don't know what else to say  :D

Source code: https://github.com/achpile/neural




Pages: [1] 2 3 ... 14 Next