Seriously!

Go Back   Seriously! Forums > General > Showcases & Portfolios

Showcases & Portfolios The most awesome creations of our members can be seen here. Got some cool stuff? Show it off here and get feedback!

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
Old 10-24-2013, 08:33 AM   #241   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Multitexturing using GLSL:

http://i.imgur.com/ZdddflY.png

The first texture acts as a "shape", and the second one is rendered over that "shape". From the first time a drop of blood was spilled in one of my demos I wanted to add one particular feature, and now I am closer than ever...

BIG THANKS to thecplusplusguy !
  Reply With Quote
Old 10-24-2013, 08:41 AM   #242   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

It's called a mask
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 10-27-2013, 11:18 AM   #243   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Had to update my 2008 ati drivers to 2010, so I can render to an offscreen buffer using OGL. In this picture you can see two shadow/light bufers I use to render in game lights/shadows. There might be some masking going on, but I'm not sure

http://i.imgur.com/iIRdChn.png

The campaign is now fully playable in the newish engine, but there are still some minor bugs left. I haven't implemented splitscreen coop, and I don't know if I will do that, I wasn't happy with the joystick aiming in the original and my joystick doesn't work anymore, so I can't test it.

Edit: White lines are for debug stuff, show connected switches and platforms and similar things...
  Reply With Quote
Old 11-09-2013, 05:22 AM   #244   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

I am out of fresh ideas... so I wrote a particle emitter class, then I wrote a particle emitter editor, then stuff to save and load it from XML, then I made some fire with smoke... I think it looks ok...

http://i.imgur.com/DLTZfgJ.gif
  Reply With Quote
Old 11-09-2013, 11:08 AM   #245   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Looks nice, good job! Curious about the Xml format though
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 11-09-2013, 11:36 AM   #246   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Thanks. Well, it's just some random messy variables with their values and stuff. Don't know what to say about it, it's all WIP... Here is code for the fire, smoke is another emitter. The fire-y look of the fire comes from what I think is additive blending...

Code:
<ParticleEmitter
	e_type="line" 
	e_angletype="custom" 
	e_angle="270" 
	e_angvel="0" 
	e_azimuth="5" 
	e_gravity="0" 
	e_blends="GL_SRC_ALPHA" 
	e_blendd="GL_ONE" 
	e_texture="Data/Textures/Particles/dim.tga" 
	e_radius="128" 
	e_w="512" 
	e_max="100" 
	p_angletype="random" 
	p_angle="0" 
	p_w="64" 
	p_h="64" 
	p_scalex="1" 
	p_scaley="1" 
	p_speed="6" 
	p_damping="1" 
	p_angvel="2" 
	p_lifetime="0" 
	p_lifetimeplus="500" 
	p_reds="255" 
	p_greens="128" 
	p_blues="64" 
	p_alphas="255" 
	p_redr="1" 
	p_greenr="1" 
	p_bluer="1" 
	p_alphar="1" 
	p_redf="255" 
	p_greenf="128" 
	p_bluef="32" 
	p_alphaf="0" 
/>
  Reply With Quote
Old 11-09-2013, 03:04 PM   #247   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Eh. Too bad it's all just in 1 tag where all properties are in its attributes. When I was deciding on my animation sheet Xml format, I had a lot of trouble trying to get the amount of tags and attributes balanced well enough so that it makes sense.

Good luck!
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 12-12-2013, 11:39 AM   #248   Add To Ignore List  
Banned
 
Joined: Jun 2012
Location: Germany
 
Gnaarwarian is offline
Default Re: AntonioR's Showcase Thread - 2D Games

What do you think of this code http://www.lifeai.com/index.html ? Maybe it could be useful for Serious Engine ?
  Reply With Quote
Old 12-12-2013, 01:59 PM   #249   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

That looks interesting.
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 02-07-2014, 12:57 PM   #250   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Exclamation Re: AntonioR's Showcase Thread - 2D Games

I had a three month break from all this. Few days ago I finished some stuff I started then.

Basically I unified the code for loading maps and loading skeletal objects (enemies, players) into a single class that reads/writes data from/to a xml file. Before a bone had just the size, texture and some stuff stored in a file, but now all it's properties are stored, including some Box2D stuff, shape, attachment positions...

This allows me to store more complex objects into a file and use it later in a map for enemies, player or some in game stuff like cars, buildings made of several textures, trees, etc... basically it's like making 2D models.

Parts of the gui used in the map editor is rewritten in separate classes which I can now use in my old/new animation/skeleton editor to edit individual sprite properties just by making a new gui object and sending input event data to them.


http://i.imgur.com/H7fIZo0.png


http://i.imgur.com/kEHKK45.png


Next step would be to store Box2D joint data too. Currently sprites are just positioned relative to the root sprite and don't work as a whole, and are connected via some messy hardcoded stuff.
  Reply With Quote
Old 02-07-2014, 01:56 PM   #251   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Nice, good work!
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 02-23-2014, 06:53 PM   #252   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Exclamation Re: AntonioR's Showcase Thread - 2D Games

I can now add and edit Box2D joints to 2d models in my model editor. I have only implemented revolute joints so far, since I don't know what other joint types are good for. This makes making ragdolls easy and everything is stored in a XML file.


http://i.imgur.com/pSVDpq7.png



Also I can finally flip the models on the x axis with all the joint data set properly (joint position, rotation limits, polygon vertices...).


http://i.imgur.com/w8IncG3.png



As you can see bones can be boxes, circles or polygons for almost pixel perfect collision.

http://i.imgur.com/r0EirEO.png



Here is the XML file for the blue biomech, it's a bit messy because word wrap:
http://pastebin.com/9MavE7jQ
  Reply With Quote
Old 02-25-2014, 10:46 AM   #253   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Cool Re: AntonioR's Showcase Thread - 2D Games

Quote:
Originally Posted by AntonioR 30-9-2013
The new ragdolls perform better, but I will have to change my skeletal animation and stuff to be able to convert them to ragdolls at runtime...
Finally did it in game ! The transition from animated 2d skeletal enemies to ragdolls works perfect, even though the enemies currently just fall down dead when hit.

I wanted to make this work before I completely port that Quake 2D demo to my new engine. It wont be easy. I need to remove all the physics code I wrote and replace it with Box2D stuff. And I need to figure out how to control this new simulated world.

Then there is a whole lot of bad coding going on all over the place. I will have to clean that up the same way I did when I rewrote the engine. It would probably be best to start from scratch, but I guess it is better to be aware of all the bad code, so I don't make the same mistakes again.

Todo:
- completely remove old physics code and switch to Box2D
- make some kind of in game audio entity class
- weapon entity with settings loaded from an external file, attachable to entities (you know, biomechs with cannons and stuff)
- some kind of enemy spawner class
- replace particle effects with the ones made in the particle editor
- make possible for enemies to use different 2d models
- make this all editable via editor
- animation transitions
- switches and stuff

Last edited by AntonioR; 02-28-2014 at 12:44 PM.
  Reply With Quote
Old 02-25-2014, 03:45 PM   #254   Add To Ignore List  
Developer Fairy
 
Solais's Avatar
 
Croteam Representative
Joined: Nov 2009
 
Solais is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Great job! Ragdolls in 2D, sounds kinda weird.
__________________
Since Old Lost Age I Shine

My Serious Sam 3/HD Workshop


While I do work for Croteam, I'm first of all of this community, so my opinions are my own and do not represent Croteam's views.
Unless when I use this nice blue color I totally didn't steal from Blizzard.
  Reply With Quote
Old 02-25-2014, 06:29 PM   #255   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Thanks ! 2D ragdolls is nothing new, even Soldat had those in AD 2002, then Facewound in 2004. I can't name more examples though, even typing "2d ragdolls" in youtube doesn't give much results.
  Reply With Quote
Old 02-25-2014, 06:46 PM   #256   Add To Ignore List  
Developer Fairy
 
Solais's Avatar
 
Croteam Representative
Joined: Nov 2009
 
Solais is offline
Default Re: AntonioR's Showcase Thread - 2D Games

I personally remember a biking game made by some Hungarian, called ElastoMania back in the day that kinda-sorta had physics enabled wheels.
__________________
Since Old Lost Age I Shine

My Serious Sam 3/HD Workshop


While I do work for Croteam, I'm first of all of this community, so my opinions are my own and do not represent Croteam's views.
Unless when I use this nice blue color I totally didn't steal from Blizzard.
  Reply With Quote
Old 02-25-2014, 07:52 PM   #257   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

I saw that just a few days ago. Not sure whats going on with all that texture flipping and all
Here is something far more advanced http://www.youtube.com/watch?v=OL66G3JLYvA.
  Reply With Quote
Old 02-26-2014, 03:38 AM   #258   Add To Ignore List  
Developer Fairy
 
Solais's Avatar
 
Croteam Representative
Joined: Nov 2009
 
Solais is offline
Default Re: AntonioR's Showcase Thread - 2D Games

It was definitely a weird game, but kinda addicting, as it was more of a puzzle. It's also quite old, mind you.
__________________
Since Old Lost Age I Shine

My Serious Sam 3/HD Workshop


While I do work for Croteam, I'm first of all of this community, so my opinions are my own and do not represent Croteam's views.
Unless when I use this nice blue color I totally didn't steal from Blizzard.
  Reply With Quote
Old 02-26-2014, 08:52 PM   #259   Add To Ignore List  
有毒物質
 
librin.so.1's Avatar
 
Joined: Aug 2011
Location: Kaunas, Lithuania
 
librin.so.1 is offline
Default Re: AntonioR's Showcase Thread - 2D Games

I remember quite a few flash games centered around the concept of a 2D ragdoll. Some were quite fun. And yeah, quite a few distinct 2D ragdoll bike games. Again, in flash.
__________________
it just werx, fam.
  Reply With Quote
Old 02-28-2014, 06:17 PM   #260   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Cleaned my game code to the level where I can say "It finally makes sense."

When I made that Serious Sam game back in 2010, all my code was in a single main.cpp... all 7000 of them ! Unreadable. Quake was much better, OO structured, but as I added more features I messed up again. My map editor ended up being a jack of all trades, it stored and handled almost everything (map loading, saving, sprite editing, enemy managers, players...), and main.cpp was still over 3000.

Now my main.cpp is just used to send engine events to appropriate classes, where all the magic is done. It's just around 900 lines now and more or less it looks like this:

Code:
void Update()
{
	if(g_engine->getState()==EDITOR) editor->Update();
	else if(g_engine->getState()==ANIMATOR) animator->Update();
	else if(g_engine->getState()==PARTICLES) ped->Update();
	else if(g_engine->getState()==GAME) world->Update();
}
Editors are similar, everything has its own class now, and editors just forward events for handling. I also made a World class where all game logic is handled and entity managers are stored.

Short... I'm bored and I have no idea what I'm doing.


Yeah, and I made it that weapons are stored as a model with a pair weapon-bullet. There I can set physics properties of the bullet and set where the handle is and the barrel end and stuff(blue dots)... I think that's cool.

http://i.imgur.com/q0asCWZ.jpg
  Reply With Quote
Old 02-28-2014, 06:33 PM   #261   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Jesus christ, 7000 lines in main.cpp. I don't suppose you're brave enough to post it to pastebin for us to laugh look at, would you?
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 02-28-2014, 07:26 PM   #262   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Red face Re: AntonioR's Showcase Thread - 2D Games

Well, I haven't planed to show this to anyone, but since you asked here it is: SS 2D TLGH code

Back then I didn't even understand OO programming, I never even made my own class or structure even though I had a OOP class at college. Before that my largest project was a console version of Battleship which had around 700 lines (there I even used goto). I don't have to mention I had no idea how the engine worked in the background. It's funny to see this code years later, I don't code in Croatian anymore.


Not sure if you guys remember this video, this is how it all began:

YouTube Video: First demo
  Reply With Quote
Old 03-01-2014, 06:57 AM   #263   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Holy mother of god
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 03-01-2014, 01:40 PM   #264   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Here is the new main.cpp + main.h, careful NSFW http://pastebin.com/X2BQbHZk Less than 550 lines, and can only go down, since nothing is really going on there.

I said I won't delete the game code (collision responses, entity update stuff, etc), but I ended up deleting it all and I will start from scratch, it was a mess.

Edit: After all this time I am back to coding basic player movement...

Last edited by AntonioR; 03-01-2014 at 02:27 PM.
  Reply With Quote
Old 03-01-2014, 04:15 PM   #265   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

NSFW?
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 03-01-2014, 05:50 PM   #266   Add To Ignore List  
Praise the Sun!
 
evil_Vasile's Avatar
 
Joined: May 2011
Location: The Internet
 
evil_Vasile is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Not Safe For Windows perhaps?
  Reply With Quote
Old 03-01-2014, 06:03 PM   #267   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Or maybe literally not safe for work, because if you're a programmer and your boss notices you looking at terrible-looking code, well...
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 03-01-2014, 06:38 PM   #268   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Quote:
Originally Posted by Angelo View Post
Or maybe literally not safe for work, because if you're a programmer and your boss notices you looking at terrible-looking code, well...
Just the opposite. That code is so fine and sexy a programmer might get strange ideas at work
  Reply With Quote
Old 03-02-2014, 05:54 AM   #269   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: AntonioR's Showcase Thread - 2D Games

Mmmmm~ that code is turning me on~
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 03-04-2014, 07:22 PM   #270   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: AntonioR's Showcase Thread - 2D Games

I made a class for loading player related external assets(skeleton,animations, audio files and some weapon settings) via a xml file:

Code:
<Player>
	<Skeleton pth="Data/Textures/Players/Player1/info.xml" scl="1" />
	<Animation nm="run" pth ="Data/Textures/Players/Player1/run.xml" />
	<Animation nm="stand" pth ="Data/Textures/Players/Player1/stand.xml" />
	<Animation nm="kneel" pth ="Data/Textures/Players/Player1/kneel.xml" />	
	<Animation nm="jump" pth ="Data/Textures/Players/Player1/jump.xml" />
	<Animation nm="swim" pth ="Data/Textures/Players/Player1/swim.xml" />	
	<Audio nm="jump" pth="Data/Textures/Players/Player1/jump1.wav" />
</Player>
It was possible to have several player models before, but it was all hardcoded, and everything had to be in a proper folder, have the same name and stuff. Now I can just copy paste the file, edit some stuff, and load it in game.

I plan to use this for enemies too. Write the behavior in code, and everything else make moddable via xml or editors. Eg. use this file, send it to "gnaar" class, scale the model down and voila, you have those little "mirror" guys from Blood...
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:55 AM.