Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Showcase / Planet Wars
- - By cyberarm Date 2013-11-13 01:01
I've been working on a game I'm calling Planet Wars, a space shooter-like game, still very much a work in progress.
Check it out on Github https://github.com/cyberarm/planet-wars
Parent - - By ml Date 2013-11-14 03:04
Hey I am very interested in checking out your game, especially since I see that it uses Chingu.

I cloned from github to try it out, but I ran up against a problem installing the Gameoverseer gem. I am on Linux (Ubuntu 12.04 32-bit), and I got these errors:

Could not find gem 'gameoverseer (>= 0) x86-mingw32' in the gems available on this machine.

ERROR:  Could not find a valid gem 'gameoverseer' (>= 0) in any repository

Could not find timers-1.1.0 in any of the sources   (using bundle install)

Is there perhaps a way for me to manually install the gem, working from the github source?
Parent - By Spooner Date 2013-11-14 12:49
Seems to use the developer's own gem: https://github.com/cyberarm/gameoverseer

Timers (http://rubygems.org/gems/timers) is a published gem, so doesn't make sense that it can't be found.

I'd strongly suggest you publish the game using git links in your gemfile, so bundler can automatically find your gems from source, if you aren't going to publish the gems at rubygems.org.
Parent - - By cyberarm Date 2013-11-14 22:23
I've disabled the network code for the time being (as it isn't used currently).
Should work now.

Thanks for the suggestion of using bundler to install GameOverseer, Spooner.
I haven't pushed GameOverseer to RubyGems because it's not yet functional.
Parent - - By ml Date 2013-11-16 23:03
Hey I tried again and it worked no problem. I just used 'git pull origin' and then 'bundle update' and then 'ruby planet-wars.rb'.

The game looks really fantastic. The Welcome Screen / Credits / Settings are great. The in-game graphics looks really clean, and the mini-map is very cool.

The game did lag a little bit for me, probably because I have an older computer (I assume), and possibly also because there is a fair amount of offscreen graphics (I would conjecture).

Nicely done. I will be examining your code and educating myself on how it works.

It probably wouldn't hurt to add a readme explaining game play and future development ideas.
Parent - - By cyberarm Date 2013-11-17 01:38
Thanks for the compliments ml, glad it's working for you.

Does the lag happen when the enemy ships are firing at you, when using boost, or haphazardly?

If it's while their firing at you it could be some logic related to deciding if they should be firing.
if it's while using boost, it could be the ship is running out of, and gaining fuel at so same time making the ship seem to stutter due to speed constantly changing.
if it's haphazardly and the music momentary cuts out it could just be Ruby's garbage collector.

What is your average FPS? (Show in the upper left hand corner)

I did add a (quickly done) readme.
Parent - - By ml Date 2013-11-18 02:57
Hey cool. I updated from github to check out the readme and tried it out some more. This game has a bunch of features which I have been wondering how to do (mini-map for example) so this is a gold mine for me in terms of learning more about programming. I definitely plan on spending some more time reviewing the code. So far here's what I've figured out about the lag:

I hashed out the background and the ship's particles, and it's still there. I set it so that there are 0 enemies and 0 portals in easy mode, and it's still there. That's all I've tried so far. The game is running at between 20 to 40 fps. The lag happens continuously about once every half-second or so, such that the planets appear to rotate like the second hand of a watch. I'll look into it a little deeper sometime soon.

Overall I really like the game setup, and all the features you've included, especially building bases and collecting resources. Once you've landed on a planet and built your base, I find pressing enter again to be more convenient than esc for returning to flying around mode.

This is a really good project and for my part it gets two thumbs up.
Parent - By cyberarm Date 2013-12-09 19:09
Firstly, I apologize for not getting back to you sooner.

I'm glad the source is helpful for you.
Unfortunately, I have not been able to find the source of any slow downs.

Thanks for the suggestion of changing the ESC to Enter to exit planet view.

Thank you very much.
Parent - - By Spooner Date 2013-11-18 13:56
I haven't run the game, but on a quick glance at the code, I see a standard, but non-obvious slow-down effect.

You are using Chingu::Text objects for the GUI, which means they are being changed continually (score, etc). Because of the implementation of that object, which renders the text into an image every time it is changed, this means that large numbers of images are created. Generally, this is OK, but you are also using TexPlay, which affects how new images are created (sometimes vastly slowing down that process, which is fine for static images, but not in this case where you are creating a large number of images). So, please try using good old fashioned Gosu::Font#draw for dynamic text - Chingu::Text objects should only be used for static text.
Parent - - By cyberarm Date 2013-11-18 17:18
I've have had issues with Chingu::Text with the Credits GameState (took over a second to load https://github.com/cyberarm/planet-wars/blob/master/lib/game/state/credits.rb), that is why I replaced it with this https://github.com/cyberarm/planet-wars/blob/master/lib/objects/text.rb.

So, unless Chingu uses its own Text class when you use Gosu::Font[@font, @size], it should not be using Chingu::Text.

I'm inclined to believe that it's an issue with the health bar image generation, when I was play testing on the household computers, the FPS was really bad unless your health was red, though, that was over a month ago.
Parent - By Spooner Date 2013-11-18 17:23
No, looks like you've already seen the issue with Chingu::Text not working well with TexPlay. Gosu::Font[font, size] is implemented by Chingu (I added that, so you can blame me if it fails), but all it does is cache the Gosu Font for you, so you don't re-create them if you ask for the same one again.

Not sure then...
Parent - - By cyberarm Date 2014-06-21 20:49
I've released Planet Wars, 0.1.0.
If you're on Windows there is a pre-built archive available here.

Please report any issues you experience.
Feel free to make suggestions about how it can be better.
Have fun playing.

List of changes:
Hopefully fixed waves getting stuck.
Updated Portal image, added fail safe for AssetManager, removed colored text from menus, made Asteroid destroyable, added Rocket (does nothing currently.)
Added Waves, fixes #20, many small changes.
Moved menus to subdirectory 'menus', moved GameInfo::Config out of version.rb, fixed music not playing when starting a second game, added menus for #20, started clearing out game_info.rb, code cleanup.
Show cursor for menus.
Fixed #32 via lazy hack, changed game over time text.
Changed enemy ship fixes #28, broke music manager #32, many small changes.
Added AssetPack GUI, fixes #22.
Added Configuration manager, sfx can now be disabled, bumped version to BETA.
Added start of asset packs. #22
Added Asteroid, closes #21, Changed the way Ship moves, closes #25, Added HazardManager.
Removed Enemy use of real time, made enemies share target.
Made uninhabitable planets habitable, closes #23.
Destroy unused object, hopefully fix slow down.
Made Ship upgrades cost resources. closes #13
Remove Bullets use of time, prevents bullet from dying to soon.
Added Achievements
Planets regenerate resources, closes #14
Added notification for current song, closes #5
Added proper notifications, reenabled Hobby of night font for menus.
Added overlay, fixes #9.
Cleaned up Game game state a little, added Confirm to prevent accidentally quitting game, moved Background to its own file.
Added CC0 sound effects, changed ESC to Enter to leave planet view, moved all files into lib/planet-wars.
Parent - - By jahmaican Date 2014-06-21 22:30
It's quite something, but VERY laggy. I have no idea why, it shows 30-50 fps, but feels like it's 10.
Parent - - By cyberarm Date 2014-06-24 00:09
It might feel laggy because the planets would be jittering. I lazily built the game to play at 60 fps, so anything below about 45 fps will unfortunately feel off.

How are you running it, via the Windows build, or from source?
Parent - - By jahmaican Date 2014-06-24 07:14
I used the Windows build, couldn't run it from source because of some ashton errors.

I took a short video, notice how laggy the rocket moves:
http://youtu.be/QxTYSqT7MLk
Parent - - By RavensKrag Date 2014-06-25 12:45
From just looking at the video it seems like you're problem is with the turn rate of the ship. It seems to have a slight acceleration to it, and the entire rate of turning seems a bit slow (in terms of angle measure per unit time). But I couldn't say if that's actually bad in the context of the game, as I haven't played it yet. It's certainly something that could make a game feel sluggish, though.

Or maybe the video (or just it's playback) smooths out things a little? I don't see any problem with frame stuttering. (Note that youtube caps at 30fps)
Parent - By jahmaican Date 2014-06-26 19:05
Well yeah, I noticed now it doesn't look so bad on the video. But the actual game just feels... off.
Parent - By cyberarm Date 2014-06-26 15:24
The bullets appear to be moving only with minimal lag.
The pacing of the game seems to be normal, at least what the video shows.
Parent - - By cyberarm Date 2014-12-03 03:24 Edited 2014-12-05 18:55
I have just released Planet Wars version 0.1.2

Please report any issues you experience here.
Feel free to make suggestions about how it can be better.
Have fun playing.

EDIT:
List of changes:
Bumped version to 0.1.2
Made Particles first class, injected rb_set_image and rb_get_image into Ashton::ParticleEmitter inorder to use images with emitters.
Excluding Scal asset pack while its in development, made asteroids able to have more then one image.
Moved planets images around, removed hard coding of planet names.
Moved enemies sprites to its own directory, fixed error in asset manager.
make default asset pack a variable, did some DRYing up of asset preloading.
Made help text more consistent.
added gimp menu-background.xcf file.
Texplay 0.4.3 works in both Windows and Linux
Fix font crashes on Linux
Added Background to Menus
Parent - - By ml Date 2015-01-09 16:19
Hi, glad to see that you are still moving forward on this project. I look forward to trying it out with the updates. I will let you know how it goes.
Parent - By cyberarm Date 2015-01-10 17:52
Hey, ml.
Glad to see someone's still interested in my project :D
I hope you enjoy the updates.
Parent - - By cyberarm Date 2015-01-12 19:12
I have just released Planet Wars version 0.1.3

Please report any issues you experience here.
Feel free to make suggestions about how it can be better.
Have fun playing.

List of changes:
Bump version to 0.1.3
Removed outdated net folder
Hopefully fixed #44, removed duplication in NetGame, fixed credits crashing
Update Gosu
Updated menus, removed colors from credits, made base set its x and y position in prep for #36.
Update README.md
AssetManager now actually preloads assets
Parent - - By ml Date 2015-08-14 20:44
My Linux OS was broken, so I've been away from Gosu for a while. I finally got Gosu working again (on a different computer), and I tried out the Planet Wars updates. It's looking good. I especially like the mini-map. The game is insanely hard. I managed to survive for five minutes though, as well as setting up bases on all the planets, but killing the aliens is nearly impossible. If you can ever figure out how to enable multi-player over the internet you will be a champion. Best wishes.
Parent - By cyberarm Date 2015-08-15 20:11
Greetings, ml.
Sorry to hear you have computer issues :(

Thanks for the kind words, I'm hoping to add multiplayer sometime between 1.1.0 - 2.0.0. (fingers crossed)
I am presently working on releasing 0.1.4, a largely minor update with mainly theme related changes.
Parent - By cyberarm Date 2016-04-10 18:40
Released 0.2.0

The most notable change is that the game is no longer frame locked, meaning it should be fully playable at around 24fps.
Skipped releasing 0.1.5 which added sfx to the menus and mouse hover cancelling; Can now use arrow keys to navigate menus with the mouse over top a button.

Please report any issues you experience here or on Github.
Feel free to make suggestions about how it can be better.
Have fun playing.

List of changes in 0.2.0:
Bump version to 0.2.0
Updated Gosu
Game is no longer frame locked
Menus now have sfx
Parent - By cyberarm Date 2018-02-05 17:11
Planet Wars Update
Released 0.4.0


Screenshots

Please report any issues you experience here or on Github.
Feel free to make suggestions about how it can be better.
Have fun playing.

List of changes in 0.4.0:

* Updated dependencies
* Dropped Chingu as a dependency
* Added a debug mode that shows collision borders, object headings, and enemy targeting
* Redid PlanetView and ShipUpgrades menu to use GameUI
* Updated Credits to not use yellow and show Gosu::LICENSES
* Removed background images from menus and in-game
* Added star field background for Game
* Refreshed controller controls, now somewhat intuitive
* Many internal changes
Up Topic Gosu / Gosu Showcase / Planet Wars

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill