Giter VIP home page Giter VIP logo

wxsand's Introduction

wxSand - Owen Piette's Falling Sand Game

screenshot

As a kid, I spent many hours in the school library playing this game, and I compiled the Linux version as well. I tried finding it again, but it looks like the original author has abandoned it as his site now only links to the Windows version.

This repository contains the Linux source code he distributed, as well as a patched version by me to make it compile under modern versions of wxWidgets.

This software was last updated by its original author in 2006, and is abandonware. The forum about it, fallingsandgame.com, has been down now for many months with a MySQL error, so all mods seem to be lost. (If you have any others, open issues and I'll add them to the mods/ directory.)

It's fun abandonware though, and works well on modern platforms. Actually, I think it works better on modern platforms than it ever did in 2006 -- on my system, which has an i7-6700, it is impossible to get it to run slower than 15fps with the default mod, and that's with the entire screen full of sand. With the "Sources" on and "Limit FPS" off, the game runs at well over 200 FPS, reaching 256 FPS. This performance would have been incredible when this game was in active development...we can thank Moore's law for that.

Compilation howto:

Compilation should be as simple as:

cd fsg-4.4
make

Make sure you have wxWidgets and an appropriate C++ compiler installed. The compiled binary will be output in the current directory and be named wxsand.

wxsand's People

Contributors

7c6f434c avatar ctrlcctrlv avatar jabagawee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wxsand's Issues

Mod Wiki

Was wondering could the wayback machine be used to try and salvage some mods from the wiki?. The wayback machine appers to have Saved the website and if you press on a mod you get the following text.

https://web.archive.org/web/20101104080942/http://fallingsandgame.com/wiki/index.php/WxSand_Mods

example if you press on the computer mod v3
"#wxSand: Owen Piette's Falling Sand Game
#Version 4.4, File subversion 2
#element element r g b gravity slip density conductivity visible
group Hardware PowerSupply PowerCabbles Motherboard Cddrive Monitor Screen Wire Outlet Paint Battery
group Software Windows95 WindowsXP
group Cases FutureCase Case
group Destruction Fire Virus Water Torch ETorch Magnet Firebomb ANFO

#Just empty space.
element Empty 0 0 0 0.000000 1.000000 0.000000 0.0000001 1

#the thing your hardware is inside.
element Case 120 120 120 0.000000 1.000000 1.000000 0.0000001 1
"

Mac OS X 10.13.3 bugs

  • Canvas does not appear (expected a black area in the window, got a grey area matching the rest of the window)
  • Game is paused and does not run even when pressing the pause button to unpause it (shows 0 fps)
  • Quitting the game via โŒ˜-Q causes a "segmentation fault: 11" or a "bus error: 10" or "./src/common/timercmn.cpp(111): assert "m_impl" failed in IsRunning(): uninitialized timer. Collecting stack trace information, please wait...Trace/BPT trap: 5" (see screenshot)

image

Debugging causes me to believe that in the loop in Sand::onRun, we are stuck in the line that says

while (Pending()) Dispatch();

but I do not know enough about the wxWidgets model to figure it out from there.

Some more mods and 4.6

I found a copy of wxsand in an old backup with some mods I downloaded back then. Not sure if any are customised. Looks like you already have some of them.

Mods.zip

Some of the mods are commented for version 4.5 and 4.6... not sure if they'll work on 4.4.

wxres.o: No such file or directory

I'm struggling with compiling this game.
After sort of figuring out how to install wxWidgets for cross compiling from linux for windows, I started making adjustments to the make file like specifying the library location.

Currently, my problem is the error "wxres.o: No such file or directory".
is this supposed to come with the rest of the source code or with wxWidgets?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.