NASM - The Netwide Assembler

NASM Forum => Example Code => Topic started by: encryptor256 on January 05, 2014, 01:12:39 PM

Title: Win64 Verlet Rope Physics Sandbox NASM + PELLES C
Post by: encryptor256 on January 05, 2014, 01:12:39 PM
Hello!

Basic info:
; ------------------------------------------------------------
;
; This is: Win64 Verlet Rope Physics Sandbox NASM + PELLES C
; Author: J.K. Encryptor256
; Date: 2014 Jan
; Using:
; 1. NASM: The Netwide Assembler, ( http://nasm.us/ )
;     Created "verlet system" obj library in nasm.
;     Created "sys - malloc, etc." obj library in nasm.
;     Created "dds - linked lists" obj library in nasm.
;
; 2. PELLES C, ( http://www.smorgasbordet.com/pellesc/ )
;     Created all qui stuff in pelles c.
;     Adding all obj libraries at link time.
;
; Description:
;
; Create points, edges, witch between modes by mousewheel.
; Add objects:
; Press 'Q' to add a wheel.
; Press 'W' to add a grid clothe.
; Press 'E' enable disable point draw.
;
; Modes: (Use mousewheel to goto next or prev mode)
; "Mode: runtime"
; "Mode: runtime - break mode"
; "Mode: add points 0 NORMAL"
; "Mode: add points 1 FIXED"
; "Mode: add edges 0 NORMAL"
; "Mode: add edges 1 ALMOST WHITE"
; "Mode: add edges 2 BOLD THICK
;
; ------------------------------------------------------------

More info:
Created verlet system library in nasm, and all qui stuff into pelles c.
End result is pretty darn cool(see runtime demo's).
+ added more mousewheel modes.

Sys library, sys.asm, contains all functions needed to run all other libraries.
Dds library, dds.asm, contains data structures Linked Lists, depends on sys.asm.
Verlet library, nasmlib.asm, contains all functions needed to run verlet system, depends on sys.asm and dds.asm.

NASM, Compile:

NASM, Compile produced: sys.obj, dds.obj, nasmlib.obj.

PELLES C, Link & Build: Add all libraries at link time. (See example code, source project)

Also using:

Runtime demo on youtube:

Added attachment, Win64VerletRopePhysicsSandboxNASMPELLESC.zip, includes:
"sys.asm, dds.asm, nasmlib.asm + pelles c project + compiled files, win64 exe and obj files, + float64 and vector2d macros".


Well, i think, that's it,
Encryptor256.
Title: Re: Win64 Verlet Rope Physics Sandbox NASM + PELLES C
Post by: avcaballero on January 07, 2014, 02:49:45 PM
Interesting, Encriptor. Linked lists, I think I saw... phew, much work