Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411508 Posts in 69374 Topics- by 58430 Members - Latest Member: Jesse Webb

April 26, 2024, 10:46:47 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityDevLogsMoonQuest
Pages: 1 2 [3] 4 5 ... 189
Print
Author Topic: MoonQuest  (Read 1323003 times)
Belimoth
Level 10
*****


high-heeled cyberbully


View Profile
« Reply #40 on: October 19, 2011, 01:23:56 PM »

Oh, it's a laugh, is it? Big Laff I wasn't sure if he was looking skyward or trying to headbang. I guess that explains the shoulder movement.
Logged

rek
Level 7
**


View Profile
« Reply #41 on: October 19, 2011, 03:11:27 PM »

Trying using that darker shade of green under the chin when he tilts his head back, that should help clarify what his face is doing
Logged
eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #42 on: October 19, 2011, 07:50:27 PM »

Update: Finished the initial refactor of physics into the entity-system. Here's a

of a few spawned entities randomly jumping around. Still a few bugs in the physics system though.

@momeka,@twobit,@sabajit thx!
@rek cheers, i did a new version


Logged

Pemanent
Level 4
****



View Profile
« Reply #43 on: October 19, 2011, 11:05:02 PM »

Quote
Niiice. The darker chin is sweet.
Logged

Montoli
Level 7
**


i herd u liek...?


View Profile WWW
« Reply #44 on: October 19, 2011, 11:34:59 PM »

Oh nice!  I love the random plant-life you've got going on there.  Particularly how the grass wiggles around when he walks by it.  Really cool ambiance!
Logged

www.PaperDino.com

I just finished a game!: Save the Date
You should go play it right now.
Ashkin
Guest
« Reply #45 on: October 20, 2011, 12:47:42 AM »

Hehe, that grass is cute :3
Logged
Belimoth
Level 10
*****


high-heeled cyberbully


View Profile
« Reply #46 on: October 20, 2011, 08:31:41 AM »

@rek cheers, i did a new version


Perfect.  Hand Thumbs Up Left Smiley
Logged

eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #47 on: October 20, 2011, 10:31:56 PM »

Thanks for the feedback peeps. Smiley

Update: Nothing tangible today, but got lots of scrawls on paper about the rendering system, sprites, batching, composing sprites into bigger sprites, sprite anchors and pivots, layers, parallax, lighting, tinting, caching chunks of terrain as textures, dynamic lighting, mashing together the data-driven system with rendering somehow, and how a sprite can be specified.

here's an example of the specification of a monster's head sprite, with three states, normal, laughing and dieing..
Code:
sprite {
version = 1, -- version of the moonman sprite engine
orientable = true, -- provide versions for facing forward, left and right
sprite_sheet = "monsters/undead", -- the sprite_sheet reference
states = {"nrml","laff","die0"}, -- fourCC codes for animation states
width = 8,
height = 10,
frames = {
nrml = {
F_FORWARD = frame {x=0,y=8,ax=4,ay=8},
F_LEFT = frame {x=8,y=8,ax=5,ay=8},
F_RIGHT = frame {x=0,y=16,ax=3,ay=8}
},
laff = {
F_FORWARD = animation {duration = 0.1, loop = true, frames = {{x=0,y=32,ax=4,ay=8}, {x=8,y=32,ax=4,ay=8}, {x=8,y=32,ax=4,ay=8}}},
-- etc
},
die0 = {}
}
}
Logged

Cellusious Games
Level 0
***


Meows. Pixels.


View Profile WWW
« Reply #48 on: October 21, 2011, 04:36:23 AM »

Take my money now  Hand Money Left

It's really cool, and i would like to be a tester if you need one.
Keep it up :D
Logged

https://twitter.com/Cellusious - Pixel Artist - Concept Artist - 3D modeler - Wannabe Coder - Wannabe Musician.
delete me
Level 0
***

This account is very old, I don't use it.


View Profile
« Reply #49 on: October 21, 2011, 06:30:51 AM »

Do you think it's wise hard coding the frames in there?
I think it can be simple and time saving, but if you have a lot of sprites later it could get cumbersome...

Are you considering fixed width/height frames, or maybe even an editor?
Logged
eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #50 on: October 21, 2011, 04:08:57 PM »

@cellusious thx, i'll jot u down as a potential alpha tester Smiley

@xoorath This is kind of the file format, but meant to be human readable too. So if I ever get round to making a sprite editor, it will output a file like this. But I'll probably just make a sprite viewer and edit the script in real-time to see the effects in the sprite window.

I see what your saying about the awkwardness of specifying individual frames, but I'll counter that with have a number of shortcuts like
Code:
framestrip = {x=0, y=0, num=8}
which would abstract
Code:
frames = {{x=0,y=0},{x=8,y=0},{x=16,y=0}, ... }

I'd love to make an editor, but I think that modifying a script in any text editor (or any other resource) while viewing the results immediately in the game engine will be enough.
Logged

namragog
Guest
« Reply #51 on: October 22, 2011, 02:24:23 PM »

I AM FOLLOWING THIS.
Logged
delete me
Level 0
***

This account is very old, I don't use it.


View Profile
« Reply #52 on: October 22, 2011, 08:35:02 PM »

@cellusious thx, i'll jot u down as a potential alpha tester Smiley

@xoorath This is kind of the file format, but meant to be human readable too. So if I ever get round to making a sprite editor, it will output a file like this. But I'll probably just make a sprite viewer and edit the script in real-time to see the effects in the sprite window.

I see what your saying about the awkwardness of specifying individual frames, but I'll counter that with have a number of shortcuts like
Code:
framestrip = {x=0, y=0, num=8}
which would abstract
Code:
frames = {{x=0,y=0},{x=8,y=0},{x=16,y=0}, ... }

I'd love to make an editor, but I think that modifying a script in any text editor (or any other resource) while viewing the results immediately in the game engine will be enough.

Fair enough. I'm designing a few things like this too. It has it's benefits. =]
Logged
eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #53 on: October 22, 2011, 10:51:38 PM »

Update: I've decided to go with simple Lua-style files for specifying resources, such as sprites. The main reason is that I'm already using Lua for scripting, so it requires not much effort on my behalf (as opposed to using e.g., json, yaml, or xml). By using a Lua subset, it should be easy enough to parse if you don't have a lua interpreter.

An example sprite definition file is below:

Code:
-- resources/entities/monsters/jelly/sprite.lua
sprite {
name = "jelly_idle1",
sprite_sheet = "entities/monsters/jelly/jelly.png",
width = 8,
height = 8,
animated = true,
loop = true,
duration = 0.1, -- duration of each frame
frames = {{x=0,y=0,ax=4,ay=8},{x=8,y=0,ax=4,ay=8},{x=16,y=0,ax=4,ay=8},{x=24,y=0,ax=4,ay=8}}
}

sprite {
name = "jelly_idle2",
sprite_sheet = "entities/monsters/jelly/jelly.png",
width = 8,
height = 8,
animated = true,
loop = true,
duration = 0.1,
framestrip = {x=0,y=0,ax=4,ay=8,num=4}
}

sprite {
name = "jelly_shock",
sprite_sheet = "entities/monsters/jelly/jelly.png",
width = 8,
height = 8,
frame = {x=32,y=0,ax=4,ay=8}
}

This is simultaneously a readable specification and legit Lua code (which executes the sprite callback three times with different parameters.) On the c++ side, we can call lua_dofile on this file (which executes it), setting sprite to be whatever function we want. For example, a resource listing tool might declare sprite to just print out its arguments, whereas the main game will declare sprite to register the sprite with the game and load the sprite_sheet image into memory.

footnote: Storing data as Lua code is described in more detail in Programming In Lua 2nd Ed.
Logged

eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #54 on: October 23, 2011, 01:29:09 AM »

jelly jump!
Logged

Ashkin
Guest
« Reply #55 on: October 23, 2011, 01:53:38 AM »

jelly jump!
That animation. It's... It's perfect. <3
Logged
eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #56 on: October 23, 2011, 11:46:01 PM »

mini update

Worked today, so couldn't do much on moonman. I'll try to keep this devlog kicking by showing whatever little bits and pieces I've been doing, however lame. So without further ado, two dogs and some dying mini-jelly tests ..


Logged

BlueSweatshirt
Level 10
*****

the void


View Profile WWW
« Reply #57 on: October 24, 2011, 02:19:59 AM »

I love this!  Grin

Your animation is charming.  Smiley
The laughing/head bobbing slightly disturbs me though.


Nonetheless, I look forward to playing this.
Logged

delete me
Level 0
***

This account is very old, I don't use it.


View Profile
« Reply #58 on: October 24, 2011, 06:22:25 AM »

jelly jump!

This is an animation of me. For I am jelly.
Logged
eigenbom
Level 10
*****


@eigenbom


View Profile WWW
« Reply #59 on: October 24, 2011, 11:39:42 PM »

mini-update

Logged

Pages: 1 2 [3] 4 5 ... 189
Print
Jump to:  

Theme orange-lt created by panic