Thread Like Summary
MrBogi, R. Belmont
Total Likes: 3
Original Post (Thread Starter)
by Golden Child
Golden Child
Hi all,

I was trying to override the artwork so I didn't have to compile every time I made a change, but -override_artwork didn't seem to be working.

So I analyzed the code and what it's looking for is:

artwork/<name>/<name>.lay

So for example:

-override_artwork lchicken

will look in artwork/lchicken/lchicken.lay

(or even a zipfile at artwork/lchicken.zip with lchicken.lay inside.)

The command line options page doesn't give much info on the subject.

Quote
-override_artwork

Specifies override artwork for external artwork and internal driver layout.

Example:

mame galaga -override_artwork puckman

Now I can make changes and see them immediately on launching mame. Much faster than compiling.
Liked Replies
by Golden Child
Golden Child
And adding a spring effect with f = -kx for a little bounce. If you change the constants the bouncing can get really wild.

Code
leaderx = scale(depthtable[(machine.output:get_value("motor_pos")+radiustableoffset)%100+1],0,300,0,.05)

followerx = followerx or 0
velocity = velocity or 0
mass = 2.6 
k = .25  
force = -k*(followerx-leaderx)
accel = force / mass

velocity = velocity + accel
followerx = followerx + velocity

damping = .05

followerx = followerx * (1-damping)

if followerx < -1.0 then followerx = -1.0 end
if followerx > 1.0 then followerx = 1.0 end

			b:set_xy(myx0,myy0,myx1,myy1+followerx)
			
			return b
		end)


1 member likes this
by Golden Child
Golden Child
Thanks!

Yes, I was planning on removing the square, possibly just making it invisible. It seems that svgs "auto-size" themselves to the bounding box so I need a box around it, but it shouldn't be hard to set the alpha to zero. Once I do that, you should just see the chicken. The other strategy would be to put a same color box underneath so you wouldn't see the bottom edge moving.

I also added a rotational spring so that it wiggles a bit rotationally.
1 member likes this
by Golden Child
Golden Child
Playing around with inkscape

[Linked Image from i.imgur.com]
1 member likes this
Who's Online Now
2 members (Pernod, 1 invisible), 21 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,086
Posts119,088
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com