1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

XSpringies is a mass and spring simulation system. It's intended use is more

like that of a game, than some design package.

(fixed /0 FP exception)

Submitted by:	jkh
Closes PR:	ports/2292
This commit is contained in:
David E. O'Brien 1997-02-16 01:35:52 +00:00
parent 3b6f2adee6
commit 7978e77a10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5634
6 changed files with 112 additions and 0 deletions

18
games/xspringies/Makefile Normal file
View File

@ -0,0 +1,18 @@
# Ports collection makefile for: xspringies
# Version required: 1.1
# Date created: 12 January 1997
# Whom: jkh
#
# $Id: Makefile,v 1.3 1996/11/18 09:52:57 asami Exp $
#
DISTNAME= xspringies-1.1
CATEGORIES= games
MASTER_SITES= http://aixpdslib.seas.ucla.edu/pub/xspringies/RISC/3.2/src/
DISTFILES= xspringies.1.1.tar.Z
MAINTAINER= jkh@FreeBSD.ORG
USE_IMAKE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (xspringies.1.1.tar.Z) = 0958e74178cdf5c49fa05c640ce16011

View File

@ -0,0 +1,24 @@
--- phys.c.orig Mon Mar 29 06:26:52 1993
+++ phys.c Sat Feb 15 16:54:26 1997
@@ -212,11 +212,16 @@
mass1 = m1->mass;
mass2 = m2->mass;
-
- m1->ax += forcex / mass1;
- m1->ay += forcey / mass1;
- m2->ax -= forcex / mass2;
- m2->ay -= forcey / mass2;
+
+ # gives "signal SIGFPE, Arithmetic exception" w/o the tests
+ if (mass1 != 0) {
+ m1->ax += forcex / mass1;
+ m1->ay += forcey / mass1;
+ }
+ if (mass2 != 0) {
+ m2->ax -= forcex / mass2;
+ m2->ay -= forcey / mass2;
+ }
}
}
}

View File

@ -0,0 +1 @@
a mass and spring simulation system.

View File

@ -0,0 +1,9 @@
XSpringies is a mass and spring simulation system. It's intended use is more
like that of a game, than some design package.
It's written using Xlib only. No Motif or any other widgets sets are used.
The animation in XSpringies is done using an off-screen Pixmap. The next
frame is drawn on this pixmap, then is blitted onto the screen. Since the
frame rate is about 30 frames per second, slower machines (or machines which
have poorly written bit-blitting code) will be deathly slow and blinky.

View File

@ -0,0 +1,59 @@
bin/xspringies
man/man1/xspringies.1.gz
lib/X11/xspringies/2snake.xsp
lib/X11/xspringies/2x2snake.xsp
lib/X11/xspringies/3snake.xsp
lib/X11/xspringies/4snake.xsp
lib/X11/xspringies/9snake.xsp
lib/X11/xspringies/ball.xsp
lib/X11/xspringies/belt-loop.xsp
lib/X11/xspringies/belt-tire.xsp
lib/X11/xspringies/belt.xsp
lib/X11/xspringies/bike.xsp
lib/X11/xspringies/blanket.xsp
lib/X11/xspringies/bridge.xsp
lib/X11/xspringies/diamond-chain.xsp
lib/X11/xspringies/hammer.xsp
lib/X11/xspringies/hexball1.xsp
lib/X11/xspringies/hexball2.xsp
lib/X11/xspringies/hexball3.xsp
lib/X11/xspringies/hexhexmesh.xsp
lib/X11/xspringies/hexmesh.xsp
lib/X11/xspringies/jello-buttress.xsp
lib/X11/xspringies/jello-pend.xsp
lib/X11/xspringies/jello.xsp
lib/X11/xspringies/jello2.xsp
lib/X11/xspringies/kalied-maker.xsp
lib/X11/xspringies/kalied1.xsp
lib/X11/xspringies/kalied2.xsp
lib/X11/xspringies/lgrid.xsp
lib/X11/xspringies/lissajous.xsp
lib/X11/xspringies/mesh.xsp
lib/X11/xspringies/nifty.xsp
lib/X11/xspringies/nifty12.xsp
lib/X11/xspringies/octanifty.xsp
lib/X11/xspringies/pend.xsp
lib/X11/xspringies/pendbees.xsp
lib/X11/xspringies/pendwave.xsp
lib/X11/xspringies/person1.xsp
lib/X11/xspringies/person2.xsp
lib/X11/xspringies/plane.xsp
lib/X11/xspringies/psycho.xsp
lib/X11/xspringies/serp.xsp
lib/X11/xspringies/snake.xsp
lib/X11/xspringies/square.xsp
lib/X11/xspringies/stretchmesh.xsp
lib/X11/xspringies/super-jello.xsp
lib/X11/xspringies/tire.xsp
lib/X11/xspringies/tri4.xsp
lib/X11/xspringies/trimesh.xsp
lib/X11/xspringies/urchin.xsp
lib/X11/xspringies/wave.xsp
lib/X11/xspringies/worm.xsp
lib/X11/xspringies/xgrid.xsp
lib/X11/xspringies/xtrimesh.xsp
lib/X11/xspringies/zgrid.xsp
lib/X11/xspringies/zharp.xsp
lib/X11/xspringies/zharp2.xsp
lib/X11/xspringies/zingy.xsp
lib/X11/xspringies/zwave.xsp