simple puzzle game WIP

Previous topic - Next topic

Albert

Nice effect, I especcially like the big blurred circle with only 4 points looks like a star

Emil

yeah that's design by mistake.., but yeah it works  :P

Here's the program as is now.., still a bunch of kinks to work out.
arrows and space to control:
up: move forward
down: move backwards
left: focus further
right: focus closer
space: make particles move a bit
http://www.mediafire.com/?9u9uy21y87fudv9

matchy

 :coke: Really nice sample screenshot
8) Clear and cool sketch

erico

The exe works wonderfully here, congrats!
But I suspect it dosen´t quite go 60fps on my end.

And yeah, the background were particles out of focus, really pretty stuff! :good:

Wampus

Looks very smooth in motion. Good going.

BdR

#20
Nice game but it needs better graphics of course, for example 3D models of rolling/rotating spheres.

It's kind of similar to the cheese puzzles in my Triple Dutch game. Since you can only move 4 directions, up down left right, you could use the tilt controls to control the game. Here is the code I used in my game, using the GLBasic GETJOYX/Y commands. This method could use refinement to calibrate the neutral position of the device, because now the neutral position is fixed.
Code (glbasic) Select

    CONSTANT DIR_UP = 1
    CONSTANT DIR_DOWN = 2
    CONSTANT DIR_LEFT = 3
    CONSTANT DIR_RIGHT = 4

    LOCAL xAccel, yAccel, iDir

    // tilt control (accelerometer)
    xAccel = GETJOYX(0)
    yAccel = GETJOYY(0)

    // tilt control - determine direction
    iDir = DIR_NONE
    IF (yAccel >  0.5) THEN iDir = DIR_UP
    IF (yAccel < -0.5) THEN iDir = DIR_DOWN
    IF (xAccel < -0.5) THEN iDir = DIR_LEFT
    IF (xAccel >  0.5) THEN iDir = DIR_RIGHT

Emil

Thanks for the nice comments :)

Thanks for the code Bdr!
I'll be sure to try it out later.

I've been working on recoding the algorithm (which is a pain) but now I think I'm on my way to make a much better one.
Soon my wife and I are going to have a kid so I might not be able to update as often as I want to but when I have something new I'll post it.

Emil

No kid yet, but some more coding...

I just realized that the foreach command doesn't work well with my code since it only works on 1-dimensional arrays.

maybe this is common knowledge but I had to retype it to this to get it to work

Code (glbasic) Select
FOR i = 0 TO BOUNDS(mapcopy.quadcells[],0)-1
FOR j = 0 TO BOUNDS(mapcopy.quadcells[],1)-1
                mapcopy.quadcells[i][j].reset()
NEXT
NEXT


instead of
Code (glbasic) Select
FOREACH quadcell IN mapcopy.quadcells[]
        quadcell.reset()
NEXT


this caused me quite some headache before I realized what was wrong

If it wasn't for the awesome help files I would probably still be lost :P

kanonet

Oh hmm i though it FOREACH was already implemented for multidimensional arrays? At least it was suggested and Kitty said he plans to implement it, so maybe it will come in future versions.

Your workaround is correct just a few suggestions if you need to speed it up (ignore this if your game is fast enough):
- if you write '...TO BOUNDS...' BOUNDS gets called every time when i gets increased which means you lose some speed. Better store the BOUNDS in a variable and just use '...TO var...' this is slower i you have just one or 2 elements in that dimension but faster if you have more.
- if you just acces the array entry one time its all fine:
Code (glbasic) Select
                mapcopy.quadcells[i][j].reset()
But if you do it multiple time its slow:
Code (glbasic) Select
                mapcopy.quadcells[i][j].a=1
                mapcopy.quadcells[i][j].b=2
                mapcopy.quadcells[i][j].c=4
                mapcopy.quadcells[i][j].dosomething()
                mapcopy.quadcells[i][j].another_function()
                mapcopy.quadcells[i][j].reset()

In this case, better use a point so, this is faster:
Code (glbasic) Select
                ALIAS cell AS mapcopy.quadcells[i][j].a=1
                cell.b=2
                cell.c=4
                cell.dosomething()
                cell.another_function()
                cell.reset()

Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Emil

Thanks for the reply Kanonet!
That's awesome for making it faster.., I'll need it to be as quick as possible since I'm doing several iterations to 'select' a good enough map. The more iterations I can do the better.

Emil

Still lots to do and still super busy with rest of life. But I managed to do some fun concepting this evening.
I'm not so sure about the guy with the backpack but I really like the small block character (I'm thinking he's the one moving around on screen)
The freaky ball thingys in the background are enemies.

erico

This is superb!
Love the hexagonal thing! :good:

Did you wacom that concept?

Emil


Emil

little update on the graphics

Ian Price

That's looking really good now. Much better :)
I came. I saw. I played.