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

Pages: 1 [2] 3 4 5
16
SFML projects / lightlib
« on: December 12, 2017, 04:26:48 pm »
This is a little something I dug out of my old code. Maybe it'll be useful to someone.

Here's a screenshot:


Here's the code: https://github.com/FRex/lightlib

It's based on this CC0 tutorial: http://ncase.me/sight-and-light/

17
General discussions / Adding 'SFML community' to SFML authors
« on: November 03, 2017, 11:59:35 am »
I've noticed that many projects list 'project community' or so as last author or first author or something similar. SFML doesn't and just asks for help, which seems like there are the 9 authors and no one else contributing as if no one helped yet or something. It seems this never came up (?) when growing the team or making the contribution guidelines.

18
Feature requests / Better Caching Possible?
« on: September 30, 2017, 09:28:23 pm »
Continued from: https://github.com/SFML/SFML/pull/1297

As I said there, I think there is a way to cache these pointers a bit better..?

For something like a loop that draws same circle over and over (with different position, color, transform, but same vertices pointer) the code right now rebinds everything on each draw, but if you did the same with a sprite then because sprite uses the cache it'll do bind just the first time you draw.

I think we should keep track of pointer that was last bound and only bind it it changes, it'd also make the code simpler and more edge case proof, like against that edge case that started the above PR.

19
SFML projects / FoxRaycaster
« on: September 12, 2017, 04:25:04 am »
For various reasons and due to my usual cyclic interest in many kinds of games, mostly old, low tech and indie, I got curious about low res 3D such as raycasting (wolf3d style, that's also why the name I picked is fox) again after a long break.

I decided to overnight cannibalize a project for which I wrote this code https://en.sfml-dev.org/forums/index.php?topic=17188.msg155533#msg155533 and make it into a simple library.

It's rough around the edges, not with the API and features I want and renders just walls and floor and ceiling but I might add features (sprites especially) if there is interest or if I decide that I need them for something.

Screenshot of it running:


Code: https://github.com/FRex/FoxRaycaster
Demo (win32 exe): https://ln.sync.com/dl/c33d2f980/2drnm8xv-b2k45hye-s7qrai8i-577qp4m7

20
SFML projects / Quick Example: Lua Dialogues
« on: June 13, 2017, 06:22:35 pm »
I was thinking about an old project of mine back from 2015 and looking at it I decided to make a quick example of using Lua coroutines for dialogues, just with a "say" function. In my project I also had an ask one that prompted the user to select a reply from one of few choices. It's quite interesting/cute/nice idea but the problem is that it can't be easily suspended mid dialogue I don't think (this wasn't a problem for my old project).

Git repo: https://github.com/FRex/luadialogues
Win32 exe: https://drive.google.com/file/d/0B8dEkQw1a4WvNWJsSW9RNGJjdzQ/view?usp=sharing

21
SFML projects / Snek Game!
« on: June 01, 2017, 12:05:47 am »
So, I made a clone of snake today on the side when doing something else.
Because reasons.

WASD to move, F2 to restart.

Windows 32 bit exe (just download the entire zip and unzip it):
https://drive.google.com/open?id=0B8dEkQw1a4WvUHlwZXBrRGxRX00

Code (it's single file, just uses SFML Graphics and some C++11 stuff, no external resources required):
https://gist.github.com/FRex/efb882cbeea824a56a8621b237c3f649

Image:

22
SFML website / gl_FrontColor instead of gl_FragColor
« on: May 22, 2017, 02:18:20 pm »
I think this is a mistake in some shader examples: https://www.sfml-dev.org/tutorials/2.4/graphics-shader.php#minimal-shaders

23
SFML projects / Routing Game
« on: April 24, 2016, 11:16:52 pm »
Here's a simple game I made today: https://github.com/FRex/routing-game
Simply compile all the cpp files and link SFML system, window and graphics and run.
No other libraries or assets involved.

Your goal is to rotate tiles to make it so that the power reaches everywhere.
Correct circuit has no loops.
The tile that supplies power is cyan tinted.
Wires with power are green and powerless ones are red.
This is a direct clone of a very very old game (pre 2000s) I used to have on my first PC ever that ran Win98 but I don't remember its name now.

Controls:
F1, F2, F3, F4, F5 - start a new game with varying difficulty,
Mouse Left Click - rotate tile under cursor,
WSAD - move the camera around,
Space - randomize all tile rotations (but not start a new game).


 

24
SFML projects / Heart
« on: February 13, 2016, 07:19:09 am »
Wanting a simple and quick game to make during my break I thought of a game I've seen in this video: https://www.youtube.com/watch?v=SqGx6LIkFqo
I started to implement it and it got a little too complex and out of hand with different color modes and so on so I trimmed it down to the basic RGB A/D + Space gameplay.
https://github.com/FRex/Heart

25
SFML projects / (WIP) Command Console
« on: December 30, 2015, 06:34:01 pm »
I cleaned up my LuaConsole( http://en.sfml-dev.org/forums/index.php?topic=15962 ) and made it into a generic one (there's a driver class you need to implement to get hints and eval).
I will probably "port" LuaConsole to use this with a pre-written LuaDriver or something soon(tm) too.
Code: https://github.com/FRex/Console

26
C / CSFML Audio doesn't compile in debug
« on: November 24, 2015, 03:38:33 pm »
This line is wrong (wrong variable name) and in debug the CSFML Audio will not compile because of it:
https://github.com/SFML/CSFML/blob/e3df1539f5953f6a77c53e58445f4641cfc64190/src/SFML/Audio/SoundBufferRecorder.cpp#L87

27
Feature requests / Text vertices getter and new update method for Texture
« on: September 14, 2015, 03:27:36 am »
1. Add a way to get sf::Text vertices. It seems to me like a good thing to have to allow caching Text vertices. I have a bunch of quasi-gui code that basically uses only colored Triangles and colored Text that is always same size, style and font. If I could get vertices from sf::Text I could draw it all with a single call.
2. Since 32 bit int is now alternative color representation (kinda, via the Color constructor) for SFML I think there should also be a complementary method to update a texture from an array of unsigned (casting the pointer to unsigned char will not work because it might swap channels).

28
SFML website / Bad link in readme
« on: August 04, 2015, 01:07:20 am »
The link in readme on git ( https://github.com/SFML/SFML/blob/master/readme.txt ) currently goes to http://www.sfml-dev.org/tutorials/ which redirects to http://www.sfml-dev.org/tutorials/2.3.1/ which doesn't exist and ends up showing an error page.

29
SFML website / There's a problem with some example code
« on: May 24, 2015, 08:09:41 pm »
< and > should be HTML entities to make it show correctly:
http://www.sfml-dev.org/style.php#include-guards

30
Ditto.
Possible backwards compatible way could be another field in sf::RenderStates plus few trivial changes in sf::RenderTarget.

Pages: 1 [2] 3 4 5
anything