PDA

View Full Version : Made a simple game



|ThyLuigi|
02-08-2016, 01:39 AM
Made a simple game in Ruby with the gosu library.
Picture
111084

https://www.dropbox.com/s/6sr7ajrmf5mpb46/GameMakin%20%281%29.zip?dl=0
The game. ^^^
Also, tell me if that worked.

VendLolx
02-08-2016, 11:01 AM
Made a simple game in Ruby with the gosu library.
Picture
111084
Teeny video
http://im.ezgif.com/tmp/df6d70fd17.mp4
That isn't working for me, is it working for you?

Nice Game.

Nightcorean
02-08-2016, 11:04 AM
111133

The vid dont work for me.

and.. can i play the game?

|ThyLuigi|
02-08-2016, 10:41 PM
111133

The vid dont work for me.

and.. can i play the game?

Packaging games for other people is a pain in the ass, but I'll figure it out sometime. Might add some more entertaining stuff tho, right now it's just you collecting dots in space.

MyLegGuy
02-09-2016, 02:09 AM
plz make download.

|ThyLuigi|
02-09-2016, 02:10 AM
plz make download.

Haven't been able to get on a pc to learn to use this program packaging gem I've been interested in. :/

|ThyLuigi|
02-12-2016, 06:44 PM
Kek, used the OCRA gem to package it into an .exe.


But I have no idea how to make a download link. ;-;

MyLegGuy
02-12-2016, 09:37 PM
Kek, used the OCRA gem to package it into an .exe.


But I have no idea how to make a download link. ;-;

https://www.dropbox.com/

Or put it into a .zip and attach it to a post.

|ThyLuigi|
02-13-2016, 12:52 AM
https://www.dropbox.com/

Or put it into a .zip and attach it to a post.

Okay, I sorta did both.

MyLegGuy
02-13-2016, 01:32 AM
I have to say, this has a lot of attention to detail. The pixel art looks really nice. And the movement it very, very nice too.

But there is two problems, that sound it plays gets super annoying when you get to a score around 70, and you can't move two directions at once.

|ThyLuigi|
02-13-2016, 05:47 AM
I have to say, this has a lot of attention to detail. The pixel art looks really nice. And the movement it very, very nice too.

But there is two problems, that sound it plays gets super annoying when you get to a score around 70, and you can't move two directions at once.

I'll probably have to look for a less super annoying sound sample later, and the controls will probably be changed when I figure out how they work a lot better. Right now I have about 4 methods sitting in my player class that aren't being used because they don't work just right as well, so I'll probably look through the source code and documentation to get a better understanding of it.

Thanks for the feedback.

P.S.: I will look at some tutorials (or I may take a shot at it all my myself) at implementing enemies, menu's, other cool stuffs.

|ThyLuigi|
02-13-2016, 10:37 PM
Added a new sound for picking up the dots or stars or whatever, and there's now level.
So have fun. :rolleyes:

albzterninja
02-22-2016, 08:08 PM
Tip: Add something that makes you able to hold down arrow + left/right arrow! It's annoying otherwise. Great job though!

|ThyLuigi|
02-22-2016, 10:45 PM
Tip: Add something that makes you able to hold down arrow + left/right arrow! It's annoying otherwise. Great job though!

I did try something like that, but it didn't work for some reason.


PS: I'm currently trying to make a platformer, but I'm having trouble with something. If anyone knows, it's basically this.

class Player
def initialize
# ...
@sprite = Image.new($window, "Images/Sprites/Picture.bmp", false)

@sprite.height - @sprite.height / 2,
@sprite.width - @sprite.width
end
# Other methods and stuff
end

Then there's a syntax error that says it doesn't recognize .height or .width, even though they are definently methods of the library. Also, I have include 'Gosu' so that it doesn't need me to do
Gosu:: all over the place.

MyLegGuy
02-23-2016, 03:07 AM
I did try something like that, but it didn't work for some reason.


PS: I'm currently trying to make a platformer, but I'm having trouble with something. If anyone knows, it's basically this.

class Player
def initialize
# ...
@sprite = Image.new($window, "Images/Sprites/Picture.bmp", false)

@sprite.height - @sprite.height / 2,
@sprite.width - @sprite.width
end
# Other methods and stuff
end

Then there's a syntax error that says it doesn't recognize .height or .width, even though they are definently methods of the library. Also, I have include 'Gosu' so that it doesn't need me to do
Gosu:: all over the place.
Assuming this is the right page:
https://www.libgosu.org/rdoc/Gosu/Image.html
Image.width annd Image.height are readonly.

But keep in mind, I know absolutely nothing about Ruby.

|ThyLuigi|
02-23-2016, 03:37 AM
Assuming this is the right page:
https://www.libgosu.org/rdoc/Gosu/Image.html
Image.width annd Image.height are readonly.

But keep in mind, I know absolutely nothing about Ruby.

Just looked at my code, what it actually is is

class Player
def initialize(x, y)
@real_x = x
@real_y = y
@x = @real_x - (@sprite.width / 2)
@y = @real_y - @sprite.height

# ...
end
end
And the error is that it's simply undefined...
Meh, more searching, editing, and googling for me I guess.