Author Topic: BYO games plugin :)  (Read 40651 times)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
BYO games plugin :)
« on: June 16, 2006, 03:50:44 am »
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]

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1442
    • CenizaSOFT
Re: BYO games plugin :)
« Reply #1 on: June 16, 2006, 04:01:26 am »
Nice :)

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

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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: BYO games plugin :)
« Reply #2 on: June 16, 2006, 07:42:02 am »
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 ??

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: BYO games plugin :)
« Reply #3 on: June 16, 2006, 09:32:25 am »
lol, byo, that's awesome! :lol:
Be patient!
This bug will be fixed soon...

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: BYO games plugin :)
« Reply #4 on: June 16, 2006, 09:34:42 am »
it's cool but if it has a pause button or someting

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: BYO games plugin :)
« Reply #5 on: June 16, 2006, 09:41:43 am »
It automatically pauses if it looses focus.
It also automatically resumes when it gains focus again.
Be patient!
This bug will be fixed soon...

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: BYO games plugin :)
« Reply #6 on: June 16, 2006, 09:49:56 am »
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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: BYO games plugin :)
« Reply #7 on: June 16, 2006, 09:50:24 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...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: BYO games plugin :)
« Reply #8 on: June 16, 2006, 09:53:10 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...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: BYO games plugin :)
« Reply #9 on: June 16, 2006, 09:57:13 am »
Few bugs fixed.

Pause/unpause with 'p' key

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]

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: BYO games plugin :)
« Reply #10 on: June 16, 2006, 10:09:03 am »
is there any difficults in this game
something like speed or different blocks

:)

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: BYO games plugin :)
« Reply #11 on: June 16, 2006, 10:17:10 am »
i have one suggestion why don't make pong game, snake game  :D

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: BYO games plugin :)
« Reply #12 on: June 16, 2006, 11:04:54 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)

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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: BYO games plugin :)
« Reply #13 on: June 16, 2006, 11:19:54 am »
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:

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: BYO games plugin :)
« Reply #14 on: June 16, 2006, 11:29:16 am »
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