123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|394|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Gif Your Game

Thu, 12 Jul 2018, 18:43
Jayenkai

Gif Your Game


Pretend like it's 1998, and create a gif of your game!
People seem to want these, and I'm being nagged to produce little gif's for certain homebrew sites that apparently don't like to use YouTube trailers.
*shrugs*
Anyhoo, here's how to do it relatively pain free.

First, use the old "WinKey+G" thing to activate "Game Bar" for your game. This will allow you to use the WinKey+Alt+R shortcut to record/stop your game.
Do that to capture a snippet of gameplay, then hop into the MyDocs/Videos/Captured folder and rename your capture to use.mp4
Next, run the following. I've opted to create this as a .bat file, and leave it in the Captured folder for reuse.


Where -r 15 is the framerate you want, -vg scale=400:-2 is the resolution (400 the width, -2 being auto-scale)

(Oh yeah, and you'll need the ffmpeg.exe proggy, too, but that should be easy to track down. Start here. You should only need the exe. )

It'll convert what you need, in a relatively pain-free manner.

Good luck!



-=-=-
''Load, Next List!''
Thu, 12 Jul 2018, 20:42
Pakz
Hey, that is neat! I never used the windows game bar before.

I think I wil be using the .bat more.

Here something I recorded and converted : (A rock wall generator I made with Monkey2)



another one :


Fri, 13 Jul 2018, 03:18
therevillsgames
Cool, I was using GifCam to capture gameplay to GIF. I'll play around and see what is better later

@Pakz - nice team movement example, is that one on GitHub?
Fri, 13 Jul 2018, 09:44
Pakz
@therevillsgames Yes, in my monkey 2 examples in the rts folder. There are various stages of the code there. My github is for user pakz001.
Fri, 13 Jul 2018, 10:21
rockford
Here's a game I haven't really worked on for a looooooooong time, but it was my last project. Very WIP -



My mouse is fighting with me at the moment, hence the erratic movements etc.
Fri, 13 Jul 2018, 17:57
therevillsgames
@Pakz - ta, I'll check out how you did it

@rickford - looks great!
Fri, 13 Jul 2018, 18:35
Pakz
@therevillsgames
The method I used for getting the units to stay apart from each other is done by looping the units vs each other and moving them in the opposite direction by a Sin and Cos(oppositeangle+Quarterangle+-) It is the avoid() method(called every frame)

I was kind of happy when I discovered that this worked

There is also a a* class in the codez.

I plan to add more to the folder over time as I want to make games like command and conquer and warcraft some day.

There is a book that I bought featuring making a Command and Conquer game in Javascript called "Pro HTML5 Games | Aditya Ravi Shankar | Apress" It is a little bit hard to understand (for me) but it does help in learning to make games like this.

@rockford Nice graphics!
Fri, 13 Jul 2018, 20:58
therevillsgames
@Pakz - love your work, you are nearly (nearly!) as productive as Jay
Fri, 13 Jul 2018, 21:50
Pakz
@therevillsgames

Jay is a machine Kind of jealous of him sometimes

Btw - there is a trick to the avoid method (want to add that soon) that moves units away from each other. If you build a list for each unit with nearby units(stack or array number) then you can move these nearby units and the nearby units therein. Then you can have better frametime with lots! of units.

Did I notice you working on a rts ?
Mon, 16 Jul 2018, 17:19
cyangames


Couple of days late, but then again, the weekend was a tad hectic. Invaders added with a lil bit of homing.

I might make them a tad more random so they can appear to have a fleeing motion occasionally.

-=-=-
Web / Game Dev, occasionally finishes off coding games also!