Worms 2025
版本 1.0.0 (30.8 MB) 作者:
Stephen Wilkerson
A simple version of the Worm's program written in livescript.
Title:
Worms 2025 – A Turn-Based Physics Game in MATLAB
Overview (Abstract):
This is a turn-based artillery game inspired by the classic "Worms" series. Written entirely in MATLAB, this version allows two players to select characters, aim, and fire projectiles at each other over dynamically rendered terrain. The game features physics-based motion, customizable worm graphics, and explosion effects.
How to Play:
- When the game starts, each player chooses a worm character from a visual selection panel.
- Player 1 takes the first turn by adjusting angle and power sliders and pressing “Fire 1”.
- A projectile is launched with an arc based on angle and power.
- Player 2 follows the same steps using the “Fire 2” button.
- The game alternates turns automatically and enforces order.
- The first player to hit the other worm wins the game.
- An explosion image appears at the impact location for visual feedback.
Features:
- 🧠 Turn-based logic using global state variables.
- 📐 Adjustable angle and power via sliders.
- 🎯 Collision detection with terrain and opponent worms.
- 💥 Explosion effects at impact points.
- 🖼️ Custom worm selection with image display.
- 🌄 Terrain generated via sinusoidal function for realistic curvature.
- 🎮 Simple pop-out GUI window optimized for gameplay.
File Structure:
- Worms2025.m — main script
- WormImages/ — folder containing 64x64 pixel worm PNG images
- Explosion.png — 32x32 pixel explosion image (can be replaced)
- getWormImageNames.m — scans WormImages/ for available characters
System Requirements:
- MATLAB R2022b or later (GUI and image toolbox recommended)
- Works on Windows, macOS, and Linux
Credits:
- Developed by: Stephen Wilkerson
- With support from: ChatGPT (OpenAI)
- Game created using: MATLAB Live Script
- Explosion graphic: pixel art created with assistance from ChatGPT
- Template assets inspired by: SlidesToGo PowerPoint template collection
引用格式
Stephen Wilkerson (2025). Worms 2025 (https://www.mathworks.com/matlabcentral/fileexchange/180846-worms-2025), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2024b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |