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

Pages: [1]
1
SFML projects / Re: AlgoSketch - Algorithm Visualizer created with SFML
« on: September 25, 2020, 09:02:23 am »
Looks great, well done ! I like the UI (and the minecraft font  :)).

2
General / Re: Simple math
« on: August 11, 2020, 08:10:22 am »
Hi,
There is no operator to compute the magnitude of a Vector. Vertical bars '|'  have a different meaning in maths and in programming.

3
Window / Re: Passing sheetRect to a function
« on: August 11, 2020, 08:06:16 am »
Looks like you forgot to set your IntRect width and height.

4
Hi !
I found a bug when using the 2560*1080 or 2048*1080 resolution. The top part of the game seems cropped out.  ;D
See on the screen capture.

5
Congrats on the release !

6
SFML game jam / Re: Revival attempt
« on: March 25, 2019, 03:49:54 pm »
Cool !
I like the idea of having to recreate an existing game. It's really one of the most fun things to do.

But I don't think having all the same assets would be a good idea, our games would all look the same, which would kind of remove the curiosity to look at other people's work). Or we could have a largelot range of different assets and choose among these.
But the idea of not having to make your own assets is not that bad in itself.

A game jam would be really cool !  ;D

7
General / Re: Problems with Executable
« on: January 06, 2019, 05:21:42 pm »
Hi,

I don't understand spanish.
Are you sure you put the right dlls ? The correct version of SFML and architecture, 64 Bit or 32 bit ?

8
SFML projects / Re: Explosion Simulator in C++
« on: January 05, 2019, 07:32:28 pm »
SFML seems very popular with Swiss people.

Quote
My project was an explosion simulator in C++ and, obviously, SFML. The teachers were a bit skeptical about my project, because we don't learn C++ (we learn C# instead) nor physics at the ETML  ;D.
I've done many funny things like these. Like use Pascal or Lua instead of C/C++/C#/Java we got taught, or make my project for 'Programming 3 - C#/Java' in C# on Mono on Linux using GTK#, SFML.Net and Box2DNet despite taking Java classes and not C# classes.

It's not only fun to friendly troll people a bit (of course only the young fresh master/doctorate teachers who are like under 40 or something, don't troll some old grumpy professor) but I also think this is a very good and cost efficient way of building faculty confidence in you and showing you're not just passively absorbing what they tell you, especially on first term/year (at least it was for me, maybe in Switzerland everyone is a leet coder in university so it'll be harder to impress anyone). At one point a teacher I never met before knew me already from word of mouth.

There are (slightly stale) C and C# official bindings if you need them, BTW.


Well, I didn't really troll my teachers because I told them I was gonna do the project in C++ and they agreed, but normally, they want you to do everything in C#.  But yeah, I definitely agree on the "not just passively absorbing what they tell you". When I came to the ETML, I already knew how to code in C++, but I didn't know how to code correctly. And I was kinda hoping to learn how to write good code at the ETML, but the teachers here don't seem to really give a damn about "good practices", to them it's simpler : It works or it doesn't.
So I read a book instead :
https://www.amazon.com/Coder-efficacement-Bonnes-pratiques-erreurs-ebook/dp/B00II5Y8DE

This book radically changed the way I code. My code is now more readable, contains less complicated abstract concepts and makes more sense overall.

About SFML.Net, we currently have a project at the ETML where we need to create an algorithm that can generate mazes and solve them. We were supposed to make it in the Console only (which I did), but I managed to finish the algorithm pretty quickly, so I used it to make a game with SFML.Net and C# eheh  ;D


9
SFML projects / Re: Explosion Simulator in C++
« on: January 05, 2019, 06:35:43 pm »
There's a .zip to download if you want. Or maybe are you on Linux ? :'(

Here you go :

https://postimg.cc/gallery/1hvhs4up4/

10
General / Re: In-App Purchase via NDK/JNI
« on: January 05, 2019, 05:55:51 pm »
Hi,

SFML has a networking module, but It won't particularly help you to implement In-App purchases.

11

How do you keep tabs on a pointer that is passed around many many function of global program scope, and when do you know for sure it is completely untouched un-accessed so it can be safely deleted ?


Have you heard about smart pointers ?  :)
https://fr.cppreference.com/w/cpp/memory/unique_ptr
https://fr.cppreference.com/w/cpp/memory/shared_ptr

Store shared pointers instead of "naked" pointers. shared_ptr uses a naked pointer internally, and frees the memory automatically when nobody points to it anymore.

In other words, no more "delete" or "new:D

EDIT : Just realised that's exactly what eXpl0it3r and Hapax said, sorry !

12
SFML projects / Re: I Can Transform
« on: January 05, 2019, 05:32:17 pm »
Wow, I didn't know you could compile SFML for Android. How did you do that ?

13
SFML projects / Explosion Simulator in C++
« on: January 05, 2019, 05:24:47 pm »
Hey guys,

So, I'm currently learning to be an informatician at the ETML in Lausanne, Switzerland. And here, at the end of the schoolyear, every student has to do a project (best time of the year), and the cool thing about it is that we can choose what it's gonna be. We have 4 weeks to complete it.
My project was an explosion simulator in C++ and, obviously, SFML. The teachers were a bit skeptical about my project, because we don't learn C++ (we learn C# instead) nor physics at the ETML  ;D.

But anyway, I managed to make a "game" that is quite fun to play (at least that's what my friends told me ahah), it's in french but even if you don't speak it, you shouldn't have any problem, there isn't a lot of text and the UI is pretty simple.

Btw, I know there are bugs, it was the first time I tried to resolve collisions that take velocity and mass into account, so it wasn't easy even though everything is axis-aligned :P

In the future, I'd like to remake this game entirely, but with OBB collisions, better looking and more satisfying physics and better code design. So if you guys have any suggestions, I'm open to new ideas !

Pages: [1]
anything