News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

BYO games plugin :)

Started by byo, June 16, 2006, 03:50:44 AM

Previous topic - Next topic

byo

For all RC3-waiters, overcoded etc. I've coded small entertainment support for C::B.

Currently it supports one game which I called C::B-Tris (based on one of the most popular game in history).

I'm attaching sources (should be unpacked to src/plugins/contrib directory to compile properly, tested on MinGW with PCH support, haven't tested other platforms) and binaries (tested with 15.06.06 Nightly, just put dll into share/CodeBlocks/plugins directory).

Have fun ;)

BTW. While testing I've got over 30000 score :D now your turn ;)

[attachment deleted by admin]

Ceniza

Nice :)

BTW, did you happen to read this thread? :P

Just one thing: it shows :B-Tris in the notebook (notice the missing C).

killerbot

this is wonderfull

my opinion : we should add it to the svn repos and distribute with the nightlies, that is if you and the big boss agree ...

[EDIT] : here's a first support question :
- how do I pause the game ??

mandrav

lol, byo, that's awesome! :lol:
Be patient!
This bug will be fixed soon...

PsYhLo

it's cool but if it has a pause button or someting
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

mandrav

It automatically pauses if it looses focus.
It also automatically resumes when it gains focus again.
Be patient!
This bug will be fixed soon...

David Perfors

Yes put this in svn ;) also a boss alert key combination would be nice :P
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

mandrav

Quote from: mandrav on June 16, 2006, 09:41:43 AM
It automatically pauses if it looses focus.
It also automatically resumes when it gains focus again.

Actually, there's a small bug and this doesn't work yet.
Be patient!
This bug will be fixed soon...

mandrav

Quote from: Ceniza on June 16, 2006, 04:01:26 AM
Just one thing: it shows :B-Tris in the notebook (notice the missing C).

Hmm, this should be a bug in C::B. It probably thinks it's the start of a path (C:) and clips it...
Be patient!
This bug will be fixed soon...

byo

Few bugs fixed.

Pause/unpause with 'p' key

Quote from: mandrav on June 16, 2006, 09:53:10 AM
Quote from: Ceniza on June 16, 2006, 04:01:26 AM
Just one thing: it shows :B-Tris in the notebook (notice the missing C).

Hmm, this should be a bug in C::B. It probably thinks it's the start of a path (C:) and clips it...

This is because C::B removes path in file name, and in this case C: is the drive number. It's already fixed :D

I was also wondering about one option - time limit. That would work like this - if playing more than 10 minutes, games is paused for one hour and can not be unpaused in that time (this feature just to prevent playing instead of coding ;) )

[attachment deleted by admin]

PsYhLo

is there any difficults in this game
something like speed or different blocks

:)
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

PsYhLo

i have one suggestion why don't make pong game, snake game  :D
[url="http://img529.imageshack.us/img529/822/3664286vy.png"]http://img529.imageshack.us/img529/822/3664286vy.png[/url]

byo

Quote from: Milen Simeonov on June 16, 2006, 10:09:03 AM
is there any difficults in this game
something like speed or different blocks

:)

After 20 full lines, there's level-up and speed-up (speed-up is up to 10th level, after that speed does not grow, but it's hard to play on that speed)

Quote from: Milen Simeonov on June 16, 2006, 10:17:10 AM
i have one suggestion why don't make pong game, snake game  :D

shouldn't be hard to do ;) propably easier that C::B-Tris :D.

killerbot

euh euh euh MAJOR FEATURE REQUEST : who can port CB to run on my mobile phone, so I can play the games on it  :mrgreen: :mrgreen:

David Perfors

lol, I am sorry, but I don't have a mobile phone which could run programs, so I can't do it. :( :P
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring